create-skeleton-app
Advanced tools
Comparing version 0.0.46-rc.2 to 0.0.46-rc.3
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
import { dist, getHelpText, goodbye, whichPMRuns, checkIfDirSafeToInstall } from './utils.js'; | ||
import path, { resolve, join } from 'path'; | ||
import { resolve, join, relative, dirname, basename } from 'path'; | ||
import semver from 'semver'; | ||
@@ -75,3 +75,3 @@ import fg from 'fast-glob'; | ||
if (startPath != opts.path) { | ||
finalInstructions += bold(cyan(`cd ${path.relative(startPath, opts.path)}\n`)); | ||
finalInstructions += bold(cyan(`cd ${relative(startPath, opts.path)}\n`)); | ||
} | ||
@@ -160,3 +160,3 @@ finalInstructions += bold(cyan(runString)); | ||
// name to set in package.json | ||
opts.name = opts.path; | ||
opts.name = basename(opts.path); | ||
@@ -209,3 +209,3 @@ // Skeleton Template Selection | ||
} | ||
opts.skeletontemplatedir = path.dirname(opts.skeletontemplate); | ||
opts.skeletontemplatedir = dirname(opts.skeletontemplate); | ||
@@ -212,0 +212,0 @@ // If it's a premium template, wording needs to be change to indicate that there is a theme already built in |
{ | ||
"name": "create-skeleton-app", | ||
"version": "0.0.46-rc.2", | ||
"version": "0.0.46-rc.3", | ||
"description": "Use this CLI app to setup a new Skeleton application in a new SvelteKit project.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -45,3 +45,5 @@ import { create } from 'create-svelte'; | ||
['tailwindcss', 'latest'], | ||
['@skeletonlabs/skeleton', 'latest'], | ||
['@skeletonlabs/skeleton', '2.0.0-rc.1'], | ||
['@skeletonlabs/tw-plugin', '0.0.1-rc.3'], | ||
['vite-plugin-tailwind-purgecss', 'latest'], | ||
]); | ||
@@ -117,11 +119,4 @@ | ||
// add required packages | ||
for (const pkg of [ | ||
'postcss', | ||
'autoprefixer', | ||
'tailwindcss', | ||
'@skeletonlabs/skeleton', | ||
'@skeletonlabs/tw-plugin', | ||
'vite-plugin-tailwind-purgecss', | ||
]) { | ||
setNestedValue(pkgJson, ['devDependencies', pkg], 'latest'); | ||
for (const [pkg, version] of opts.devDependencies) { | ||
setNestedValue(pkgJson, ['devDependencies', pkg], version); | ||
} | ||
@@ -128,0 +123,0 @@ |
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
import { dist, getHelpText, goodbye, whichPMRuns, checkIfDirSafeToInstall } from './utils.js'; | ||
import path, { resolve, join } from 'path'; | ||
import { resolve, join, relative, dirname, basename } from 'path'; | ||
import semver from 'semver'; | ||
@@ -75,3 +75,3 @@ import fg from 'fast-glob'; | ||
if (startPath != opts.path) { | ||
finalInstructions += bold(cyan(`cd ${path.relative(startPath, opts.path)}\n`)); | ||
finalInstructions += bold(cyan(`cd ${relative(startPath, opts.path)}\n`)); | ||
} | ||
@@ -160,3 +160,3 @@ finalInstructions += bold(cyan(runString)); | ||
// name to set in package.json | ||
opts.name = opts.path; | ||
opts.name = basename(opts.path); | ||
@@ -209,3 +209,3 @@ // Skeleton Template Selection | ||
} | ||
opts.skeletontemplatedir = path.dirname(opts.skeletontemplate); | ||
opts.skeletontemplatedir = dirname(opts.skeletontemplate); | ||
@@ -212,0 +212,0 @@ // If it's a premium template, wording needs to be change to indicate that there is a theme already built in |
685307
1293