@tomjs/create-app 0.14.1 → 0.15.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/dist/index.mjs +1 -1
- package/package.json +5 -6
- package/template-electron-react/electron/main/index.ts +2 -1
- package/template-electron-react/electron/polyfills.ts +2 -2
- package/template-electron-react/package.json +12 -12
- package/template-electron-react/vite.config.ts +2 -2
- package/template-electron-vue/electron/main/index.ts +2 -1
- package/template-electron-vue/electron/polyfills.ts +2 -2
- package/template-electron-vue/package.json +10 -10
- package/template-electron-vue/vite.config.ts +2 -2
- package/template-node/package.json +9 -11
- package/template-react/package.json +9 -9
- package/template-react/vite.config.ts +1 -1
- package/template-vscode/package.json +4 -4
- package/template-vscode-react/package.json +11 -11
- package/template-vscode-react/vite.config.ts +1 -1
- package/template-vscode-vue/package.json +9 -9
- package/template-vscode-vue/vite.config.ts +1 -1
- package/template-vue/package.json +7 -7
- package/template-vue/vite.config.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import u,{renameSync as Ye}from"fs";import Be from"os";import l from"path";impor
|
|
|
2
2
|
`)}function Z(e){return p.existsSync(e)?p.readFileSync(e,"utf8"):""}function F(e,i){p.writeFileSync(e,i)}function C(e){p.existsSync(e)&&p.rmSync(e,{recursive:!0,force:!0})}function fe(e){p.existsSync(e)||p.mkdirSync(e,{recursive:!0})}var ze=$(Me(process.argv.slice(2),{string:["_"]})),ye={repo:"https://github.com",owner:ve.userInfo().username};function ne(e){let{repo:i,owner:o}=e;return`${i}${i.endsWith("/")?"":"/"}${o}`}async function he(e){let i=await te([{type:"text",name:"repo",message:N("Git repository url:"),initial:e?.repo||ye.repo},{type:"text",name:"owner",message:N("Git repository owner:"),initial:e?.owner||ye.owner}],{onCancel:()=>{throw console.log(D("\u2716")+" Operation cancelled"),new Error}});return{id:e?.id||Date.now().toString(),repo:i.repo,owner:i.owner}}var we=xe.join(ve.homedir(),".tomjs","create-app"),ke=xe.join(we,"config.json");function G(){return fe(we),Object.assign({gitRepos:[]},A(ke))}function Le(e){let i=G();i.createTime?i.updateTime=Date.now():i.createTime=Date.now(),O(ke,Object.assign(i,e))}function ee(e){Le({gitRepos:e})}async function ie(){let{gitRepos:e}=G();(e.length===0||ze.git)&&(e.length===0&&console.log(`You need to set the ${We("git remote repository")} for the first time.`),await i());async function i(){let o=e.map(v=>({title:ne(v),value:v.id})).concat([{title:"Add",value:"add"},{title:D("Exit"),value:"exit"}]),h=await te({type:"select",name:"repoId",message:e.length===0?"You choose to add or exit:":"You can choose the repository to be operated, or choose to add or exit:",choices:o},{onCancel:()=>{throw console.log(D("\u2716")+" Operation cancelled"),new Error}}),{repoId:s}=h;if(s==="exit")return;if(s==="add"){let v=await he();return e.push(v),ee(e),i()}let d=e.findIndex(v=>v.id===s),w=await te([{type:"select",name:"action",message:N("Select an action?"),choices:[{title:"Edit",value:"edit"},{title:"Remove",value:"remove"},{title:"Exit",value:"exit"}]},{type:v=>v==="remove"&&"toggle",name:"confirmRemove",message:N("Where confirm to remove?"),initial:!0,active:"Yes",inactive:"No"}],{onCancel:()=>{throw console.log(D("\u2716")+" Operation cancelled"),new Error}}),{action:E,confirmRemove:I}=w;if(E==="exit")return ie();if(E==="remove")return I&&(e.splice(d,1),ee(e)),i();let V=await he(e[d]);return e[d]=V,ee(e),i()}}var re=$(Xe(process.argv.slice(2),{string:["_"]})),oe=process.cwd(),et=["test","vite","examples"],Re=[{name:"node",display:"Node",color:Se,options:[{id:"test",name:"Test"},{id:"publish",name:"Git Repository + NPM Publish",selected:!0},{id:"ssh",name:"Git init by SSH",selected:!0},{id:"tsup",name:"Use tsup build",selected:!0},{id:"vite",name:"Use vite build"},{id:"vite-plugin",name:"Vite Plugin"},{id:"examples",name:"Examples"},{id:"workspace",name:"Workspaces/Monorepo"}]},{name:"web",display:"Web App",color:U,variants:[{name:"vue",display:"Vue",color:U},{name:"react",display:"React",color:T}]},{name:"electron",display:"Electron App",color:T,variants:[{name:"electron-vue",display:"Vue",color:U},{name:"electron-react",display:"React",color:T}]},{name:"vscode",display:"VSCode Extension",color:Ke,options:[{id:"publish",name:"Git Repository"},{id:"ssh",name:"Git init by SSH"}],variants:[{name:"vscode",display:"Base",color:Se},{name:"vscode-vue",display:"Vue",color:U},{name:"vscode-react",display:"React",color:T}]}],je=Re.map(e=>e.variants&&e.variants.map(i=>i.name)||[e.name]).reduce((e,i)=>e.concat(i),[]),se="my-app";function Pe(e){let i=_.exec(`git config --get ${e}`,{silent:!0});if(i.code===0)return i.stdout.trim()}function Ee(e){return e.length>1?e.substring(e.indexOf("/")+1):e}function P(e,...i){$e(e.devDependencies,...i)}function tt(e,...i){$e(e.peerDependencies,...i)}function $e(e,...i){function o(s,d){return s.includes("@")?s.replace("@","").split("/").find(w=>o(w,d)):d===s||s.includes(`-${d}`)||s.includes(`${d}-`)}let h=e||{};Object.keys(h||{}).forEach(s=>{i.find(d=>o(s,d))&&delete h[s]})}async function nt(){let e=q(re._[0]),i=re.template||re.t,o=e||se,h=()=>o==="."?l.basename(l.resolve()):o,s=Ee(o),{gitRepos:d}=G(),w=await Ze([{type:e?null:"text",name:"projectName",message:x("Project name:"),initial:se,onState:t=>{o=q(t.value)||se,s=Ee(o)}},{type:()=>!u.existsSync(s)||ue(s)?null:"toggle",name:"overwrite",message:()=>(s==="."?"Current directory":`Target directory "${s}"`)+" is not empty. Remove existing files and continue?",initial:!1,active:"Yes",inactive:"No"},{type:(t,{overwrite:n})=>{if(n===!1)throw console.log(be("\u2716")+" Operation cancelled"),new Error;return null},name:"overwriteChecker"},{type:()=>X(h())?null:"text",name:"packageName",message:x("Package name:"),initial:()=>ge(h()),validate:t=>X(t)||"Invalid package.json name"},{type:i&&je.includes(i)?null:"select",name:"framework",message:typeof i=="string"&&!je.includes(i)?x(`"${i}" isn't a valid template. Please choose from below: `):x("Select a framework:"),initial:0,choices:Re.map(t=>{let n=t.color;return{title:n(t.display||t.name),value:t}})},{type:t=>t&&t.variants?"select":null,name:"variant",message:x("Select a variant:"),choices:t=>t?.variants?.map(n=>{let r=n.color;return{title:r(n.display||n.name),value:n.name}})},{type:(t,n)=>{let{framework:r}=n;return r&&Array.isArray(r.options)&&r.options.length?"multiselect":null},name:"options",message:x("Select optional options:"),instructions:!1,choices:(t,n)=>{let{framework:r}=n;return r?.options?.map(a=>({title:a.name,value:a.id,selected:a.selected||!1}))}},{type:(t,n)=>d.length&&Array.isArray(n.options)&&n.options.includes("publish")?"select":null,name:"gitUserUrl",message:x("Which git repository to publish to?"),choices:d.map(t=>{let n=ne(t);return{title:n,value:n}})}],{onCancel:()=>{throw console.log(be("\u2716")+" Operation cancelled"),new Error}}),{framework:E,overwrite:I,packageName:V,variant:v,gitUserUrl:k}=w,m=w.options||[],c=l.join(oe,s);I?me(c):u.existsSync(c)||u.mkdirSync(c,{recursive:!0}),console.log(`
|
|
3
3
|
Scaffolding project in ${c}...`);let J=v||E?.name||i||"",W=t=>l.join(He(import.meta.url),"../..",`template-${t}`),Ae=W(J),M=J.includes("node");[W("config"),Ae].forEach(t=>{let n=u.readdirSync(t);for(let r of n){let a=r.startsWith("_")?r.replace("_","."):r;(M&&!m.includes("examples")||J==="vscode")&&r.includes("stylelint")||Q(l.join(t,r),l.join(c,a))}});let y=V||h(),z={name:Pe("user.name")||Be.userInfo().username,email:Pe("user.email")||""},L={"pkg.name":y,"user.name":z.name,"user.email":z.email,"git.org":Y(),"git.url":Oe(),"git.fullUrl":ce()};function Oe(){return`${k||`https://github.com/${Y()}`}/${y.substring(y.indexOf("/")+1)}`}function Y(){return k?k.substring(k.lastIndexOf("/")+1):y.startsWith("@")?y.split("/")[0].substring(1):Qe(z.name)}function ce(t=!1){let n=k||`https://github.com/${Y()}`;return t&&(n=n.replace(/http(s):\/\//g,"git@").replace(/\//,":")),`${n}/${y.substring(y.indexOf("/")+1)}.git`}Te(),M&&(Ue(),_e(),Ie(),Ve());let ae=de(process.env.npm_config_user_agent),B=ae?ae.name:"npm";_.which("git")&&(_.exec(`cd ${c} && git init`),m.includes("publish")&&_.exec(`cd ${c} && git remote add origin ${ce(m.includes("ssh"))}`));let H=l.relative(oe,c);switch(console.log(`
|
|
4
4
|
Done. Now run:
|
|
5
|
-
`),c!==oe&&console.log(` cd ${H.includes(" ")?`"${H}"`:H}`),B){case"yarn":console.log(" yarn"),console.log(" yarn dev");break;default:console.log(` ${B} install`),console.log(` ${B} run dev`);break}function S(){return A(l.join(c,"package.json"))}function b(t){O(l.join(c,"package.json"),t)}function Fe(){return Z(l.join(c,"package.json"))}function Ce(t){F(l.join(c,"package.json"),t)}function R(...t){!Array.isArray(t)||t.length===0||t.forEach(n=>{let r=l.join(c,n);u.existsSync(r)&&C(r)})}function De(t,n,r){let a=l.join(c,t),g=Z(a);g=g.replaceAll(n,r),F(a,g)}function Ne(t,n){let r=t.lastIndexOf("."),a=t.substring(0,r)+"."+n+t.substring(r),g=l.join(c,t),f=l.join(c,a);u.existsSync(f)&&(m.includes(n)?(C(g),Ye(f,g)):C(f))}function Ge(...t){t.forEach(n=>{et.forEach(r=>{Ne(n,r)})})}function Te(){let t=S();t.name=y,m.includes("publish")||(delete t.author,delete t.publishConfig,delete t.repository,delete t.scripts.prepublishOnly
|
|
5
|
+
`),c!==oe&&console.log(` cd ${H.includes(" ")?`"${H}"`:H}`),B){case"yarn":console.log(" yarn"),console.log(" yarn dev");break;default:console.log(` ${B} install`),console.log(` ${B} run dev`);break}function S(){return A(l.join(c,"package.json"))}function b(t){O(l.join(c,"package.json"),t)}function Fe(){return Z(l.join(c,"package.json"))}function Ce(t){F(l.join(c,"package.json"),t)}function R(...t){!Array.isArray(t)||t.length===0||t.forEach(n=>{let r=l.join(c,n);u.existsSync(r)&&C(r)})}function De(t,n,r){let a=l.join(c,t),g=Z(a);g=g.replaceAll(n,r),F(a,g)}function Ne(t,n){let r=t.lastIndexOf("."),a=t.substring(0,r)+"."+n+t.substring(r),g=l.join(c,t),f=l.join(c,a);u.existsSync(f)&&(m.includes(n)?(C(g),Ye(f,g)):C(f))}function Ge(...t){t.forEach(n=>{et.forEach(r=>{Ne(n,r)})})}function Te(){let t=S();t.name=y,m.includes("publish")||(delete t.author,delete t.publishConfig,delete t.repository,delete t.scripts.prepublishOnly),y.endsWith("-cli")?(delete t.main,delete t.module,delete t.types,delete t.exports):delete t.bin,M&&(m.includes("vite")?(t.scripts.dev="vite",t.scripts.build="vite build",P(t,"tsup"),R("tsup.config.ts")):(t.scripts.dev="tsup --watch",t.scripts.build="tsup",R("vite.config.ts"),m.includes("vite-plugin")||(P(t,"vite"),De("tsup.config.ts","'vite'",""))),m.includes("vite-plugin")||tt(t,"vite")),b(t);let n=Fe();Object.keys(L).forEach(r=>{n=n.replace(new RegExp("{{"+r+"}}","g"),L[r])}),Ce(n)}function Ue(){Ge(".lintstagedrc.cjs","tsconfig.json");let t=m.find(r=>["vite-plugin"].includes(r))||["cli","plugin"].find(r=>y.includes(`-${r}`)),n=["pnpm","yarn","npm"].map(r=>`# ${r}
|
|
6
6
|
${r} add ${y}${t?" -D":""}`).join(`
|
|
7
7
|
|
|
8
8
|
`);["LICENSE","README.md","README.zh_CN.md"].forEach(r=>{let a=l.join(c,r);if(!m.includes("publish")&&u.existsSync(a)){u.rmSync(a),r==="README.md"&&u.writeFileSync(a,`# ${y}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomjs/create-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "create tomjs web app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tomjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"shelljs": "^0.8.5"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@commitlint/cli": "^19.
|
|
53
|
+
"@commitlint/cli": "^19.3.0",
|
|
54
54
|
"@tomjs/commitlint": "^3.0.0",
|
|
55
55
|
"@tomjs/eslint": "^2.3.0",
|
|
56
56
|
"@tomjs/prettier": "^1.3.0",
|
|
@@ -58,19 +58,18 @@
|
|
|
58
58
|
"@tomjs/tsconfig": "^1.5.0",
|
|
59
59
|
"@types/lodash-es": "^4.17.12",
|
|
60
60
|
"@types/minimist": "^1.2.5",
|
|
61
|
-
"@types/node": "^18.19.
|
|
61
|
+
"@types/node": "^18.19.33",
|
|
62
62
|
"@types/prompts": "^2.4.9",
|
|
63
63
|
"@types/shelljs": "^0.8.15",
|
|
64
64
|
"cross-env": "^7.0.3",
|
|
65
65
|
"eslint": "^8.57.0",
|
|
66
66
|
"husky": "^9.0.11",
|
|
67
67
|
"lint-staged": "^15.2.2",
|
|
68
|
-
"np": "^9.2.0",
|
|
69
68
|
"npm-run-all": "^4.1.5",
|
|
70
69
|
"prettier": "^3.2.5",
|
|
71
|
-
"stylelint": "^16.
|
|
70
|
+
"stylelint": "^16.5.0",
|
|
72
71
|
"tsup": "^8.0.2",
|
|
73
|
-
"typescript": "~5.
|
|
72
|
+
"typescript": "~5.4.5"
|
|
74
73
|
},
|
|
75
74
|
"scripts": {
|
|
76
75
|
"dev": "tsup --watch",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import '../polyfills';
|
|
2
|
+
|
|
1
3
|
import { release } from 'node:os';
|
|
2
4
|
import { join } from 'node:path';
|
|
3
5
|
import { app, BrowserWindow, ipcMain, shell } from 'electron';
|
|
4
|
-
import '../polyfills';
|
|
5
6
|
|
|
6
7
|
// Disable GPU Acceleration for Windows 7
|
|
7
8
|
if (release().startsWith('6.1')) app.disableHardwareAcceleration();
|
|
@@ -21,34 +21,34 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@tomjs/electron-devtools-installer": "^2.2.1",
|
|
24
|
-
"react": "^18.
|
|
25
|
-
"react-dom": "^18.
|
|
24
|
+
"react": "^18.3.1",
|
|
25
|
+
"react-dom": "^18.3.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@commitlint/cli": "^19.
|
|
28
|
+
"@commitlint/cli": "^19.3.0",
|
|
29
29
|
"@tomjs/commitlint": "^3.0.0",
|
|
30
30
|
"@tomjs/eslint": "^2.3.0",
|
|
31
31
|
"@tomjs/prettier": "^1.3.0",
|
|
32
32
|
"@tomjs/stylelint": "^2.3.0",
|
|
33
33
|
"@tomjs/tsconfig": "^1.5.0",
|
|
34
34
|
"@tomjs/vite-plugin-electron": "^1.9.0",
|
|
35
|
-
"@types/node": "^18.19.
|
|
36
|
-
"@types/react": "^18.2
|
|
37
|
-
"@types/react-dom": "^18.
|
|
35
|
+
"@types/node": "^18.19.33",
|
|
36
|
+
"@types/react": "^18.3.2",
|
|
37
|
+
"@types/react-dom": "^18.3.0",
|
|
38
38
|
"@vitejs/plugin-react-swc": "^3.6.0",
|
|
39
39
|
"cross-env": "^7.0.3",
|
|
40
|
-
"electron": "^
|
|
40
|
+
"electron": "^30.0.4",
|
|
41
41
|
"electron-builder": "^24.13.3",
|
|
42
42
|
"eslint": "^8.57.0",
|
|
43
43
|
"husky": "^9.0.11",
|
|
44
44
|
"lint-staged": "^15.2.2",
|
|
45
45
|
"npm-run-all": "^4.1.5",
|
|
46
46
|
"prettier": "^3.2.5",
|
|
47
|
-
"rimraf": "^5.0.
|
|
48
|
-
"stylelint": "^16.
|
|
49
|
-
"tsx": "^4.
|
|
50
|
-
"typescript": "~5.
|
|
51
|
-
"vite": "^5.2.
|
|
47
|
+
"rimraf": "^5.0.7",
|
|
48
|
+
"stylelint": "^16.5.0",
|
|
49
|
+
"tsx": "^4.10.2",
|
|
50
|
+
"typescript": "~5.4.5",
|
|
51
|
+
"vite": "^5.2.11",
|
|
52
52
|
"vite-plugin-electron-renderer": "^0.14.5"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import { defineConfig } from 'vite';
|
|
3
|
-
import renderer from 'vite-plugin-electron-renderer';
|
|
4
2
|
import electron from '@tomjs/vite-plugin-electron';
|
|
5
3
|
import react from '@vitejs/plugin-react-swc';
|
|
4
|
+
import { defineConfig } from 'vite';
|
|
5
|
+
import renderer from 'vite-plugin-electron-renderer';
|
|
6
6
|
import pkg from './package.json';
|
|
7
7
|
|
|
8
8
|
// https://vitejs.dev/config/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import '../polyfills';
|
|
2
|
+
|
|
1
3
|
import { release } from 'node:os';
|
|
2
4
|
import { join } from 'node:path';
|
|
3
5
|
import { app, BrowserWindow, ipcMain, shell } from 'electron';
|
|
4
|
-
import '../polyfills';
|
|
5
6
|
|
|
6
7
|
// Disable GPU Acceleration for Windows 7
|
|
7
8
|
if (release().startsWith('6.1')) app.disableHardwareAcceleration();
|
|
@@ -21,32 +21,32 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@tomjs/electron-devtools-installer": "^2.2.1",
|
|
24
|
-
"vue": "^3.4.
|
|
24
|
+
"vue": "^3.4.27"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@commitlint/cli": "^19.
|
|
27
|
+
"@commitlint/cli": "^19.3.0",
|
|
28
28
|
"@tomjs/commitlint": "^3.0.0",
|
|
29
29
|
"@tomjs/eslint": "^2.3.0",
|
|
30
30
|
"@tomjs/prettier": "^1.3.0",
|
|
31
31
|
"@tomjs/stylelint": "^2.3.0",
|
|
32
32
|
"@tomjs/tsconfig": "^1.5.0",
|
|
33
33
|
"@tomjs/vite-plugin-electron": "^1.9.0",
|
|
34
|
-
"@types/node": "^18.19.
|
|
34
|
+
"@types/node": "^18.19.33",
|
|
35
35
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
36
36
|
"cross-env": "^7.0.3",
|
|
37
|
-
"electron": "^
|
|
37
|
+
"electron": "^30.0.4",
|
|
38
38
|
"electron-builder": "^24.13.3",
|
|
39
39
|
"eslint": "^8.57.0",
|
|
40
40
|
"husky": "^9.0.11",
|
|
41
41
|
"lint-staged": "^15.2.2",
|
|
42
42
|
"npm-run-all": "^4.1.5",
|
|
43
43
|
"prettier": "^3.2.5",
|
|
44
|
-
"rimraf": "^5.0.
|
|
45
|
-
"stylelint": "^16.
|
|
46
|
-
"tsx": "^4.
|
|
47
|
-
"typescript": "~5.
|
|
48
|
-
"vite": "^5.2.
|
|
44
|
+
"rimraf": "^5.0.7",
|
|
45
|
+
"stylelint": "^16.5.0",
|
|
46
|
+
"tsx": "^4.10.2",
|
|
47
|
+
"typescript": "~5.4.5",
|
|
48
|
+
"vite": "^5.2.11",
|
|
49
49
|
"vite-plugin-electron-renderer": "^0.14.5",
|
|
50
|
-
"vue-tsc": "^2.0.
|
|
50
|
+
"vue-tsc": "^2.0.17"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import { defineConfig } from 'vite';
|
|
3
|
-
import renderer from 'vite-plugin-electron-renderer';
|
|
4
2
|
import electron from '@tomjs/vite-plugin-electron';
|
|
5
3
|
import vue from '@vitejs/plugin-vue';
|
|
4
|
+
import { defineConfig } from 'vite';
|
|
5
|
+
import renderer from 'vite-plugin-electron-renderer';
|
|
6
6
|
import pkg from './package.json';
|
|
7
7
|
|
|
8
8
|
// https://vitejs.dev/config/
|
|
@@ -42,36 +42,34 @@
|
|
|
42
42
|
"start": "tsx ./scripts/info.ts",
|
|
43
43
|
"dev": "tsup --watch",
|
|
44
44
|
"build": "tsup",
|
|
45
|
-
"test": "
|
|
45
|
+
"test": "vitest",
|
|
46
46
|
"lint": "run-s lint:eslint lint:stylelint lint:prettier",
|
|
47
47
|
"lint:eslint": "eslint \"{src,scripts,test,examples}/**/*.ts\" *.{js,cjs,ts} --fix --cache",
|
|
48
48
|
"lint:stylelint": "stylelint \"examples/**/*.{css,scss,less,vue,html}\" --fix --cache",
|
|
49
49
|
"lint:prettier": "prettier --write .",
|
|
50
|
-
"prepare": "husky"
|
|
51
|
-
"prepublishOnly": "npm run build && np --any-branch --yolo --no-publish --message \"chore: release v%s\""
|
|
50
|
+
"prepare": "husky"
|
|
52
51
|
},
|
|
53
52
|
"dependencies": {},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@commitlint/cli": "^19.
|
|
54
|
+
"@commitlint/cli": "^19.3.0",
|
|
56
55
|
"@tomjs/commitlint": "^3.0.0",
|
|
57
56
|
"@tomjs/eslint": "^2.3.0",
|
|
58
57
|
"@tomjs/prettier": "^1.3.0",
|
|
59
58
|
"@tomjs/stylelint": "^2.3.0",
|
|
60
59
|
"@tomjs/tsconfig": "^1.5.0",
|
|
61
|
-
"@types/node": "^18.19.
|
|
60
|
+
"@types/node": "^18.19.33",
|
|
62
61
|
"cross-env": "^7.0.3",
|
|
63
62
|
"eslint": "^8.57.0",
|
|
64
63
|
"husky": "^9.0.11",
|
|
65
64
|
"lint-staged": "^15.2.2",
|
|
66
|
-
"np": "^9.2.0",
|
|
67
65
|
"npm-run-all": "^4.1.5",
|
|
68
66
|
"prettier": "^3.2.5",
|
|
69
|
-
"rimraf": "^5.0.
|
|
70
|
-
"stylelint": "^16.
|
|
67
|
+
"rimraf": "^5.0.7",
|
|
68
|
+
"stylelint": "^16.5.0",
|
|
71
69
|
"tsup": "^8.0.2",
|
|
72
|
-
"tsx": "^4.
|
|
73
|
-
"typescript": "~5.
|
|
74
|
-
"vite": "^5.2.
|
|
70
|
+
"tsx": "^4.10.2",
|
|
71
|
+
"typescript": "~5.4.5",
|
|
72
|
+
"vite": "^5.2.11",
|
|
75
73
|
"vite-plugin-dts": "^3.7.3",
|
|
76
74
|
"vitest": "^1.4.0"
|
|
77
75
|
},
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
"prepare": "husky"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"react": "^18.
|
|
21
|
-
"react-dom": "^18.
|
|
20
|
+
"react": "^18.3.1",
|
|
21
|
+
"react-dom": "^18.3.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@commitlint/cli": "^19.
|
|
24
|
+
"@commitlint/cli": "^19.3.0",
|
|
25
25
|
"@tomjs/commitlint": "^3.0.0",
|
|
26
26
|
"@tomjs/eslint": "^2.3.0",
|
|
27
27
|
"@tomjs/prettier": "^1.3.0",
|
|
28
28
|
"@tomjs/stylelint": "^2.3.0",
|
|
29
29
|
"@tomjs/tsconfig": "^1.5.0",
|
|
30
|
-
"@types/node": "^18.19.
|
|
31
|
-
"@types/react": "^18.2
|
|
32
|
-
"@types/react-dom": "^18.
|
|
30
|
+
"@types/node": "^18.19.33",
|
|
31
|
+
"@types/react": "^18.3.2",
|
|
32
|
+
"@types/react-dom": "^18.3.0",
|
|
33
33
|
"@vitejs/plugin-react-swc": "^3.6.0",
|
|
34
34
|
"cross-env": "^7.0.3",
|
|
35
35
|
"eslint": "^8.57.0",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"lint-staged": "^15.2.2",
|
|
38
38
|
"npm-run-all": "^4.1.5",
|
|
39
39
|
"prettier": "^3.2.5",
|
|
40
|
-
"stylelint": "^16.
|
|
41
|
-
"typescript": "~5.
|
|
42
|
-
"vite": "^5.2.
|
|
40
|
+
"stylelint": "^16.5.0",
|
|
41
|
+
"typescript": "~5.4.5",
|
|
42
|
+
"vite": "^5.2.11"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -47,20 +47,20 @@
|
|
|
47
47
|
"prepare": "husky"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@commitlint/cli": "^19.
|
|
50
|
+
"@commitlint/cli": "^19.3.0",
|
|
51
51
|
"@tomjs/commitlint": "^3.0.0",
|
|
52
52
|
"@tomjs/eslint": "^2.3.0",
|
|
53
53
|
"@tomjs/prettier": "^1.3.0",
|
|
54
54
|
"@tomjs/tsconfig": "^1.5.0",
|
|
55
|
-
"@types/node": "^18.19.
|
|
55
|
+
"@types/node": "^18.19.33",
|
|
56
56
|
"@types/vscode": "^1.75.0",
|
|
57
57
|
"eslint": "^8.57.0",
|
|
58
58
|
"husky": "^9.0.11",
|
|
59
59
|
"lint-staged": "^15.2.2",
|
|
60
60
|
"npm-run-all": "^4.1.5",
|
|
61
61
|
"prettier": "^3.2.5",
|
|
62
|
-
"rimraf": "^5.0.
|
|
62
|
+
"rimraf": "^5.0.7",
|
|
63
63
|
"tsup": "^8.0.2",
|
|
64
|
-
"typescript": "~5.
|
|
64
|
+
"typescript": "~5.4.5"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -50,20 +50,20 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@vscode/webview-ui-toolkit": "^1.4.0",
|
|
53
|
-
"react": "^18.
|
|
54
|
-
"react-dom": "^18.
|
|
53
|
+
"react": "^18.3.1",
|
|
54
|
+
"react-dom": "^18.3.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@commitlint/cli": "^19.
|
|
57
|
+
"@commitlint/cli": "^19.3.0",
|
|
58
58
|
"@tomjs/commitlint": "^3.0.0",
|
|
59
59
|
"@tomjs/eslint": "^2.3.0",
|
|
60
60
|
"@tomjs/prettier": "^1.3.0",
|
|
61
61
|
"@tomjs/stylelint": "^2.3.0",
|
|
62
62
|
"@tomjs/tsconfig": "^1.5.0",
|
|
63
63
|
"@tomjs/vite-plugin-vscode": "^2.2.0",
|
|
64
|
-
"@types/node": "^18.19.
|
|
65
|
-
"@types/react": "^18.2
|
|
66
|
-
"@types/react-dom": "^18.
|
|
64
|
+
"@types/node": "^18.19.33",
|
|
65
|
+
"@types/react": "^18.3.2",
|
|
66
|
+
"@types/react-dom": "^18.3.0",
|
|
67
67
|
"@types/vscode": "^1.75.0",
|
|
68
68
|
"@types/vscode-webview": "^1.57.5",
|
|
69
69
|
"@vitejs/plugin-react-swc": "^3.6.0",
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"lint-staged": "^15.2.2",
|
|
74
74
|
"npm-run-all": "^4.1.5",
|
|
75
75
|
"prettier": "^3.2.5",
|
|
76
|
-
"rimraf": "^5.0.
|
|
77
|
-
"stylelint": "^16.
|
|
78
|
-
"tsx": "^4.
|
|
79
|
-
"typescript": "~5.
|
|
80
|
-
"vite": "^5.2.
|
|
76
|
+
"rimraf": "^5.0.7",
|
|
77
|
+
"stylelint": "^16.5.0",
|
|
78
|
+
"tsx": "^4.10.2",
|
|
79
|
+
"typescript": "~5.4.5",
|
|
80
|
+
"vite": "^5.2.11"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import { defineConfig } from 'vite';
|
|
3
2
|
import vscode from '@tomjs/vite-plugin-vscode';
|
|
4
3
|
import react from '@vitejs/plugin-react-swc';
|
|
4
|
+
import { defineConfig } from 'vite';
|
|
5
5
|
import pkg from './package.json';
|
|
6
6
|
|
|
7
7
|
// https://vitejs.dev/config/
|
|
@@ -50,17 +50,17 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@vscode/webview-ui-toolkit": "^1.4.0",
|
|
53
|
-
"vue": "^3.4.
|
|
53
|
+
"vue": "^3.4.27"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@commitlint/cli": "^19.
|
|
56
|
+
"@commitlint/cli": "^19.3.0",
|
|
57
57
|
"@tomjs/commitlint": "^3.0.0",
|
|
58
58
|
"@tomjs/eslint": "^2.3.0",
|
|
59
59
|
"@tomjs/prettier": "^1.3.0",
|
|
60
60
|
"@tomjs/stylelint": "^2.3.0",
|
|
61
61
|
"@tomjs/tsconfig": "^1.5.0",
|
|
62
62
|
"@tomjs/vite-plugin-vscode": "^2.2.0",
|
|
63
|
-
"@types/node": "^18.19.
|
|
63
|
+
"@types/node": "^18.19.33",
|
|
64
64
|
"@types/vscode": "^1.75.0",
|
|
65
65
|
"@types/vscode-webview": "^1.57.5",
|
|
66
66
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"lint-staged": "^15.2.2",
|
|
71
71
|
"npm-run-all": "^4.1.5",
|
|
72
72
|
"prettier": "^3.2.5",
|
|
73
|
-
"rimraf": "^5.0.
|
|
74
|
-
"stylelint": "^16.
|
|
75
|
-
"tsx": "^4.
|
|
76
|
-
"typescript": "~5.
|
|
77
|
-
"vite": "^5.2.
|
|
78
|
-
"vue-tsc": "^2.0.
|
|
73
|
+
"rimraf": "^5.0.7",
|
|
74
|
+
"stylelint": "^16.5.0",
|
|
75
|
+
"tsx": "^4.10.2",
|
|
76
|
+
"typescript": "~5.4.5",
|
|
77
|
+
"vite": "^5.2.11",
|
|
78
|
+
"vue-tsc": "^2.0.17"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import { defineConfig } from 'vite';
|
|
3
2
|
import vscode from '@tomjs/vite-plugin-vscode';
|
|
4
3
|
import vue from '@vitejs/plugin-vue';
|
|
4
|
+
import { defineConfig } from 'vite';
|
|
5
5
|
import pkg from './package.json';
|
|
6
6
|
|
|
7
7
|
// https://vitejs.dev/config/
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"prepare": "husky"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"vue": "^3.4.
|
|
20
|
+
"vue": "^3.4.27"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@commitlint/cli": "^19.
|
|
23
|
+
"@commitlint/cli": "^19.3.0",
|
|
24
24
|
"@tomjs/commitlint": "^3.0.0",
|
|
25
25
|
"@tomjs/eslint": "^2.3.0",
|
|
26
26
|
"@tomjs/prettier": "^1.3.0",
|
|
27
27
|
"@tomjs/stylelint": "^2.3.0",
|
|
28
28
|
"@tomjs/tsconfig": "^1.5.0",
|
|
29
|
-
"@types/node": "^18.19.
|
|
29
|
+
"@types/node": "^18.19.33",
|
|
30
30
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
31
31
|
"cross-env": "^7.0.3",
|
|
32
32
|
"eslint": "^8.57.0",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"lint-staged": "^15.2.2",
|
|
35
35
|
"npm-run-all": "^4.1.5",
|
|
36
36
|
"prettier": "^3.2.5",
|
|
37
|
-
"stylelint": "^16.
|
|
38
|
-
"typescript": "~5.
|
|
39
|
-
"vite": "^5.2.
|
|
40
|
-
"vue-tsc": "^2.0.
|
|
37
|
+
"stylelint": "^16.5.0",
|
|
38
|
+
"typescript": "~5.4.5",
|
|
39
|
+
"vite": "^5.2.11",
|
|
40
|
+
"vue-tsc": "^2.0.17"
|
|
41
41
|
}
|
|
42
42
|
}
|