@nice-move/cli 0.11.15 → 0.11.16
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/216.mjs +1 -1
- package/dist/340.mjs +1 -0
- package/dist/564.mjs +1 -1
- package/dist/799.mjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cmd/git.mjs +1 -1
- package/dist/cmd/lint.mjs +1 -1
- package/package.json +2 -2
- package/dist/190.mjs +0 -1
- package/dist/744.mjs +0 -1
package/dist/cmd/lint.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
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(564).then(r.bind(r,9564)).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(340)]).then(r.bind(r,9340));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.
|
|
3
|
+
"version": "0.11.16",
|
|
4
4
|
"description": "Frontend develop helper for frontend development",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@commitlint/format": "^19.5.0",
|
|
46
46
|
"@commitlint/lint": "^19.5.0",
|
|
47
|
-
"execa": "^9.
|
|
47
|
+
"execa": "^9.4.0",
|
|
48
48
|
"lint-staged": "^15.2.10",
|
|
49
49
|
"settingz": "^0.2.0"
|
|
50
50
|
},
|