@sveltepress/create 0.43.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +2 -2
- package/index.js +1 -0
- package/package.json +9 -8
- package/LICENSE +0 -7
- package/template-js/package-lock.json +0 -10183
- package/template-js/package.json +0 -21
- package/template-js/src/app.d.ts +0 -14
- package/template-js/src/app.html +0 -12
- package/template-js/src/routes/+layout.js +0 -1
- package/template-js/src/routes/+layout.svelte +0 -2
- package/template-js/src/routes/+page.md +0 -17
- package/template-js/static/sveltepress.svg +0 -9
- package/template-js/static/sveltepress@3x.png +0 -0
- package/template-js/svelte.config.js +0 -17
- package/template-js/vite.config.js +0 -26
- package/template-ts/package-lock.json +0 -10184
- package/template-ts/package.json +0 -22
- package/template-ts/src/app.d.ts +0 -14
- package/template-ts/src/app.html +0 -12
- package/template-ts/src/routes/+layout.svelte +0 -2
- package/template-ts/src/routes/+layout.ts +0 -1
- package/template-ts/src/routes/+page.md +0 -17
- package/template-ts/static/sveltepress.svg +0 -9
- package/template-ts/static/sveltepress@3x.png +0 -0
- package/template-ts/svelte.config.js +0 -17
- package/template-ts/tsconfig.json +0 -16
- package/template-ts/vite.config.ts +0 -26
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
const fs = require('node:fs');
|
|
4
4
|
const path = require('node:path');
|
|
5
|
-
const node_url = require('node:url');
|
|
6
5
|
const process = require('node:process');
|
|
6
|
+
const node_url = require('node:url');
|
|
7
7
|
const spawn = require('cross-spawn');
|
|
8
8
|
const minimist = require('minimist');
|
|
9
|
-
const prompts = require('prompts');
|
|
10
9
|
const pc = require('picocolors');
|
|
10
|
+
const prompts = require('prompts');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
13
13
|
|
|
@@ -16,8 +16,8 @@ const path__default = /*#__PURE__*/_interopDefaultCompat(path);
|
|
|
16
16
|
const process__default = /*#__PURE__*/_interopDefaultCompat(process);
|
|
17
17
|
const spawn__default = /*#__PURE__*/_interopDefaultCompat(spawn);
|
|
18
18
|
const minimist__default = /*#__PURE__*/_interopDefaultCompat(minimist);
|
|
19
|
-
const prompts__default = /*#__PURE__*/_interopDefaultCompat(prompts);
|
|
20
19
|
const pc__default = /*#__PURE__*/_interopDefaultCompat(pc);
|
|
20
|
+
const prompts__default = /*#__PURE__*/_interopDefaultCompat(prompts);
|
|
21
21
|
|
|
22
22
|
const { yellow, blue, reset, red } = pc__default;
|
|
23
23
|
const argv = minimist__default(process__default.argv.slice(2), { string: ["_"] });
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
3
|
import process from 'node:process';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
5
|
import spawn from 'cross-spawn';
|
|
6
6
|
import minimist from 'minimist';
|
|
7
|
-
import prompts from 'prompts';
|
|
8
7
|
import pc from 'picocolors';
|
|
8
|
+
import prompts from 'prompts';
|
|
9
9
|
|
|
10
10
|
const { yellow, blue, reset, red } = pc;
|
|
11
11
|
const argv = minimist(process.argv.slice(2), { string: ["_"] });
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltepress/create",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"description": "The helper for creating sveltepress projects",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Dongsheng Zhao",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
],
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"main": "./dist/index.cjs",
|
|
@@ -32,8 +32,12 @@
|
|
|
32
32
|
"dist",
|
|
33
33
|
"template-*"
|
|
34
34
|
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "unbuild",
|
|
37
|
+
"prepare": "pnpm build"
|
|
38
|
+
},
|
|
35
39
|
"dependencies": {
|
|
36
|
-
"cross-spawn": "^7.0.
|
|
40
|
+
"cross-spawn": "^7.0.6",
|
|
37
41
|
"minimist": "^1.2.8",
|
|
38
42
|
"picocolors": "^1.0.0",
|
|
39
43
|
"prompts": "^2.4.2"
|
|
@@ -45,8 +49,5 @@
|
|
|
45
49
|
"@types/prompts": "^2.4.9",
|
|
46
50
|
"typescript": "^5.3.3",
|
|
47
51
|
"unbuild": "^2.0.0"
|
|
48
|
-
},
|
|
49
|
-
"scripts": {
|
|
50
|
-
"build": "unbuild"
|
|
51
52
|
}
|
|
52
|
-
}
|
|
53
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2020 [these people](https://github.com/Blackman99/sveltepress/graphs/contributors)
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|