@tomjs/create-app 0.1.3 → 0.2.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 -0
- package/README.zh_CN.md +1 -0
- package/dist/index.mjs +5 -4
- package/package.json +3 -1
- package/template-node/LICENSE +21 -0
- package/template-node/README.md +26 -2
- package/template-node/README.zh_CN.md +24 -2
- package/template-node/jest.config.js +7 -0
- package/template-node/package.json +23 -5
- package/template-node/test/simple.test.ts +5 -0
- package/template-node/tsup.config.ts +0 -1
- package/{template-node-github → template-node-electron}/LICENSE +1 -1
- package/{template-node-github → template-node-electron}/README.md +5 -5
- package/template-node-electron/README.zh_CN.md +27 -0
- package/template-node-electron/jest.config.js +8 -0
- package/{template-node-github → template-node-electron}/package.json +12 -8
- package/template-node-electron/test/simple.test.ts +10 -0
- package/{template-node-github → template-node-electron}/tsconfig.json +3 -1
- package/{template-node-github → template-node-electron}/tsup.config.ts +2 -1
- package/template-node-github/README.zh_CN.md +0 -27
- /package/{template-node-github → template-node-electron}/.eslintrc.cjs +0 -0
- /package/{template-node-github → template-node-electron}/_lintstagedrc.cjs +0 -0
- /package/{template-node-github → template-node-electron}/src/index.ts +0 -0
package/README.md
CHANGED
package/README.zh_CN.md
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
Scaffolding project in ${
|
|
4
|
-
`),
|
|
2
|
+
import a from"fs";import Z from"os";import l from"path";import{fileURLToPath as ee}from"url";import{blue as v,cyan as te,green as ne,red as U,reset as d,yellow as j}from"kolorist";import{camelCase as re}from"lodash-es";import oe from"minimist";import ie from"prompts";import w from"shelljs";import p from"fs";import E from"path";function M(e){return[["t","template"]].forEach(([t,r])=>{e[r]=e[r]??e[t]}),e}function V(e){let t=p.readdirSync(e);return t.length===0||t.length===1&&t[0]===".git"}function x(e){return e?.trim().replace(/\/+$/g,"")}function Y(e,t){p.mkdirSync(t,{recursive:!0});for(let r of p.readdirSync(e)){let f=E.resolve(e,r),h=E.resolve(t,r);F(f,h)}}function F(e,t){p.statSync(e).isDirectory()?Y(e,t):p.copyFileSync(e,t)}function z(e){if(p.existsSync(e))for(let t of p.readdirSync(e))t!==".git"&&p.rmSync(E.resolve(e,t),{recursive:!0,force:!0})}function N(e){return/^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test(e)}function W(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/^[._]/,"").replace(/[^a-z\d\-~]+/g,"-")}function I(e){if(!e)return;let r=e.split(" ")[0].split("/");return{name:r[0],version:r[1]}}var $=M(oe(process.argv.slice(2),{string:["_"]})),R=process.cwd(),G=[{name:"vue",display:"Vue",color:ne,variants:[{name:"vue",display:"Web",color:v},{name:"electron-vue",display:"Electron",color:j}]},{name:"react",display:"React",color:te,variants:[{name:"react",display:"Web",color:v},{name:"electron-react",display:"Electron",color:j}]},{name:"node",display:"Node",color:v,publish:!0,variants:[{name:"node",display:"base",color:v},{name:"node-electron",display:"Electron",color:j}]}],L=G.map(e=>e.variants&&e.variants.map(t=>t.name)||[e.name]).reduce((e,t)=>e.concat(t),[]),ae={_gitignore:".gitignore","_lintstagedrc.cjs":".lintstagedrc.cjs"},P="my-app";function J(e){let t=w.exec(`git config --get ${e}`,{silent:!0});if(t.code===0)return t.stdout.trim()}async function se(){let e=x($._[0]),t=$.template||$.t,r=e||P,f=()=>r==="."?l.basename(l.resolve()):r,h={};h=await ie([{type:e?null:"text",name:"projectName",message:d("Project name:"),initial:P,onState:n=>{r=x(n.value)||P}},{type:()=>!a.existsSync(r)||V(r)?null:"toggle",name:"overwrite",message:()=>(r==="."?"Current directory":`Target directory "${r}"`)+" is not empty. Remove existing files and continue?",initial:!1,active:"yes",inactive:"no"},{type:(n,{overwrite:o})=>{if(o===!1)throw console.log(U("\u2716")+" Operation cancelled"),new Error;return null},name:"overwriteChecker"},{type:()=>N(f())?null:"text",name:"packageName",message:d("Package name:"),initial:()=>W(f()),validate:n=>N(n)||"Invalid package.json name"},{type:t&&L.includes(t)?null:"select",name:"framework",message:typeof t=="string"&&!L.includes(t)?d(`"${t}" isn't a valid template. Please choose from below: `):d("Select a framework:"),initial:0,choices:G.map(n=>{let o=n.color;return{title:o(n.display||n.name),value:n}})},{type:n=>n&&n.variants?"select":null,name:"variant",message:d("Select a variant:"),choices:n=>n?.variants?.map(o=>{let i=o.color;return{title:i(o.display||o.name),value:o.name}})},{type:(n,o)=>{let{variant:i,framework:u}=o,{publish:y,variants:X}=u||{};if(!(!y&&!X?.find(O=>O.name===i&&O.publish)))return"toggle"},name:"publish",message:d("Whether to publish to the npm repository?"),initial:!0,active:"yes",inactive:"no"}],{onCancel:()=>{throw console.log(U("\u2716")+" Operation cancelled"),new Error}});let{framework:K,overwrite:q,packageName:B,variant:H,publish:C}=h,s=l.join(R,r.substring(r.indexOf("/")+1));q?z(s):a.existsSync(s)||a.mkdirSync(s,{recursive:!0}),console.log(`
|
|
3
|
+
Scaffolding project in ${s}...`);let k=H||K?.name||t||"",D=n=>l.join(ee(import.meta.url),"../..",`template-${n}`),A=D(k),_=k.includes("node");[A,D("config")].forEach(n=>{let o=a.readdirSync(n);for(let i of o){let u=ae[i]??i;if(_&&i.includes("stylelint"))continue;let y=l.join(s,u);F(l.join(n,i),y)}});let Q=`template-${k}`,c=JSON.parse(a.readFileSync(l.join(A,"package.json"),"utf-8")),m=B||f();c.name=m;let g={name:"UserName",email:"name@github.com"};if(C){w.which("git")&&(g.name=J("user.name")||Z.userInfo().username,g.email=J("user.email")||"",c.author=Object.assign(c.author,g));let n=m.startsWith("@")?m.split("/")[0].substring(1):re(g.name);c.repository.url=`https://github.com/${n}/${m.substring(m.indexOf("/")+1)}.git`}else delete c.author,delete c.publishConfig,delete c.repository,delete c.scripts.prepublishOnly,delete c.devDependencies.np;a.writeFileSync(l.join(s,"package.json"),JSON.stringify(c,null,2)+`
|
|
4
|
+
`),_&&["LICENSE","README.md","README.zh_CN.md"].forEach(n=>{let o=l.join(s,n);if(!C&&a.existsSync(o)){a.rmSync(o),n==="README.md"&&a.writeFileSync(o,`# ${m}
|
|
5
|
+
`,{encoding:"utf-8"});return}if(!a.existsSync(o))return;let i=a.readFileSync(o,"utf-8").replace(new RegExp(Q,"g"),m).replace(new RegExp("{{user.name}}","g"),g.name).replace(new RegExp("{{user.email}}","g"),g.email);if(n.startsWith("README")){let u=m.replace("@","%40"),y=m.replace("@","%40").replace(new RegExp("/","g"),"%2F");i=i.replace("{{badges}}",[``,``,``].join(" "))}a.writeFileSync(o,i)});let T=I(process.env.npm_config_user_agent),b=T?T.name:"npm";w.which("git")&&w.exec(`cd ${s} && git init`);let S=l.relative(R,s);switch(console.log(`
|
|
5
6
|
Done. Now run:
|
|
6
|
-
`),
|
|
7
|
+
`),s!==R&&console.log(` cd ${S.includes(" ")?`"${S}"`:S}`),b){case"yarn":console.log(" yarn"),console.log(" yarn dev");break;default:console.log(` ${b} install`),console.log(` ${b} run dev`);break}}se().catch(e=>{e.message&&console.error(e)});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomjs/create-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "create tomjs web app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tomjs",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"kolorist": "^1.8.0",
|
|
47
|
+
"lodash-es": "^4.17.21",
|
|
47
48
|
"minimist": "^1.2.8",
|
|
48
49
|
"prompts": "^2.4.2",
|
|
49
50
|
"shelljs": "^0.8.5"
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"@tomjs/eslint": "^1.1.0",
|
|
55
56
|
"@tomjs/prettier": "^1.0.6",
|
|
56
57
|
"@tomjs/tsconfig": "^1.0.8",
|
|
58
|
+
"@types/lodash-es": "^4.17.12",
|
|
57
59
|
"@types/minimist": "^1.2.5",
|
|
58
60
|
"@types/node": "^18.19.0",
|
|
59
61
|
"@types/prompts": "^2.4.9",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023-PRESENT {{user.name}}<{{user.email}}>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/template-node/README.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
# node
|
|
1
|
+
# template-node
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
{{badges}}
|
|
4
|
+
|
|
5
|
+
> Basic node template
|
|
6
|
+
|
|
7
|
+
**English** | [中文](./README.zh_CN.md)
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
With `pnpm`
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm add template-node
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
With `yarn`
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
yarn add template-node
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
With `npm`
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm i template-node
|
|
27
|
+
```
|
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
# node
|
|
1
|
+
# template-node
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
{{badges}}
|
|
4
|
+
|
|
5
|
+
> 基础 node 模板
|
|
4
6
|
|
|
5
7
|
[English](./README.md) | **中文**
|
|
8
|
+
|
|
9
|
+
## 安装
|
|
10
|
+
|
|
11
|
+
使用 `pnpm`
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm add template-node
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
使用 `yarn`
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
yarn add template-node
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
使用 `npm`
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm i template-node
|
|
27
|
+
```
|
|
@@ -3,16 +3,27 @@
|
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"description": "basic node.js template",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"node",
|
|
8
|
-
"backend"
|
|
6
|
+
"node"
|
|
9
7
|
],
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "name",
|
|
10
|
+
"email": "name@github.com"
|
|
11
|
+
},
|
|
12
|
+
"license": "MIT",
|
|
10
13
|
"engines": {
|
|
11
14
|
"node": ">=16"
|
|
12
15
|
},
|
|
13
16
|
"files": [
|
|
14
17
|
"dist"
|
|
15
18
|
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"registry": "https://registry.npmjs.org/"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/xxx/template-node.git"
|
|
26
|
+
},
|
|
16
27
|
"main": "./dist/index.js",
|
|
17
28
|
"module": "./dist/index.mjs",
|
|
18
29
|
"types": "./dist/index.d.ts",
|
|
@@ -27,27 +38,34 @@
|
|
|
27
38
|
"dev": "tsup --watch",
|
|
28
39
|
"start": "tsx ./src/index.ts",
|
|
29
40
|
"build": "tsup",
|
|
41
|
+
"test": "jest",
|
|
30
42
|
"lint": "run-s lint:eslint lint:prettier",
|
|
31
|
-
"lint:eslint": "eslint \"src/**/*.ts\" *.{js,cjs,ts} --fix --cache",
|
|
43
|
+
"lint:eslint": "eslint \"{src,test}/**/*.ts\" *.{js,cjs,ts} --fix --cache",
|
|
32
44
|
"lint:prettier": "prettier --write .",
|
|
33
|
-
"prepare": "husky install"
|
|
45
|
+
"prepare": "husky install",
|
|
46
|
+
"prepublishOnly": "npm run build && np --any-branch --no-yarn --yolo --no-publish --message \"chore: release v%s\""
|
|
34
47
|
},
|
|
35
48
|
"dependencies": {
|
|
36
49
|
"kolorist": "^1.8.0"
|
|
37
50
|
},
|
|
38
51
|
"devDependencies": {
|
|
39
52
|
"@commitlint/cli": "^18.4.3",
|
|
53
|
+
"@jest/globals": "^29.7.0",
|
|
40
54
|
"@tomjs/commitlint": "^2.0.5",
|
|
41
55
|
"@tomjs/eslint": "^1.1.0",
|
|
42
56
|
"@tomjs/prettier": "^1.0.6",
|
|
43
57
|
"@tomjs/tsconfig": "^1.0.8",
|
|
58
|
+
"@types/jest": "^29.5.10",
|
|
44
59
|
"@types/node": "^18.19.0",
|
|
45
60
|
"eslint": "^8.54.0",
|
|
46
61
|
"husky": "^8.0.3",
|
|
62
|
+
"jest": "^29.7.0",
|
|
47
63
|
"lint-staged": "^15.1.0",
|
|
64
|
+
"np": "^9.0.0",
|
|
48
65
|
"npm-run-all": "^4.1.5",
|
|
49
66
|
"prettier": "^3.1.0",
|
|
50
67
|
"rimraf": "^5.0.5",
|
|
68
|
+
"ts-jest": "^29.1.1",
|
|
51
69
|
"tsup": "^8.0.1",
|
|
52
70
|
"tsx": "^4.6.1",
|
|
53
71
|
"typescript": "~5.2.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) {{user.name}}<{{user.email}}>
|
|
3
|
+
Copyright (c) 2023-PRESENT {{user.name}}<{{user.email}}>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# template-node-
|
|
1
|
+
# template-node-electron
|
|
2
2
|
|
|
3
3
|
{{badges}}
|
|
4
4
|
|
|
5
|
-
> Basic
|
|
5
|
+
> Basic Electron template
|
|
6
6
|
|
|
7
7
|
**English** | [中文](./README.zh_CN.md)
|
|
8
8
|
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
With `pnpm`
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
pnpm add template-node-
|
|
14
|
+
pnpm add template-node-electron
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
With `yarn`
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
yarn add template-node-
|
|
20
|
+
yarn add template-node-electron
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
With `npm`
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
npm i template-node-
|
|
26
|
+
npm i template-node-electron
|
|
27
27
|
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# template-node-electron
|
|
2
|
+
|
|
3
|
+
{{badges}}
|
|
4
|
+
|
|
5
|
+
> 基础 Electron 模板
|
|
6
|
+
|
|
7
|
+
[English](./README.md) | **中文**
|
|
8
|
+
|
|
9
|
+
## 安装
|
|
10
|
+
|
|
11
|
+
使用 `pnpm`
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm add template-node-electron
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
使用 `yarn`
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
yarn add template-node-electron
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
使用 `npm`
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm i template-node-electron
|
|
27
|
+
```
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "template-node-
|
|
2
|
+
"name": "template-node-electron",
|
|
3
3
|
"version": "0.0.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Basic Electron template",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"node",
|
|
8
|
-
"back-end",
|
|
9
|
-
"backend"
|
|
6
|
+
"electron"
|
|
10
7
|
],
|
|
11
8
|
"author": {
|
|
12
9
|
"name": "name",
|
|
@@ -25,7 +22,7 @@
|
|
|
25
22
|
},
|
|
26
23
|
"repository": {
|
|
27
24
|
"type": "git",
|
|
28
|
-
"url": "git+https://github.com/xxx/template-node-
|
|
25
|
+
"url": "git+https://github.com/xxx/template-node-electron.git"
|
|
29
26
|
},
|
|
30
27
|
"main": "./dist/index.js",
|
|
31
28
|
"module": "./dist/index.mjs",
|
|
@@ -41,8 +38,9 @@
|
|
|
41
38
|
"dev": "tsup --watch",
|
|
42
39
|
"start": "tsx ./src/index.ts",
|
|
43
40
|
"build": "tsup",
|
|
41
|
+
"test": "jest",
|
|
44
42
|
"lint": "run-s lint:eslint lint:prettier",
|
|
45
|
-
"lint:eslint": "eslint \"src/**/*.ts\" *.{js,cjs,ts} --fix --cache",
|
|
43
|
+
"lint:eslint": "eslint \"{src,test}/**/*.ts\" *.{js,cjs,ts} --fix --cache",
|
|
46
44
|
"lint:prettier": "prettier --write .",
|
|
47
45
|
"prepare": "husky install",
|
|
48
46
|
"prepublishOnly": "npm run build && np --any-branch --no-yarn --yolo --no-publish --message \"chore: release v%s\""
|
|
@@ -52,18 +50,24 @@
|
|
|
52
50
|
},
|
|
53
51
|
"devDependencies": {
|
|
54
52
|
"@commitlint/cli": "^18.4.3",
|
|
53
|
+
"@jest/globals": "^29.7.0",
|
|
54
|
+
"@kayahr/jest-electron-runner": "^29.10.0",
|
|
55
55
|
"@tomjs/commitlint": "^2.0.5",
|
|
56
56
|
"@tomjs/eslint": "^1.1.0",
|
|
57
57
|
"@tomjs/prettier": "^1.0.6",
|
|
58
58
|
"@tomjs/tsconfig": "^1.0.8",
|
|
59
|
+
"@types/jest": "^29.5.10",
|
|
59
60
|
"@types/node": "^18.19.0",
|
|
61
|
+
"electron": "^27.1.3",
|
|
60
62
|
"eslint": "^8.54.0",
|
|
61
63
|
"husky": "^8.0.3",
|
|
64
|
+
"jest": "^29.7.0",
|
|
62
65
|
"lint-staged": "^15.1.0",
|
|
63
66
|
"np": "^9.0.0",
|
|
64
67
|
"npm-run-all": "^4.1.5",
|
|
65
68
|
"prettier": "^3.1.0",
|
|
66
69
|
"rimraf": "^5.0.5",
|
|
70
|
+
"ts-jest": "^29.1.1",
|
|
67
71
|
"tsup": "^8.0.1",
|
|
68
72
|
"tsx": "^4.6.1",
|
|
69
73
|
"typescript": "~5.2.2"
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { defineConfig } from 'tsup';
|
|
2
|
+
import pkg from './package.json';
|
|
2
3
|
|
|
3
4
|
export default defineConfig({
|
|
4
5
|
entry: ['src/index.ts'],
|
|
5
6
|
format: ['esm', 'cjs'],
|
|
6
7
|
target: ['es2021', 'node16'],
|
|
8
|
+
external: ['electron'].concat(Object.keys(pkg.dependencies)),
|
|
7
9
|
clean: true,
|
|
8
10
|
dts: true,
|
|
9
|
-
sourcemap: false,
|
|
10
11
|
splitting: true,
|
|
11
12
|
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# template-node-github
|
|
2
|
-
|
|
3
|
-
{{badges}}
|
|
4
|
-
|
|
5
|
-
> 基础 node 模板
|
|
6
|
-
|
|
7
|
-
[English](./README.md) | **中文**
|
|
8
|
-
|
|
9
|
-
## 安装
|
|
10
|
-
|
|
11
|
-
使用 `pnpm`
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
pnpm add template-node-github
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
使用 `yarn`
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
yarn add template-node-github
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
使用 `npm`
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
npm i template-node-github
|
|
27
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|