create-skeleton-app
Advanced tools
Comparing version 0.0.53 to 0.0.54
115
package.json
{ | ||
"name": "create-skeleton-app", | ||
"version": "0.0.53", | ||
"description": "Use this CLI app to setup a new Skeleton application in a new SvelteKit project.", | ||
"keywords": [ | ||
"skeleton", | ||
"svelte", | ||
"sveltekit", | ||
"svelte-kit" | ||
], | ||
"homepage": "https://www.skeleton.dev", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/skeletonlabs/skeleton", | ||
"directory": "packages/create-skeleton-app/" | ||
}, | ||
"license": "MIT", | ||
"author": "Skeleton Admin <admin@skeletonlabs.co>", | ||
"type": "module", | ||
"main": "./src/index.js", | ||
"bin": "./src/index.js", | ||
"files": [ | ||
"src/**", | ||
"templates/**", | ||
"fonts/**" | ||
], | ||
"engines": { | ||
"node": ">=14.16" | ||
}, | ||
"dependencies": { | ||
"@clack/prompts": "^0.7.0", | ||
"columnify": "^1.6.0", | ||
"create-svelte": "^5.0.6", | ||
"fast-glob": "^3.3.1", | ||
"fs-extra": "^11.1.1", | ||
"got": "^13.0.0", | ||
"json5": "^2.2.3", | ||
"kleur": "^4.1.5", | ||
"mri": "^1.2.0", | ||
"semver": "^7.5.4" | ||
}, | ||
"devDependencies": { | ||
"archiver": "^6.0.1", | ||
"eslint": "^8.49.0", | ||
"eslint-config-prettier": "^9.0.0" | ||
}, | ||
"scripts": { | ||
"prep": "node scripts/prepare-templates.mjs && pnpm format", | ||
"tw": "node scripts/tw.mjs", | ||
"dev": "node src/index.js -p=../../../atest --skeletontemplatedir=../../templates/", | ||
"long": "node src/index.js --types=typescript --prettier --eslint --playwright=false --vitest=false --codeblocks=true --popups=true --typography=false --forms=false -t crimson --skeletontemplate=welcome", | ||
"pub:beta": "pnpm prep && npm publish --tag beta", | ||
"pub:rc": "pnpm prep && npm publish --tag rc", | ||
"pub:release": "pnpm prep && npm publish", | ||
"lint": "prettier --ignore-path .prettierignore --check --plugin-search-dir=. . && eslint --fix --ignore-path .gitignore .", | ||
"format": "prettier --plugin-search-dir . --write ." | ||
} | ||
} | ||
"name": "create-skeleton-app", | ||
"version": "0.0.54", | ||
"description": "Use this CLI app to setup a new Skeleton application in a new SvelteKit project.", | ||
"keywords": [ | ||
"skeleton", | ||
"svelte", | ||
"sveltekit", | ||
"svelte-kit" | ||
], | ||
"homepage": "https://www.skeleton.dev", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/skeletonlabs/skeleton", | ||
"directory": "packages/create-skeleton-app/" | ||
}, | ||
"license": "MIT", | ||
"author": "Skeleton Admin <admin@skeletonlabs.co>", | ||
"type": "module", | ||
"main": "./src/index.js", | ||
"bin": "./src/index.js", | ||
"files": [ | ||
"src/**", | ||
"templates/**", | ||
"fonts/**" | ||
], | ||
"engines": { | ||
"node": ">=14.16" | ||
}, | ||
"scripts": { | ||
"prep": "node scripts/prepare-templates.mjs && pnpm format", | ||
"tw": "node scripts/tw.mjs", | ||
"dev": "node src/index.js -p=../../../_test --skeletontemplatedir=../../templates/", | ||
"short": "node src/index.js", | ||
"long": "node src/index.js --types=typescript --prettier --eslint --playwright=false --vitest=false --codeblocks=true --popups=true --typography=false --forms=false -t crimson --skeletontemplate=welcome", | ||
"pub:beta": "pnpm prep && npm publish --tag beta", | ||
"pub:rc": "pnpm prep && npm publish --tag rc", | ||
"pub:release": "pnpm prep && npm publish", | ||
"lint": "prettier --ignore-path .prettierignore --check --plugin-search-dir=. . && eslint --fix --ignore-path .gitignore .", | ||
"format": "prettier --plugin-search-dir . --write ." | ||
}, | ||
"dependencies": { | ||
"@clack/prompts": "^0.7.0", | ||
"columnify": "^1.6.0", | ||
"create-svelte": "^6.0.0", | ||
"fast-glob": "^3.3.2", | ||
"fs-extra": "^11.2.0", | ||
"got": "^14.0.0", | ||
"json5": "^2.2.3", | ||
"kleur": "^4.1.5", | ||
"mri": "^1.2.0", | ||
"semver": "^7.5.4" | ||
}, | ||
"devDependencies": { | ||
"archiver": "^6.0.1", | ||
"eslint": "^8.55.0", | ||
"eslint-config-prettier": "^9.1.0" | ||
} | ||
} |
@@ -185,8 +185,3 @@ import { create } from 'create-svelte'; | ||
// Here we will just return the typescript default setup | ||
const mdsvexConfig = `import { mdsvex } from 'mdsvex' | ||
/** @type {import('mdsvex').MdsvexOptions} */ | ||
const mdsvexOptions = { | ||
extensions: ['.md'], | ||
}`; | ||
const inspectorConfig = ` | ||
@@ -198,11 +193,10 @@ vitePlugin: { | ||
let str = `import adapter from '@sveltejs/adapter-auto'; | ||
import { vitePreprocess } from '@sveltejs/kit/vite'; | ||
${iit(opts.mdsvex, mdsvexConfig)} | ||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; | ||
/** @type {import('@sveltejs/kit').Config} */ | ||
const config = { | ||
extensions: ['.svelte'${iit(opts.mdsvex, `, '.md'`)}], | ||
extensions: ['.svelte'], | ||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors | ||
// for more information about preprocessors | ||
preprocess: [${iit(opts.mdsvex, 'mdsvex(mdsvexOptions),')} vitePreprocess()], | ||
preprocess: [vitePreprocess()], | ||
${iit(opts.inspector, inspectorConfig)} | ||
@@ -227,5 +221,17 @@ kit: { | ||
export default defineConfig({ | ||
plugins: [sveltekit(), purgeCss()] | ||
}); | ||
`; | ||
plugins: [sveltekit(), purgeCss(`; | ||
if (opts.codeblocks) { | ||
contents += `{ | ||
safelist: { | ||
// any selectors that begin with "hljs-" will not be purged | ||
greedy: [/^hljs-/], | ||
}, | ||
}), | ||
], | ||
});`; | ||
} else { | ||
contents += `)] | ||
});`; | ||
} | ||
writeFileSync(filename, contents); | ||
@@ -481,5 +487,14 @@ } | ||
// Highlight JS | ||
import hljs from 'highlight.js'; | ||
import hljs from 'highlight.js/lib/core'; | ||
import 'highlight.js/styles/github-dark.css'; | ||
import { storeHighlightJs } from '@skeletonlabs/skeleton'; | ||
import xml from 'highlight.js/lib/languages/xml'; // for HTML | ||
import css from 'highlight.js/lib/languages/css'; | ||
import javascript from 'highlight.js/lib/languages/javascript'; | ||
import typescript from 'highlight.js/lib/languages/typescript'; | ||
hljs.registerLanguage('xml', xml); // for HTML | ||
hljs.registerLanguage('css', css); | ||
hljs.registerLanguage('javascript', javascript); | ||
hljs.registerLanguage('typescript', typescript); | ||
storeHighlightJs.set(hljs); | ||
@@ -486,0 +501,0 @@ </script>`, |
@@ -259,3 +259,3 @@ #!/usr/bin/env node | ||
{ value: 'typography', label: 'Add Tailwind typography?', package: '@tailwindcss/typography', force: false }, | ||
// { value: 'codeblocks', label: 'Add CodeBlock (installs highlight.js)?', package: 'highlight.js', force: false }, | ||
{ value: 'codeblocks', label: 'Add CodeBlock (installs highlight.js)?', package: 'highlight.js', force: false }, | ||
{ value: 'popups', label: 'Add Popups (installs floating-ui)?', package: '@floating-ui/dom', force: false }, | ||
@@ -262,0 +262,0 @@ // { value: 'mdsvex', label: 'Add Markdown support (installs mdsvex)?', package: 'mdsvex', force: false }, |
@@ -146,9 +146,2 @@ import { fileURLToPath } from 'node:url'; | ||
{ Option: '--popups', Short: '', 'Quiet Default': 'false', Value: 'true|false', Description: 'Install popups dependencies' }, | ||
{ | ||
Option: '--mdsvex', | ||
Short: '', | ||
'Quiet Default': 'false', | ||
Value: 'true|false', | ||
Description: 'Install mdsvex for markdown processing', | ||
}, | ||
{ Option: '--forms', Short: '', 'Quiet Default': 'false', Value: 'true|false', Description: 'Install Tailwinds Forms plugin' }, | ||
@@ -176,2 +169,3 @@ { | ||
}, | ||
{ Option: '', Short: '', 'Quiet Default': 'wintry', Value: 'wintry', Description: '' }, | ||
{ Option: '', Short: '', 'Quiet Default': 'modern', Value: 'modern', Description: '' }, | ||
@@ -178,0 +172,0 @@ { Option: '', Short: '', 'Quiet Default': 'hamlindigo', Value: 'hamlindigo', Description: '' }, |
4
674746
24
1019
+ Added@sec-ant/readable-stream@0.4.1(transitive)
+ Added@sindresorhus/is@7.0.1(transitive)
+ Addedcacheable-request@12.0.1(transitive)
+ Addedcreate-svelte@6.4.0(transitive)
+ Addedform-data-encoder@4.0.2(transitive)
+ Addedget-stream@9.0.1(transitive)
+ Addedgot@14.4.6(transitive)
+ Addedis-stream@4.0.1(transitive)
+ Addedp-cancelable@4.0.1(transitive)
+ Addedtype-fest@4.34.1(transitive)
- Removed@sindresorhus/is@5.6.0(transitive)
- Removedcacheable-request@10.2.14(transitive)
- Removedcreate-svelte@5.3.4(transitive)
- Removedform-data-encoder@2.1.4(transitive)
- Removedget-stream@6.0.1(transitive)
- Removedgot@13.0.0(transitive)
- Removedp-cancelable@3.0.0(transitive)
Updatedcreate-svelte@^6.0.0
Updatedfast-glob@^3.3.2
Updatedfs-extra@^11.2.0
Updatedgot@^14.0.0