@nice-move/cli 0.11.15 → 0.11.17

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/cmd/lint.mjs CHANGED
@@ -1 +1 @@
1
- import*as t from"lilconfig";import{createRequire as e}from"node:module";export const id=67;export const ids=[67];export const modules={7845:(e,r,o)=>{var s,i;e.exports=(s={lilconfig:()=>t.lilconfig},i={},o.d(i,s),i)},5317:t=>{t.exports=e(import.meta.url)("child_process")},6982:t=>{t.exports=e(import.meta.url)("crypto")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},1421:t=>{t.exports=e(import.meta.url)("node:child_process")},3024:t=>{t.exports=e(import.meta.url)("node:fs")},1455:t=>{t.exports=e(import.meta.url)("node:fs/promises")},8995:t=>{t.exports=e(import.meta.url)("node:module")},8161:t=>{t.exports=e(import.meta.url)("node:os")},6760:t=>{t.exports=e(import.meta.url)("node:path")},1708:t=>{t.exports=e(import.meta.url)("node:process")},7075:t=>{t.exports=e(import.meta.url)("node:stream")},8500:t=>{t.exports=e(import.meta.url)("node:timers/promises")},7066:t=>{t.exports=e(import.meta.url)("node:tty")},3136:t=>{t.exports=e(import.meta.url)("node:url")},7975:t=>{t.exports=e(import.meta.url)("node:util")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},3193:t=>{t.exports=e(import.meta.url)("string_decoder")},2018:t=>{t.exports=e(import.meta.url)("tty")},9023:t=>{t.exports=e(import.meta.url)("util")},4863:(t,r,o)=>{o.d(r,{t7:()=>u,kj:()=>c});var s=o(9896);const i=e(import.meta.url)("module");var n=o(6928);e(import.meta.url)("url");const a=process.cwd(),l=(0,i.createRequire)(import.meta.url);function m(t,e=a){return t.startsWith(".")?(0,n.resolve)(e,t):(0,n.isAbsolute)(t)?t:l.resolve(t)}function c(t){try{return(0,s.statSync)(m(t)),!0}catch{return!1}}function u(t,e={}){const r=function(){try{const t=(0,s.readFileSync)(m("./package.json"),"utf8");return JSON.parse(t)}catch{return{}}}();if(t){const{[t]:o=e}=r;return o}return r}},9767:(t,e,r)=>{r.r(e),r.d(e,{builder:()=>u,command:()=>m,description:()=>c});var o=r(1455),s=r(6760);const i={"body-leading-blank":[1,"always"],"body-max-line-length":[2,"always",100],"footer-leading-blank":[1,"always"],"footer-max-line-length":[2,"always",100],"header-max-length":[2,"always",100],"subject-case":[0],"subject-empty":[2,"never"],"subject-full-stop":[2,"never","."],"type-case":[2,"always","lower-case"],"type-empty":[2,"never"],"type-enum":[2,"always",["build","chore","ci","docs","feat","fix","perf","refactor","revert","style","test"]],"scope-case":[0],"body-case":[0],"header-case":[0]};function n(t){t.command("commit","Lint git commit message",{},(()=>{(async function(){const t=await(0,o.readFile)((0,s.resolve)(process.cwd(),".git/COMMIT_EDITMSG"),"utf8"),e=await r.e(564).then(r.bind(r,9564)).then((t=>t.default.default||t.default)),n=await Promise.all([r.e(441),r.e(849)]).then(r.bind(r,6849)).then((t=>t.default.default||t.default)),a=await e(t,i);return{result:a,output:await n({results:[a]})}})().then((({result:t,output:e})=>{t.valid?console.log("Pass."):(console.log("Fail:"),console.log(e),process.exitCode=1)})).catch((t=>{console.error(t),process.exitCode=1}))}))}var a=r(4863);function l({garou:t,stylelint:e,eslint:r,prettier:o}){const s=process.stdin.isTTY?" --color":"";return function(t){const e=Object.entries(t).map((([t,e])=>[t,e.filter(Boolean)])).filter((([t,e])=>e.length));return e.length>0?Object.fromEntries(e):void 0}({"*.{vue,html,htm,md}":[t&&"garou",o&&`prettier -w -u${s}`,e&&`stylelint --fix${s}`,r&&`eslint --fix -f=pretty${s}`],"*.{ts,tsx,mts,cts}":[t&&"garou",o&&`prettier -w -u${s}`,r&&`eslint --fix -f=pretty${s}`],"*.{js,jsx,mjs,cjs,wxs,qs}":[t&&"garou",o&&`prettier -w -u${s}`,r&&`eslint --fix -f=pretty${s}`],"*.{c,sc,le,wx,q,tt,jx,ac}ss":[t&&"garou",o&&`prettier -w -u${s}`,e&&`stylelint --fix${s}`],"*.{json,yml,yaml,svg}":[t&&"garou",o&&`prettier -w -u${s}`],"{*.{jsonc,webmanifest,editorconfig,toml},.{babel,npm}rc}":[o&&`prettier -w -u${s}`],"{*.jenkinsfile,{j,J}enkinsfile}":[o&&`prettier -w -u${s}`],"yarn.lock":[t&&"garou"]})}const m="lint",c="";function u(t){n(t),function(t){t.command("staged","Lint and format git staged files",{},(()=>{(async function(){const{default:t}=await Promise.all([r.e(441),r.e(190),r.e(744)]).then(r.bind(r,4190));return t({allowEmpty:!0,concurrent:!0,config:l(function(){const t=(0,a.t7)("devDependencies");return{garou:"garou"in t,stylelint:"stylelint"in t,eslint:"eslint"in t,prettier:"prettier"in t}}()),cwd:process.cwd(),debug:!1,quiet:!1,relative:!1,shell:!1,stash:!0})})().then((t=>{process.exitCode=t?0:1})).catch((t=>{console.error(t),process.exitCode=1}))}))}(t),t.demandCommand(1,"Typing `commit` or `staged`")}}};import r from"../runtime.mjs";import*as o from"./lint.mjs";r.C(o);var s=r(r.s=9767),i=s.builder,n=s.command,a=s.description;export{i as builder,n as command,a as description};
1
+ import{createRequire as t}from"node:module";export const id=67;export const ids=[67];export const modules={5317:e=>{e.exports=t(import.meta.url)("child_process")},6982:e=>{e.exports=t(import.meta.url)("crypto")},4434:e=>{e.exports=t(import.meta.url)("events")},9896:e=>{e.exports=t(import.meta.url)("fs")},4573:e=>{e.exports=t(import.meta.url)("node:buffer")},1421:e=>{e.exports=t(import.meta.url)("node:child_process")},3024:e=>{e.exports=t(import.meta.url)("node:fs")},1455:e=>{e.exports=t(import.meta.url)("node:fs/promises")},8161:e=>{e.exports=t(import.meta.url)("node:os")},6760:e=>{e.exports=t(import.meta.url)("node:path")},1708:e=>{e.exports=t(import.meta.url)("node:process")},7075:e=>{e.exports=t(import.meta.url)("node:stream")},8500:e=>{e.exports=t(import.meta.url)("node:timers/promises")},7066:e=>{e.exports=t(import.meta.url)("node:tty")},3136:e=>{e.exports=t(import.meta.url)("node:url")},7975:e=>{e.exports=t(import.meta.url)("node:util")},857:e=>{e.exports=t(import.meta.url)("os")},6928:e=>{e.exports=t(import.meta.url)("path")},2203:e=>{e.exports=t(import.meta.url)("stream")},3193:e=>{e.exports=t(import.meta.url)("string_decoder")},2018:e=>{e.exports=t(import.meta.url)("tty")},9023:e=>{e.exports=t(import.meta.url)("util")},4863:(e,r,o)=>{o.d(r,{t7:()=>u,kj:()=>c});var s=o(9896);const n=t(import.meta.url)("module");var i=o(6928);t(import.meta.url)("url");const a=process.cwd(),l=(0,n.createRequire)(import.meta.url);function m(t,e=a){return t.startsWith(".")?(0,i.resolve)(e,t):(0,i.isAbsolute)(t)?t:l.resolve(t)}function c(t){try{return(0,s.statSync)(m(t)),!0}catch{return!1}}function u(t,e={}){const r=function(){try{const t=(0,s.readFileSync)(m("./package.json"),"utf8");return JSON.parse(t)}catch{return{}}}();if(t){const{[t]:o=e}=r;return o}return r}},9767:(t,e,r)=>{r.r(e),r.d(e,{builder:()=>u,command:()=>m,description:()=>c});var o=r(1455),s=r(6760);const n={"body-leading-blank":[1,"always"],"body-max-line-length":[2,"always",100],"footer-leading-blank":[1,"always"],"footer-max-line-length":[2,"always",100],"header-max-length":[2,"always",100],"subject-case":[0],"subject-empty":[2,"never"],"subject-full-stop":[2,"never","."],"type-case":[2,"always","lower-case"],"type-empty":[2,"never"],"type-enum":[2,"always",["build","chore","ci","docs","feat","fix","perf","refactor","revert","style","test"]],"scope-case":[0],"body-case":[0],"header-case":[0]};function i(t){t.command("commit","Lint git commit message",{},(()=>{(async function(){const t=await(0,o.readFile)((0,s.resolve)(process.cwd(),".git/COMMIT_EDITMSG"),"utf8"),e=await r.e(909).then(r.bind(r,909)).then((t=>t.default.default||t.default)),i=await Promise.all([r.e(441),r.e(849)]).then(r.bind(r,6849)).then((t=>t.default.default||t.default)),a=await e(t,n);return{result:a,output:await i({results:[a]})}})().then((({result:t,output:e})=>{t.valid?console.log("Pass."):(console.log("Fail:"),console.log(e),process.exitCode=1)})).catch((t=>{console.error(t),process.exitCode=1}))}))}var a=r(4863);function l({garou:t,stylelint:e,eslint:r,prettier:o}){const s=process.stdin.isTTY?" --color":"";return function(t){const e=Object.entries(t).map((([t,e])=>[t,e.filter(Boolean)])).filter((([t,e])=>e.length));return e.length>0?Object.fromEntries(e):void 0}({"*.{vue,html,htm,md}":[t&&"garou",o&&`prettier -w -u${s}`,e&&`stylelint --fix${s}`,r&&`eslint --fix -f=pretty${s}`],"*.{ts,tsx,mts,cts}":[t&&"garou",o&&`prettier -w -u${s}`,r&&`eslint --fix -f=pretty${s}`],"*.{js,jsx,mjs,cjs,wxs,qs}":[t&&"garou",o&&`prettier -w -u${s}`,r&&`eslint --fix -f=pretty${s}`],"*.{c,sc,le,wx,q,tt,jx,ac}ss":[t&&"garou",o&&`prettier -w -u${s}`,e&&`stylelint --fix${s}`],"*.{json,yml,yaml,svg}":[t&&"garou",o&&`prettier -w -u${s}`],"{*.{jsonc,webmanifest,editorconfig,toml},.{babel,npm}rc}":[o&&`prettier -w -u${s}`],"{*.jenkinsfile,{j,J}enkinsfile}":[o&&`prettier -w -u${s}`],"yarn.lock":[t&&"garou"]})}const m="lint",c="";function u(t){i(t),function(t){t.command("staged","Lint and format git staged files",{},(()=>{(async function(){const{default:t}=await Promise.all([r.e(441),r.e(598)]).then(r.bind(r,4598));return t({allowEmpty:!0,concurrent:!0,config:l(function(){const t=(0,a.t7)("devDependencies");return{garou:"garou"in t,stylelint:"stylelint"in t,eslint:"eslint"in t,prettier:"prettier"in t}}()),cwd:process.cwd(),debug:!1,quiet:!1,relative:!1,shell:!1,stash:!0})})().then((t=>{process.exitCode=t?0:1})).catch((t=>{console.error(t),process.exitCode=1}))}))}(t),t.demandCommand(1,"Typing `commit` or `staged`")}}};import e from"../runtime.mjs";import*as r from"./lint.mjs";e.C(r);var o=e(e.s=9767),s=o.builder,n=o.command,i=o.description;export{s as builder,n as command,i as description};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-move/cli",
3
- "version": "0.11.15",
3
+ "version": "0.11.17",
4
4
  "description": "Frontend develop helper for frontend development",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -43,13 +43,13 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@commitlint/format": "^19.5.0",
46
- "@commitlint/lint": "^19.5.0",
47
- "execa": "^9.3.1",
46
+ "@commitlint/lint": "^19.6.0",
47
+ "execa": "^9.5.1",
48
48
  "lint-staged": "^15.2.10",
49
49
  "settingz": "^0.2.0"
50
50
  },
51
51
  "engines": {
52
- "node": "^18.12.0 || ^20.0.0 || ^22.0.0"
52
+ "node": "^18.17.0 || ^20.5.0 || ^22.0.0"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public",