juisy 2.0.0-beta.1 → 2.0.0-beta.10
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/LICENSE +661 -0
- package/bin/cli/index.js +1 -1
- package/dist/cli/index.d.ts +0 -1
- package/dist/cli/index.js +128 -27
- package/dist/cli/plugins/register-bump-version-command/cmds/index.d.ts +3 -0
- package/dist/cli/plugins/register-bump-version-command/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/templater/index.js +10 -10
- package/package.json +201 -193
- package/bin/cli/cmds/private/docs/lint.js +0 -42
- package/dist/cli/plugins/register-test-command/augment.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,193 +1,201 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "juisy",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
4
|
-
"description": "Make your JavaScript (and/or TypeScript) project juicy!",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"files": [
|
|
7
|
-
"bin",
|
|
8
|
-
"dist"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"audit": "ncu
|
|
48
|
-
"
|
|
49
|
-
"docs": "
|
|
50
|
-
"docs:
|
|
51
|
-
"docs:cli": "
|
|
52
|
-
"docs:cli:
|
|
53
|
-
"
|
|
54
|
-
"example:
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"test": "
|
|
59
|
-
"test:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"@commitlint/
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@release-it/conventional-changelog": "^9.0.4",
|
|
93
|
-
"@stylistic/eslint-plugin": "^2",
|
|
94
|
-
"@typescript-eslint/eslint-plugin": "^8",
|
|
95
|
-
"chalk": "^4.1.2",
|
|
96
|
-
"conventional-changelog-cli": "^5.0.0",
|
|
97
|
-
"eslint": "^9",
|
|
98
|
-
"lint-staged": "^14.0.1",
|
|
99
|
-
"markdownlint-cli2": "^0.12.0",
|
|
100
|
-
"markdownlint-cli2-formatter-pretty": "^0.0.7",
|
|
101
|
-
"prompts": "^2.4.2",
|
|
102
|
-
"release-it": "^17.11.0",
|
|
103
|
-
"simple-git-hooks": "^2.9.0",
|
|
104
|
-
"yargs": "^17.7.2"
|
|
105
|
-
},
|
|
106
|
-
"peerDependenciesMeta": {
|
|
107
|
-
"@github/markdownlint-github": {
|
|
108
|
-
"optional": true
|
|
109
|
-
},
|
|
110
|
-
"
|
|
111
|
-
"optional": true
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"@
|
|
122
|
-
"@
|
|
123
|
-
"@
|
|
124
|
-
"@
|
|
125
|
-
"@types/
|
|
126
|
-
"@types/
|
|
127
|
-
"@types/
|
|
128
|
-
"@types/
|
|
129
|
-
"@types/
|
|
130
|
-
"@types/
|
|
131
|
-
"@types/
|
|
132
|
-
"@
|
|
133
|
-
"@
|
|
134
|
-
"@
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
"
|
|
192
|
-
|
|
193
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "juisy",
|
|
3
|
+
"version": "2.0.0-beta.10",
|
|
4
|
+
"description": "Make your JavaScript (and/or TypeScript) project juicy!",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"bin",
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": "^18.0.0 || ^20.0.0 || >=22.0.0"
|
|
12
|
+
},
|
|
13
|
+
"imports": {
|
|
14
|
+
"#juisy": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"#juisy/cli": {
|
|
19
|
+
"types": "./dist/cli/index.d.ts",
|
|
20
|
+
"import": "./dist/cli/index.js"
|
|
21
|
+
},
|
|
22
|
+
"#juisy/templater": {
|
|
23
|
+
"types": "./dist/templater/index.d.ts",
|
|
24
|
+
"import": "./dist/templater/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./cli": {
|
|
33
|
+
"types": "./dist/cli/index.d.ts",
|
|
34
|
+
"import": "./dist/cli/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./templater": {
|
|
37
|
+
"types": "./dist/templater/index.d.ts",
|
|
38
|
+
"import": "./dist/templater/index.js"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "vite build",
|
|
46
|
+
"audit": "ncu && npm audit",
|
|
47
|
+
"audit:fix": "ncu --interactive",
|
|
48
|
+
"docs": "npm run docs:cli && npm run docs:api",
|
|
49
|
+
"docs:api": "node ./bin/cli docs generate:api",
|
|
50
|
+
"docs:cli": "npm run docs:cli:private && npm run docs:cli:public",
|
|
51
|
+
"docs:cli:private": "node ./bin/cli docs generate:cli -c ./docs/cli/private/config.js",
|
|
52
|
+
"docs:cli:public": "node ./bin/cli docs generate:cli -c ./docs/cli/public/config.js",
|
|
53
|
+
"example:reset": "git checkout --no-overlay -- example && cd example && git clean -fdX",
|
|
54
|
+
"example:test": "npm run example:reset && cd example && npm install -D juisy@file:../ && npx juisy squeeze && npm run docs:readme",
|
|
55
|
+
"print:globals": "node --no-warnings ./bin/cli print:globals",
|
|
56
|
+
"release": "release-it",
|
|
57
|
+
"test": "node ./bin/cli test",
|
|
58
|
+
"test:dev": "npm test -- --watch",
|
|
59
|
+
"test:ui": "npm test -- --ui"
|
|
60
|
+
},
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "git+https://gitlab.com/hperchec/juisy.git"
|
|
64
|
+
},
|
|
65
|
+
"keywords": [
|
|
66
|
+
"js",
|
|
67
|
+
"build",
|
|
68
|
+
"release",
|
|
69
|
+
"changelog",
|
|
70
|
+
"bin",
|
|
71
|
+
"cmd",
|
|
72
|
+
"easy"
|
|
73
|
+
],
|
|
74
|
+
"author": {
|
|
75
|
+
"name": "Hervé Perchec",
|
|
76
|
+
"email": "contact@herve-perchec.com",
|
|
77
|
+
"url": "https://gitlab.com/herveperchec"
|
|
78
|
+
},
|
|
79
|
+
"license": "GPL-3.0-only",
|
|
80
|
+
"bugs": {
|
|
81
|
+
"url": "https://gitlab.com/hperchec/juisy/issues"
|
|
82
|
+
},
|
|
83
|
+
"homepage": "https://hperchec.gitlab.io/juisy",
|
|
84
|
+
"bin": {
|
|
85
|
+
"juisy": "./bin/cli/index.js"
|
|
86
|
+
},
|
|
87
|
+
"peerDependencies": {
|
|
88
|
+
"@commitlint/cli": "^19.6.1",
|
|
89
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
90
|
+
"@github/markdownlint-github": "^0.7.0",
|
|
91
|
+
"@release-it/bumper": "6.0.1",
|
|
92
|
+
"@release-it/conventional-changelog": "^9.0.4",
|
|
93
|
+
"@stylistic/eslint-plugin": "^2",
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "^8",
|
|
95
|
+
"chalk": "^4.1.2",
|
|
96
|
+
"conventional-changelog-cli": "^5.0.0",
|
|
97
|
+
"eslint": "^9",
|
|
98
|
+
"lint-staged": "^14.0.1",
|
|
99
|
+
"markdownlint-cli2": "^0.12.0",
|
|
100
|
+
"markdownlint-cli2-formatter-pretty": "^0.0.7",
|
|
101
|
+
"prompts": "^2.4.2",
|
|
102
|
+
"release-it": "^17.11.0",
|
|
103
|
+
"simple-git-hooks": "^2.9.0",
|
|
104
|
+
"yargs": "^17.7.2"
|
|
105
|
+
},
|
|
106
|
+
"peerDependenciesMeta": {
|
|
107
|
+
"@github/markdownlint-github": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"@release-it/bumper": {
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"@release-it/conventional-changelog": {
|
|
114
|
+
"optional": true
|
|
115
|
+
},
|
|
116
|
+
"markdownlint-cli2-formatter-pretty": {
|
|
117
|
+
"optional": true
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"devDependencies": {
|
|
121
|
+
"@babel/eslint-parser": "^7.25.9",
|
|
122
|
+
"@conventional-changelog/git-client": "^1.0.1",
|
|
123
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
124
|
+
"@stylistic/eslint-plugin": "^2.12.1",
|
|
125
|
+
"@types/conventional-changelog": "^3.1.5",
|
|
126
|
+
"@types/conventional-changelog-config-spec": "^2.1.5",
|
|
127
|
+
"@types/ejs": "^3.1.5",
|
|
128
|
+
"@types/fs-extra": "^11.0.4",
|
|
129
|
+
"@types/lint-staged": "^13.3.0",
|
|
130
|
+
"@types/lodash.get": "^4.4.9",
|
|
131
|
+
"@types/lodash.kebabcase": "^4.1.9",
|
|
132
|
+
"@types/lodash.merge": "^4.6.9",
|
|
133
|
+
"@types/lodash.set": "^4.3.9",
|
|
134
|
+
"@types/node": "^22.10.2",
|
|
135
|
+
"@types/prompts": "^2.4.9",
|
|
136
|
+
"@types/semver": "^7.5.8",
|
|
137
|
+
"@types/yargs": "^17.0.33",
|
|
138
|
+
"@types/yargs-parser": "^21.0.3",
|
|
139
|
+
"@typescript-eslint/eslint-plugin": "^8.18.1",
|
|
140
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
141
|
+
"@vitest/ui": "^2.1.8",
|
|
142
|
+
"cpy-cli": "^5.0.0",
|
|
143
|
+
"eslint": "^9.17.0",
|
|
144
|
+
"happy-dom": "^15.11.7",
|
|
145
|
+
"json-schema-to-ts": "^3.1.1",
|
|
146
|
+
"lint-staged": "^14.0.1",
|
|
147
|
+
"markdown-table": "^3.0.4",
|
|
148
|
+
"npm-check-updates": "^17.1.12",
|
|
149
|
+
"quicktype": "^23.0.170",
|
|
150
|
+
"typescript": "^5.7.2",
|
|
151
|
+
"vite": "^5.4.11",
|
|
152
|
+
"vite-plugin-dts": "^4.3.0",
|
|
153
|
+
"vite-plugin-generate-file": "^0.2.0",
|
|
154
|
+
"vitest": "^2.1.8"
|
|
155
|
+
},
|
|
156
|
+
"dependencies": {
|
|
157
|
+
"@dotenvx/dotenvx": "^1.31.0",
|
|
158
|
+
"ascii-tree": "^0.3.0",
|
|
159
|
+
"chalk": "^4.1.2",
|
|
160
|
+
"conventional-recommended-bump": "^10.0.0",
|
|
161
|
+
"deepmerge": "^4.3.1",
|
|
162
|
+
"ejs": "^3.1.10",
|
|
163
|
+
"execa": "^8",
|
|
164
|
+
"find-up": "^7.0.0",
|
|
165
|
+
"fs-extra": "^11.2.0",
|
|
166
|
+
"github-slugger": "^2.0.0",
|
|
167
|
+
"glob": "^11.0.0",
|
|
168
|
+
"handlebars": "^4.7.8",
|
|
169
|
+
"import-single-ts": "^1.2.0",
|
|
170
|
+
"indent-string": "^5.0.0",
|
|
171
|
+
"json-2-csv": "^5.5.7",
|
|
172
|
+
"jstoxml": "^5.0.2",
|
|
173
|
+
"lodash.get": "^4.4.2",
|
|
174
|
+
"lodash.kebabcase": "^4.1.1",
|
|
175
|
+
"lodash.merge": "^4.6.2",
|
|
176
|
+
"lodash.set": "^4.3.2",
|
|
177
|
+
"loglevel": "^1.9.2",
|
|
178
|
+
"markdown-toc": "^1.2.0",
|
|
179
|
+
"markdown-utils": "^1.0.0",
|
|
180
|
+
"package-json-type": "^1.0.3",
|
|
181
|
+
"pkg-dir": "^8.0.0",
|
|
182
|
+
"prompts": "^2.4.2",
|
|
183
|
+
"remark": "^15.0.1",
|
|
184
|
+
"remark-frontmatter": "^5.0.0",
|
|
185
|
+
"remark-toc": "^9.0.0",
|
|
186
|
+
"semver": "^7.7.1",
|
|
187
|
+
"simple-git-hooks": "^2.9.0",
|
|
188
|
+
"strip-ansi": "^7.1.0",
|
|
189
|
+
"ts-json-schema-generator": "^2.3.0",
|
|
190
|
+
"typedoc": "^0.27.5",
|
|
191
|
+
"typedoc-plugin-frontmatter": "^1.1.2",
|
|
192
|
+
"typedoc-plugin-markdown": "^4.3.3",
|
|
193
|
+
"typedoc-vitepress-theme": "^1.1.1",
|
|
194
|
+
"yaml": "^2.6.1",
|
|
195
|
+
"yargs": "^17.7.2",
|
|
196
|
+
"yargs-parser": "^21.1.1"
|
|
197
|
+
},
|
|
198
|
+
"release-it": {
|
|
199
|
+
"git": false
|
|
200
|
+
}
|
|
201
|
+
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/** @type {import('#juisy/cli').Command} */
|
|
2
|
-
export default new CLI.Command({
|
|
3
|
-
command: 'lint',
|
|
4
|
-
describe: 'Lint markdown with markdownlint',
|
|
5
|
-
builder: function (cli) {
|
|
6
|
-
cli.option('c', {
|
|
7
|
-
alias: 'config',
|
|
8
|
-
type: 'string',
|
|
9
|
-
describe: 'Path to custom markdownlint config file (relative to root folder)',
|
|
10
|
-
requiresArg: true
|
|
11
|
-
})
|
|
12
|
-
cli.option('f', {
|
|
13
|
-
alias: 'fix',
|
|
14
|
-
type: 'boolean',
|
|
15
|
-
describe: 'Auto fix by passing --fix option to markdownlint-cli2',
|
|
16
|
-
default: false
|
|
17
|
-
})
|
|
18
|
-
return cli
|
|
19
|
-
},
|
|
20
|
-
async handler (argv) {
|
|
21
|
-
const { abort, run } = CLI.InterfaceUtils
|
|
22
|
-
const configPath = argv.config || './docs/.markdownlint-cli2.cjs' // default relative to root folder
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Call markdownlint command
|
|
26
|
-
*/
|
|
27
|
-
try {
|
|
28
|
-
await run(
|
|
29
|
-
'npx',
|
|
30
|
-
[
|
|
31
|
-
'markdownlint-cli2',
|
|
32
|
-
'--config',
|
|
33
|
-
configPath,
|
|
34
|
-
...(argv.fix ? [ '--fix' ] : [])
|
|
35
|
-
],
|
|
36
|
-
{ stdio: 'inherit' }
|
|
37
|
-
)
|
|
38
|
-
} catch (error) {
|
|
39
|
-
abort(error.exitCode)
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
})
|