@tomjs/create-app 0.0.6 → 0.0.8
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 +7 -7
- package/README.zh_CN.md +7 -30
- package/dist/index.mjs +4 -4
- package/package.json +14 -12
- package/template-react/README.md +5 -1
- package/template-vue/README.md +4 -15
- package/template-config/.commitlintrc.js +0 -3
- package/template-config/.editorconfig +0 -15
- package/template-config/.eslintignore +0 -14
- package/template-config/.gitattributes +0 -199
- package/template-config/.husky/commit-msg +0 -5
- package/template-config/.husky/common.sh +0 -9
- package/template-config/.husky/pre-commit +0 -5
- package/template-config/.prettierignore +0 -17
- package/template-config/.prettierrc.js +0 -1
- package/template-config/.stylelintignore +0 -16
- package/template-config/.stylelintrc.js +0 -3
- package/template-config/_gitignore +0 -58
- package/template-electron-react/.eslintrc.js +0 -7
- package/template-electron-react/.vscode/.debug.env +0 -1
- package/template-electron-react/.vscode/.debug.script.mjs +0 -23
- package/template-electron-react/.vscode/extensions.json +0 -6
- package/template-electron-react/.vscode/launch.json +0 -53
- package/template-electron-react/.vscode/settings.json +0 -13
- package/template-electron-react/.vscode/tasks.json +0 -31
- package/template-electron-react/_lintstagedrc.js +0 -5
- package/template-electron-react/electron/electron-env.d.ts +0 -11
- package/template-electron-react/electron/main/index.ts +0 -117
- package/template-electron-react/electron/preload/index.ts +0 -0
- package/template-electron-react/index.html +0 -15
- package/template-electron-react/package.json +0 -61
- package/template-electron-react/public/img/icon.png +0 -0
- package/template-electron-react/public/vite.svg +0 -1
- package/template-electron-react/scripts/builder.ts +0 -38
- package/template-electron-react/scripts/constants.ts +0 -16
- package/template-electron-react/scripts/release.ts +0 -41
- package/template-electron-react/src/App.css +0 -45
- package/template-electron-react/src/App.tsx +0 -40
- package/template-electron-react/src/assets/electron.svg +0 -10
- package/template-electron-react/src/assets/react.svg +0 -1
- package/template-electron-react/src/index.css +0 -69
- package/template-electron-react/src/main.tsx +0 -11
- package/template-electron-react/src/vite-env.d.ts +0 -1
- package/template-electron-react/tsconfig.json +0 -10
- package/template-electron-react/tsconfig.node.json +0 -7
- package/template-electron-react/vite.config.ts +0 -111
- package/template-electron-vue/.eslintrc.js +0 -7
- package/template-electron-vue/.vscode/.debug.env +0 -1
- package/template-electron-vue/.vscode/.debug.script.mjs +0 -23
- package/template-electron-vue/.vscode/extensions.json +0 -6
- package/template-electron-vue/.vscode/launch.json +0 -53
- package/template-electron-vue/.vscode/settings.json +0 -13
- package/template-electron-vue/.vscode/tasks.json +0 -31
- package/template-electron-vue/_lintstagedrc.js +0 -6
- package/template-electron-vue/electron/electron-env.d.ts +0 -11
- package/template-electron-vue/electron/main/index.ts +0 -117
- package/template-electron-vue/electron/preload/index.ts +0 -0
- package/template-electron-vue/index.html +0 -15
- package/template-electron-vue/package.json +0 -58
- package/template-electron-vue/public/img/icon.png +0 -0
- package/template-electron-vue/public/vite.svg +0 -1
- package/template-electron-vue/scripts/builder.ts +0 -38
- package/template-electron-vue/scripts/constants.ts +0 -16
- package/template-electron-vue/scripts/release.ts +0 -41
- package/template-electron-vue/src/App.vue +0 -43
- package/template-electron-vue/src/assets/electron.svg +0 -10
- package/template-electron-vue/src/assets/vue.svg +0 -1
- package/template-electron-vue/src/components/HelloWorld.vue +0 -37
- package/template-electron-vue/src/main.ts +0 -6
- package/template-electron-vue/src/style.css +0 -80
- package/template-electron-vue/src/vite-env.d.ts +0 -1
- package/template-electron-vue/tsconfig.json +0 -10
- package/template-electron-vue/tsconfig.node.json +0 -7
- package/template-electron-vue/vite.config.ts +0 -111
- package/template-react/.eslintrc.js +0 -7
- package/template-react/_lintstagedrc.js +0 -5
- package/template-react/index.html +0 -14
- package/template-react/package.json +0 -41
- package/template-react/public/vite.svg +0 -1
- package/template-react/src/App.css +0 -42
- package/template-react/src/App.tsx +0 -32
- package/template-react/src/assets/react.svg +0 -1
- package/template-react/src/index.css +0 -69
- package/template-react/src/main.tsx +0 -11
- package/template-react/src/vite-env.d.ts +0 -1
- package/template-react/tsconfig.json +0 -5
- package/template-react/tsconfig.node.json +0 -7
- package/template-react/vite.config.ts +0 -7
- package/template-vue/.eslintrc.js +0 -7
- package/template-vue/_lintstagedrc.js +0 -6
- package/template-vue/index.html +0 -14
- package/template-vue/package.json +0 -39
- package/template-vue/public/vite.svg +0 -1
- package/template-vue/src/App.vue +0 -32
- package/template-vue/src/assets/vue.svg +0 -1
- package/template-vue/src/components/HelloWorld.vue +0 -37
- package/template-vue/src/main.ts +0 -6
- package/template-vue/src/style.css +0 -80
- package/template-vue/src/vite-env.d.ts +0 -1
- package/template-vue/tsconfig.json +0 -5
- package/template-vue/tsconfig.node.json +0 -7
- package/template-vue/vite.config.ts +0 -7
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
  
|
|
4
4
|
|
|
5
|
-
Create a web application based on
|
|
5
|
+
Create a web application based on [vite](https://github.com/vitejs/vite) + [tomjs](https://github.com/tomgao365/tomjs), recommended `node>=18`
|
|
6
6
|
|
|
7
7
|
**English** | [中文](./README.zh_CN.md)
|
|
8
8
|
|
|
@@ -33,33 +33,33 @@ You can also directly specify the project name, template, and module type.
|
|
|
33
33
|
- Using `npm`
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
npm create @tomjs/app@latest my-app -- --template vue
|
|
36
|
+
npm create @tomjs/app@latest my-app -- --template vue
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
- Using `yarn`
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
yarn create @tomjs/app my-app --template vue
|
|
42
|
+
yarn create @tomjs/app my-app --template vue
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
- Using `pnpm`
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
pnpm create @tomjs/app --template vue
|
|
48
|
+
pnpm create @tomjs/app --template vue
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
Parameters:
|
|
52
52
|
|
|
53
53
|
- `-t --template` : specify the template, optional values: `vue` , `react`
|
|
54
|
-
- `-m --module` : `package.json` uses `type:"module"`, otherwise use `commonjs`
|
|
55
54
|
|
|
56
55
|
Support templates:
|
|
57
56
|
|
|
58
57
|
- vue
|
|
59
|
-
- vue
|
|
58
|
+
- electron-vue
|
|
60
59
|
- react
|
|
61
|
-
- react
|
|
60
|
+
- electron-react
|
|
62
61
|
|
|
63
62
|
## Reference project
|
|
64
63
|
|
|
65
64
|
- [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite)
|
|
65
|
+
- [electron-vite-vue](https://github.com/electron-vite/electron-vite-vue)
|
package/README.zh_CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
  
|
|
4
4
|
|
|
5
|
-
创建基于 tomjs
|
|
5
|
+
创建基于 [vite](https://github.com/vitejs/vite) + [tomjs](https://github.com/tomgao365/tomjs) 的 web 应用,推荐 `node>=18`
|
|
6
6
|
|
|
7
7
|
[English](./README.md) | **中文**
|
|
8
8
|
|
|
@@ -34,56 +34,33 @@ pnpm create @tomjs/app
|
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
36
|
npm create @tomjs/app@latest
|
|
37
|
-
npm create @tomjs/app@latest my-app -- --template vue
|
|
37
|
+
npm create @tomjs/app@latest my-app -- --template vue
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
- 使用 `yarn`
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
yarn create @tomjs/app my-app --template vue
|
|
43
|
+
yarn create @tomjs/app my-app --template vue
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
- 使用 `pnpm`
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
pnpm create @tomjs/app my-app --template vue
|
|
49
|
+
pnpm create @tomjs/app my-app --template vue
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
参数说明:
|
|
53
53
|
|
|
54
54
|
- `-t --template`:指定模板,可选值:`vue`、`react`
|
|
55
|
-
- `-m --module`:`package.json` 使用 `type:"module"`,否则使用 `commonjs`
|
|
56
55
|
|
|
57
56
|
支持模板:
|
|
58
57
|
|
|
59
58
|
- vue
|
|
59
|
+
- electron-vue
|
|
60
60
|
- react
|
|
61
|
-
|
|
62
|
-
## 项目配置
|
|
63
|
-
|
|
64
|
-
项目配置在 `package.json` 中,可配置项如下:
|
|
65
|
-
|
|
66
|
-
````json
|
|
67
|
-
{
|
|
68
|
-
"name": "my-app",
|
|
69
|
-
"version": "0.0.1",
|
|
70
|
-
"description": "",
|
|
71
|
-
"main": "src/main.ts",
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
## 项目结构
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
.
|
|
78
|
-
├── README.md
|
|
79
|
-
├── package.json
|
|
80
|
-
├── src
|
|
81
|
-
│ ├── App.vue
|
|
82
|
-
│ ├── main.ts
|
|
83
|
-
│ └── shims-vue.d.ts
|
|
84
|
-
├── tsconfig.json
|
|
61
|
+
- electron-react
|
|
85
62
|
|
|
86
63
|
## 参考项目
|
|
87
64
|
|
|
88
65
|
- [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite)
|
|
89
|
-
|
|
66
|
+
- [electron-vite-vue](https://github.com/electron-vite/electron-vite-vue)
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import c from"fs";import a from"path";import{fileURLToPath as
|
|
3
|
-
Scaffolding project in ${i}...`);let L
|
|
4
|
-
`);let
|
|
2
|
+
import c from"fs";import a from"path";import{fileURLToPath as J}from"url";import{blue as A,cyan as K,green as q,red as D,reset as p,yellow as T}from"kolorist";import B from"minimist";import G from"prompts";import s from"fs";import d from"path";function P(e){return[["t","template"]].forEach(([t,n])=>{e[n]=e[n]??e[t]}),e}function _(e){let t=s.readdirSync(e);return t.length===0||t.length===1&&t[0]===".git"}function y(e){return e?.trim().replace(/\/+$/g,"")}function I(e,t){s.mkdirSync(t,{recursive:!0});for(let n of s.readdirSync(e)){let l=d.resolve(e,n),g=d.resolve(t,n);v(l,g)}}function v(e,t){s.statSync(e).isDirectory()?I(e,t):s.copyFileSync(e,t)}function b(e){if(s.existsSync(e))for(let t of s.readdirSync(e))t!==".git"&&s.rmSync(d.resolve(e,t),{recursive:!0,force:!0})}function k(e){return/^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test(e)}function C(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/^[._]/,"").replace(/[^a-z\d\-~]+/g,"-")}function E(e){if(!e)return;let n=e.split(" ")[0].split("/");return{name:n[0],version:n[1]}}var w=P(B(process.argv.slice(2),{string:["_"]})),S=process.cwd(),R=[{name:"vue",display:"Vue",color:q,variants:[{name:"vue",display:"Web",color:A},{name:"electron-vue",display:"Electron",color:T}]},{name:"react",display:"React",color:K,variants:[{name:"react",display:"Web",color:A},{name:"electron-react",display:"Electron",color:T}]}],$=R.map(e=>e.variants&&e.variants.map(t=>t.name)||[e.name]).reduce((e,t)=>e.concat(t),[]),H={_gitignore:".gitignore","_lintstagedrc.cjs":".lintstagedrc.cjs"},F="my-app";async function Q(){let e=y(w._[0]),t=w.template||w.t,n=e||F,l=()=>n==="."?a.basename(a.resolve()):n,g={};g=await G([{type:e?null:"text",name:"projectName",message:p("Project name:"),initial:F,onState:r=>{n=y(r.value)||F}},{type:()=>!c.existsSync(n)||_(n)?null:"toggle",name:"overwrite",message:()=>(n==="."?"Current directory":`Target directory "${n}"`)+" is not empty. Remove existing files and continue?",initial:!1,active:"yes",inactive:"no"},{type:(r,{overwrite:o})=>{if(o===!1)throw console.log(D("\u2716")+" Operation cancelled"),new Error;return null},name:"overwriteChecker"},{type:()=>k(l())?null:"text",name:"packageName",message:p("Package name:"),initial:()=>C(l()),validate:r=>k(r)||"Invalid package.json name"},{type:t&&$.includes(t)?null:"select",name:"framework",message:typeof t=="string"&&!$.includes(t)?p(`"${t}" isn't a valid template. Please choose from below: `):p("Select a framework:"),initial:0,choices:R.map(r=>{let o=r.color;return{title:o(r.display||r.name),value:r}})},{type:r=>r&&r.variants?"select":null,name:"variant",message:p("Select a variant:"),choices:r=>r.variants.map(o=>{let m=o.color;return{title:m(o.display||o.name),value:o.name}})}],{onCancel:()=>{throw console.log(D("\u2716")+" Operation cancelled"),new Error}});let{framework:V,overwrite:z,packageName:O,variant:L}=g,i=a.join(S,n);z?b(i):c.existsSync(i)||c.mkdirSync(i,{recursive:!0}),console.log(`
|
|
3
|
+
Scaffolding project in ${i}...`);let M=L||V?.name||t||"",h=r=>a.join(J(import.meta.url),"../..",`template-${r}`),j=h(M);[j,h("config")].forEach(r=>{let o=c.readdirSync(r);for(let m of o){let U=H[m]??m,W=a.join(i,U);v(a.join(r,m),W)}});let x=JSON.parse(c.readFileSync(a.join(j,"package.json"),"utf-8"));x.name=O||l(),c.writeFileSync(a.join(i,"package.json"),JSON.stringify(x,null,2)+`
|
|
4
|
+
`);let N=E(process.env.npm_config_user_agent),u=N?N.name:"npm",f=a.relative(S,i);switch(console.log(`
|
|
5
5
|
Done. Now run:
|
|
6
|
-
`),i!==
|
|
6
|
+
`),i!==S&&console.log(` cd ${f.includes(" ")?`"${f}"`:f}`),u){case"yarn":console.log(" yarn"),console.log(" yarn dev");break;default:console.log(` ${u} install`),console.log(` ${u} run dev`);break}}Q().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.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "create tomjs web app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tomjs",
|
|
@@ -32,6 +32,15 @@
|
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=18"
|
|
34
34
|
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"dev": "tsup --watch",
|
|
37
|
+
"build": "tsup --minify",
|
|
38
|
+
"lint": "run-s lint:eslint lint:prettier",
|
|
39
|
+
"lint:eslint": "eslint \"src/**/*.{js,cjs,ts}\" *.{js,cjs,ts} --fix --cache",
|
|
40
|
+
"lint:prettier": "prettier --write \"src/**/*.{js,cjs,ts,json,md}\" *.{js,cjs,ts,json,md}",
|
|
41
|
+
"prepare": "husky install",
|
|
42
|
+
"prepublishOnly": "npm run build && np --any-branch --no-yarn --yolo --no-publish --message \"chore: release v%s\""
|
|
43
|
+
},
|
|
35
44
|
"dependencies": {
|
|
36
45
|
"cross-spawn": "^7.0.3",
|
|
37
46
|
"kolorist": "^1.8.0",
|
|
@@ -43,9 +52,9 @@
|
|
|
43
52
|
"@tomjs/commitlint": "^2.0.3",
|
|
44
53
|
"@tomjs/eslint": "^1.0.7",
|
|
45
54
|
"@tomjs/prettier": "^1.0.5",
|
|
46
|
-
"@tomjs/tsconfig": "^1.0.
|
|
55
|
+
"@tomjs/tsconfig": "^1.0.7",
|
|
47
56
|
"@types/minimist": "^1.2.5",
|
|
48
|
-
"@types/node": "^18.18.
|
|
57
|
+
"@types/node": "^18.18.10",
|
|
49
58
|
"@types/prompts": "^2.4.8",
|
|
50
59
|
"eslint": "^8.53.0",
|
|
51
60
|
"husky": "^8.0.3",
|
|
@@ -53,14 +62,7 @@
|
|
|
53
62
|
"np": "^8.0.4",
|
|
54
63
|
"npm-run-all": "^4.1.5",
|
|
55
64
|
"prettier": "^3.1.0",
|
|
56
|
-
"tsup": "^7.
|
|
65
|
+
"tsup": "^7.3.0",
|
|
57
66
|
"typescript": "^5.2.2"
|
|
58
|
-
},
|
|
59
|
-
"scripts": {
|
|
60
|
-
"dev": "tsup --watch",
|
|
61
|
-
"build": "tsup --minify",
|
|
62
|
-
"lint": "run-s lint:eslint lint:prettier",
|
|
63
|
-
"lint:eslint": "eslint \"src/**/*.{js,cjs,ts}\" *.{js,cjs,ts} --fix --cache",
|
|
64
|
-
"lint:prettier": "prettier --write \"src/**/*.{js,cjs,ts,json,md}\" *.{js,cjs,ts,json,md}"
|
|
65
67
|
}
|
|
66
|
-
}
|
|
68
|
+
}
|
package/template-react/README.md
CHANGED
package/template-vue/README.md
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# vue
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
vite + vue
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Reference project
|
|
6
6
|
|
|
7
|
-
- [
|
|
8
|
-
|
|
9
|
-
## Type Support For `.vue` Imports in TS
|
|
10
|
-
|
|
11
|
-
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
12
|
-
|
|
13
|
-
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
14
|
-
|
|
15
|
-
1. Disable the built-in TypeScript Extension
|
|
16
|
-
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
17
|
-
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
18
|
-
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
7
|
+
- [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-vue-ts)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# 🎨 editorconfig.org
|
|
2
|
-
|
|
3
|
-
root = true
|
|
4
|
-
|
|
5
|
-
[*]
|
|
6
|
-
charset = utf-8
|
|
7
|
-
end_of_line = lf
|
|
8
|
-
indent_style = space
|
|
9
|
-
indent_size = 2
|
|
10
|
-
trim_trailing_whitespace = true
|
|
11
|
-
insert_final_newline = true
|
|
12
|
-
|
|
13
|
-
[*.md]
|
|
14
|
-
insert_final_newline = false
|
|
15
|
-
trim_trailing_whitespace = false
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
## GITATTRIBUTES FOR WEB PROJECTS
|
|
2
|
-
#
|
|
3
|
-
# These settings are for any web project.
|
|
4
|
-
#
|
|
5
|
-
# Details per file setting:
|
|
6
|
-
# text These files should be normalized (i.e. convert CRLF to LF).
|
|
7
|
-
# binary These files are binary and should be left untouched.
|
|
8
|
-
#
|
|
9
|
-
# Note that binary is a macro for -text -diff.
|
|
10
|
-
######################################################################
|
|
11
|
-
|
|
12
|
-
## AUTO-DETECT
|
|
13
|
-
## Handle line endings automatically for files detected as
|
|
14
|
-
## text and leave all files detected as binary untouched.
|
|
15
|
-
## This will handle all files NOT defined below.
|
|
16
|
-
* text eol=lf
|
|
17
|
-
|
|
18
|
-
## SOURCE CODE
|
|
19
|
-
*.bat text eol=crlf
|
|
20
|
-
*.coffee text
|
|
21
|
-
*.css text
|
|
22
|
-
*.htm text
|
|
23
|
-
*.html text
|
|
24
|
-
*.inc text
|
|
25
|
-
*.ini text
|
|
26
|
-
*.java text
|
|
27
|
-
*.js text
|
|
28
|
-
*.json text
|
|
29
|
-
*.jsx text
|
|
30
|
-
*.less text
|
|
31
|
-
*.od text
|
|
32
|
-
*.onlydata text
|
|
33
|
-
*.php text
|
|
34
|
-
*.pl text
|
|
35
|
-
*.py text
|
|
36
|
-
*.rb text
|
|
37
|
-
*.sass text
|
|
38
|
-
*.scm text
|
|
39
|
-
*.scss text
|
|
40
|
-
*.sh text eol=lf
|
|
41
|
-
*.sql text
|
|
42
|
-
*.styl text
|
|
43
|
-
*.tag text
|
|
44
|
-
*.ts text
|
|
45
|
-
*.tsx text
|
|
46
|
-
*.xml text
|
|
47
|
-
*.xhtml text
|
|
48
|
-
|
|
49
|
-
## DOCKER
|
|
50
|
-
*.dockerignore text
|
|
51
|
-
Dockerfile text
|
|
52
|
-
|
|
53
|
-
## DOCUMENTATION
|
|
54
|
-
*.markdown text
|
|
55
|
-
*.md text
|
|
56
|
-
*.mdwn text
|
|
57
|
-
*.mdown text
|
|
58
|
-
*.mkd text
|
|
59
|
-
*.mkdn text
|
|
60
|
-
*.mdtxt text
|
|
61
|
-
*.mdtext text
|
|
62
|
-
*.txt text
|
|
63
|
-
AUTHORS text
|
|
64
|
-
CHANGELOG text
|
|
65
|
-
CHANGES text
|
|
66
|
-
CONTRIBUTING text
|
|
67
|
-
COPYING text
|
|
68
|
-
copyright text
|
|
69
|
-
*COPYRIGHT* text
|
|
70
|
-
INSTALL text
|
|
71
|
-
license text
|
|
72
|
-
LICENSE text
|
|
73
|
-
NEWS text
|
|
74
|
-
readme text
|
|
75
|
-
*README* text
|
|
76
|
-
|
|
77
|
-
## TEMPLATES
|
|
78
|
-
*.dot text
|
|
79
|
-
*.ejs text
|
|
80
|
-
*.haml text
|
|
81
|
-
*.handlebars text
|
|
82
|
-
*.hbs text
|
|
83
|
-
*.hbt text
|
|
84
|
-
*.jade text
|
|
85
|
-
*.latte text
|
|
86
|
-
*.mustache text
|
|
87
|
-
*.njk text
|
|
88
|
-
*.phtml text
|
|
89
|
-
*.tmpl text
|
|
90
|
-
*.tpl text
|
|
91
|
-
*.twig text
|
|
92
|
-
|
|
93
|
-
## LINTERS
|
|
94
|
-
.csslintrc text
|
|
95
|
-
.eslintrc text
|
|
96
|
-
.jscsrc text
|
|
97
|
-
.jshintrc text
|
|
98
|
-
.jshintignore text
|
|
99
|
-
.stylelintrc text
|
|
100
|
-
|
|
101
|
-
## CONFIGS
|
|
102
|
-
*.bowerrc text
|
|
103
|
-
*.cnf text
|
|
104
|
-
*.conf text
|
|
105
|
-
*.config text
|
|
106
|
-
.browserslistrc text
|
|
107
|
-
.editorconfig text
|
|
108
|
-
.gitattributes text
|
|
109
|
-
.gitconfig text
|
|
110
|
-
.gitignore text
|
|
111
|
-
.htaccess text
|
|
112
|
-
*.npmignore text
|
|
113
|
-
*.yaml text
|
|
114
|
-
*.yml text
|
|
115
|
-
browserslist text
|
|
116
|
-
Makefile text
|
|
117
|
-
makefile text
|
|
118
|
-
|
|
119
|
-
## HEROKU
|
|
120
|
-
Procfile text
|
|
121
|
-
.slugignore text
|
|
122
|
-
|
|
123
|
-
## GRAPHICS
|
|
124
|
-
*.ai binary
|
|
125
|
-
*.bmp binary
|
|
126
|
-
*.eps binary
|
|
127
|
-
*.gif binary
|
|
128
|
-
*.ico binary
|
|
129
|
-
*.jng binary
|
|
130
|
-
*.jp2 binary
|
|
131
|
-
*.jpg binary
|
|
132
|
-
*.jpeg binary
|
|
133
|
-
*.jpx binary
|
|
134
|
-
*.jxr binary
|
|
135
|
-
*.pdf binary
|
|
136
|
-
*.png binary
|
|
137
|
-
*.psb binary
|
|
138
|
-
*.psd binary
|
|
139
|
-
*.svg text
|
|
140
|
-
*.svgz binary
|
|
141
|
-
*.tif binary
|
|
142
|
-
*.tiff binary
|
|
143
|
-
*.wbmp binary
|
|
144
|
-
*.webp binary
|
|
145
|
-
|
|
146
|
-
## AUDIO
|
|
147
|
-
*.kar binary
|
|
148
|
-
*.m4a binary
|
|
149
|
-
*.mid binary
|
|
150
|
-
*.midi binary
|
|
151
|
-
*.mp3 binary
|
|
152
|
-
*.ogg binary
|
|
153
|
-
*.ra binary
|
|
154
|
-
|
|
155
|
-
## VIDEO
|
|
156
|
-
*.3gpp binary
|
|
157
|
-
*.3gp binary
|
|
158
|
-
*.as binary
|
|
159
|
-
*.asf binary
|
|
160
|
-
*.asx binary
|
|
161
|
-
*.fla binary
|
|
162
|
-
*.flv binary
|
|
163
|
-
*.m4v binary
|
|
164
|
-
*.mng binary
|
|
165
|
-
*.mov binary
|
|
166
|
-
*.mp4 binary
|
|
167
|
-
*.mpeg binary
|
|
168
|
-
*.mpg binary
|
|
169
|
-
*.swc binary
|
|
170
|
-
*.swf binary
|
|
171
|
-
*.webm binary
|
|
172
|
-
|
|
173
|
-
## ARCHIVES
|
|
174
|
-
*.7z binary
|
|
175
|
-
*.gz binary
|
|
176
|
-
*.rar binary
|
|
177
|
-
*.tar binary
|
|
178
|
-
*.zip binary
|
|
179
|
-
|
|
180
|
-
## FONTS
|
|
181
|
-
*.ttf binary
|
|
182
|
-
*.eot binary
|
|
183
|
-
*.otf binary
|
|
184
|
-
*.woff binary
|
|
185
|
-
*.woff2 binary
|
|
186
|
-
|
|
187
|
-
## EXECUTABLES
|
|
188
|
-
*.exe binary
|
|
189
|
-
*.pyc binary
|
|
190
|
-
*.jar binary
|
|
191
|
-
*.dll binary
|
|
192
|
-
|
|
193
|
-
## DOCUMENT
|
|
194
|
-
*.doc binary
|
|
195
|
-
*.docx binary
|
|
196
|
-
*.xls binary
|
|
197
|
-
*.xlsx binary
|
|
198
|
-
*.ppt binary
|
|
199
|
-
*.pptx binary
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require.resolve('@tomjs/prettier');
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# logs
|
|
2
|
-
*.log
|
|
3
|
-
lerna-debug.log*
|
|
4
|
-
logs
|
|
5
|
-
npm-debug.log*
|
|
6
|
-
pnpm-debug.log*
|
|
7
|
-
yarn-debug.log*
|
|
8
|
-
yarn-error.log*
|
|
9
|
-
|
|
10
|
-
# diagnostic reports (https://nodejs.org/api/report.html)
|
|
11
|
-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
12
|
-
|
|
13
|
-
# runtime data
|
|
14
|
-
*.pid
|
|
15
|
-
*.pid.lock
|
|
16
|
-
*.seed
|
|
17
|
-
pids
|
|
18
|
-
|
|
19
|
-
# dependency directory
|
|
20
|
-
bower_components
|
|
21
|
-
jspm_packages
|
|
22
|
-
node_modules
|
|
23
|
-
web_modules
|
|
24
|
-
|
|
25
|
-
# cache
|
|
26
|
-
.cache
|
|
27
|
-
.npm
|
|
28
|
-
.tmp
|
|
29
|
-
.temp
|
|
30
|
-
.eslintcache
|
|
31
|
-
.stylelintcache
|
|
32
|
-
tsconfig.tsbuildinfo
|
|
33
|
-
|
|
34
|
-
# environment
|
|
35
|
-
*.local
|
|
36
|
-
|
|
37
|
-
# macOS
|
|
38
|
-
.DS_Store
|
|
39
|
-
|
|
40
|
-
# package files
|
|
41
|
-
*.7z
|
|
42
|
-
*.gz
|
|
43
|
-
*.gzip
|
|
44
|
-
*.rar
|
|
45
|
-
*.tar
|
|
46
|
-
*.tar.*
|
|
47
|
-
*.tgz
|
|
48
|
-
*.zip
|
|
49
|
-
|
|
50
|
-
# IDEA
|
|
51
|
-
.idea
|
|
52
|
-
|
|
53
|
-
# vscode
|
|
54
|
-
.history
|
|
55
|
-
|
|
56
|
-
# build output
|
|
57
|
-
build
|
|
58
|
-
dist
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VITE_DEV_SERVER_URL=http://127.0.0.1:6888/
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs'
|
|
2
|
-
import path from 'node:path'
|
|
3
|
-
import { fileURLToPath } from 'node:url'
|
|
4
|
-
import { createRequire } from 'node:module'
|
|
5
|
-
import { spawn } from 'node:child_process'
|
|
6
|
-
|
|
7
|
-
const pkg = createRequire(import.meta.url)('../package.json')
|
|
8
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
9
|
-
|
|
10
|
-
// write .debug.env
|
|
11
|
-
const envContent = Object.entries(pkg.debug.env).map(([key, val]) => `${key}=${val}`)
|
|
12
|
-
fs.writeFileSync(path.join(__dirname, '.debug.env'), envContent.join('\n'))
|
|
13
|
-
|
|
14
|
-
// bootstrap
|
|
15
|
-
spawn(
|
|
16
|
-
// TODO: terminate `npm run dev` when Debug exits.
|
|
17
|
-
process.platform === 'win32' ? 'npm.cmd' : 'npm',
|
|
18
|
-
['run', 'dev'],
|
|
19
|
-
{
|
|
20
|
-
stdio: 'inherit',
|
|
21
|
-
env: Object.assign(process.env, { VSCODE_DEBUG: 'true' }),
|
|
22
|
-
},
|
|
23
|
-
)
|