create-svelte
Advanced tools
Comparing version 2.0.0-next.58 to 2.0.0-next.59
@@ -16,3 +16,3 @@ #!/usr/bin/env node | ||
const { version } = JSON.parse(fs.readFileSync(new URL('package.json', import.meta.url))); | ||
const { version } = JSON.parse(fs.readFileSync(new URL('package.json', import.meta.url), 'utf-8')); | ||
@@ -143,3 +143,3 @@ async function main() { | ||
* @param {string} template | ||
* @param {string} typescript | ||
* @param {boolean} typescript | ||
* @param {string} name | ||
@@ -146,0 +146,0 @@ * @param {string} cwd |
# create-svelte | ||
## 2.0.0-next.59 | ||
### Patch Changes | ||
- a2f3f4b: Rename `start` to `preview` in the CLI and package scripts | ||
## 2.0.0-next.58 | ||
@@ -4,0 +10,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"exclude": [], | ||
"contents": "# create-svelte\n\nEverything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte);\n\n## Creating a project\n\nIf you're seeing this, you've probably already done this step. Congrats!\n\n```bash\n# create a new project in the current directory\nnpm init svelte@next\n\n# create a new project in my-app\nnpm init svelte@next my-app\n```\n\n> Note: the `@next` is temporary\n\n## Developing\n\nOnce you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:\n\n```bash\nnpm run dev\n\n# or start the server and open the app in a new browser tab\nnpm run dev -- --open\n```\n\n## Building\n\nBefore creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then:\n\n```bash\nnpm run build\n```\n\n> You can preview the built app with `npm start`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.\n" | ||
"contents": "# create-svelte\n\nEverything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte);\n\n## Creating a project\n\nIf you're seeing this, you've probably already done this step. Congrats!\n\n```bash\n# create a new project in the current directory\nnpm init svelte@next\n\n# create a new project in my-app\nnpm init svelte@next my-app\n```\n\n> Note: the `@next` is temporary\n\n## Developing\n\nOnce you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:\n\n```bash\nnpm run dev\n\n# or start the server and open the app in a new browser tab\nnpm run dev -- --open\n```\n\n## Building\n\nBefore creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then:\n\n```bash\nnpm run build\n```\n\n> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.\n" | ||
}, | ||
@@ -10,0 +10,0 @@ { |
@@ -7,3 +7,3 @@ { | ||
"build": "svelte-kit build", | ||
"start": "svelte-kit start" | ||
"preview": "svelte-kit preview" | ||
}, | ||
@@ -10,0 +10,0 @@ "devDependencies": { |
@@ -7,3 +7,3 @@ { | ||
"build": "svelte-kit build", | ||
"start": "svelte-kit start" | ||
"preview": "svelte-kit preview" | ||
}, | ||
@@ -10,0 +10,0 @@ "devDependencies": { |
{ | ||
"name": "create-svelte", | ||
"version": "2.0.0-next.58", | ||
"version": "2.0.0-next.59", | ||
"bin": "./bin.js", | ||
@@ -10,3 +10,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"@sveltejs/kit": "1.0.0-next.85", | ||
"@sveltejs/kit": "1.0.0-next.86", | ||
"@types/gitignore-parser": "^0.0.0", | ||
@@ -20,3 +20,4 @@ "@types/prettier": "^2.2.3", | ||
"svelte-preprocess": "^4.7.0", | ||
"tiny-glob": "^0.2.8" | ||
"tiny-glob": "^0.2.8", | ||
"typescript": "^4.2.4" | ||
}, | ||
@@ -31,6 +32,7 @@ "files": [ | ||
"build": "node scripts/build-templates", | ||
"check": "tsc", | ||
"lint": "eslint --ignore-path .gitignore --ignore-path ../../.gitignore \"./*.js\" && npm run check-format", | ||
"format": "prettier --write . --config ../../.prettierrc --ignore-path .gitignore --ignore-path ../../.gitignore", | ||
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore --ignore-path ../../.gitignore" | ||
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path ../../.gitignore --ignore-path .gitignore" | ||
} | ||
} |
546356
11