juisy 2.0.0-beta.1 → 2.0.0-beta.11
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/cmds/public/print-globals.js +1 -1
- package/bin/cli/index.js +1 -1
- package/dist/cli/index.d.ts +0 -1
- package/dist/cli/index.js +131 -31
- 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/cli/plugins/register-lint-commands/augment.d.ts +2 -3
- package/dist/cli/plugins/register-lint-commands/settings.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/project-globals.d.ts +1 -1
- package/dist/templater/index.js +11 -11
- package/dist/vite/plugins/inject-css-variables/index.d.ts +22 -0
- package/dist/vite/plugins/inject-css-variables/index.js +60 -0
- package/package.json +21 -14
- package/bin/cli/cmds/private/docs/lint.js +0 -42
- package/dist/cli/plugins/register-test-command/augment.d.ts +0 -3
|
@@ -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
|
-
})
|