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