Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "nuekit", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "The closer-to-standards web framework. Build sites and apps with less effort.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://nuejs.org", |
@@ -64,3 +64,3 @@ | ||
// components | ||
if (!data.no_automount) data.components = await site.getAssets(dir, ['nue'], 'js') | ||
if (data.automount !== false) data.components = await site.getAssets(dir, ['nue'], 'js') | ||
@@ -76,4 +76,4 @@ // scripts | ||
// system scripts | ||
if (!data.is_spa && data.page_router) push('page-router') | ||
if (is_dev && !data.no_hotreload) push('hotreload') | ||
if (!data.is_spa && data.router) push('page-router') | ||
if (is_dev && data.hotreload !== false) push('hotreload') | ||
if (data.page?.isomorphic) push('nuemark') | ||
@@ -80,0 +80,0 @@ if (data.components?.length) push('mount') |
import { buildCSS, findModule } from '../src/builder.js' | ||
import { parseMarkdown, getParts } from '../src/util.js' | ||
import { getParts } from '../src/util.js' | ||
import { match } from '../src/browser/app-router.js' | ||
@@ -78,9 +78,2 @@ import { renderHead } from '../src/layout.js' | ||
test('markdown', async () => { | ||
const { meta, content } = parseMarkdown('---\nog: og.png\n---\n# Hey') | ||
expect(meta.og).toBe('og.png') | ||
expect(content.trim()).toBe('<h1>Hey</h1>') | ||
}) | ||
test('app router', async () => { | ||
@@ -87,0 +80,0 @@ expect(match('/fail/:id', '/users/20')).toBeNull() |
@@ -213,3 +213,3 @@ | ||
const kit = await getKit() | ||
await write('scripts/app.yaml', 'include: [hello.js]\nno_hotreload: true') | ||
await write('scripts/app.yaml', 'include: [hello.js]\nhotreload: false') | ||
await write('scripts/index.md', '# Hey') | ||
@@ -216,0 +216,0 @@ await write('scripts/hello.nue', '<div/>') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77232
1834