@w5s/mrm-preset 1.0.0-alpha.34 → 1.0.0-alpha.36
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-format.log +2 -2
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-spellcheck.log +1 -0
- package/.turbo/turbo-test.log +13 -1
- package/CHANGELOG.md +8 -0
- package/README.md +6 -6
- package/core/cspell.js +1 -1
- package/core/jest.js +2 -2
- package/core/turbo.js +2 -6
- package/cspell/index.js +8 -14
- package/editorconfig/index.js +13 -6
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-format.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[1] : exited with code 0
|
|
2
2
|
[src]
|
|
3
|
-
[src] > @w5s/mrm-preset@1.0.0-alpha.
|
|
3
|
+
[src] > @w5s/mrm-preset@1.0.0-alpha.34 format:src
|
|
4
4
|
[src] > eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
|
|
5
5
|
[src]
|
|
6
|
-
[src] npm run format:src exited with code
|
|
6
|
+
[src] npm run format:src exited with code SIGINT
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CSpell: Files checked: 51, Issues found: 0 in 0 files
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[src]
|
|
2
|
-
[src] > @w5s/mrm-preset@1.0.0-alpha.
|
|
2
|
+
[src] > @w5s/mrm-preset@1.0.0-alpha.34 test:src
|
|
3
3
|
[src] > mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir ..
|
|
4
4
|
[src]
|
|
5
5
|
[src] mkdir: _tester: File exists
|
|
@@ -18,6 +18,18 @@
|
|
|
18
18
|
[src] [36mRunning editorconfig...[39m
|
|
19
19
|
[src] [36mRunning eslint...[39m
|
|
20
20
|
[src] [36mRunning cspell...[39m
|
|
21
|
+
[src] [32mUpdate .cspell.json[39m
|
|
22
|
+
[src] Installing @w5s/cspell-config...
|
|
23
|
+
[src] npm ERR! code E404
|
|
24
|
+
[src] npm ERR! 404 Not Found - GET https://registry.npmjs.org/@w5s%2fcspell-config - Not found
|
|
25
|
+
npm ERR! 404
|
|
26
|
+
[src] npm ERR! 404 '@w5s/cspell-config@latest' is not in this registry.
|
|
27
|
+
[src] npm ERR! 404
|
|
28
|
+
[src] npm ERR! 404 Note that you can also install from a
|
|
29
|
+
[src] npm ERR! 404 tarball, folder, http url, or git url.
|
|
30
|
+
[src]
|
|
31
|
+
[src] npm ERR! A complete log of this run can be found in:
|
|
32
|
+
[src] npm ERR! /Users/julienpolo/Library/Caches/npm/_logs/2022-12-22T17_40_55_853Z-debug-0.log
|
|
21
33
|
[src] [36mRunning jest...[39m
|
|
22
34
|
[src] [36mRunning renovate...[39m
|
|
23
35
|
[src] [36mRunning githooks...[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-alpha.36](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.0-alpha.35...@w5s/mrm-preset@1.0.0-alpha.36) (2022-12-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @w5s/mrm-preset
|
|
9
|
+
|
|
10
|
+
# [1.0.0-alpha.35](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.0-alpha.34...@w5s/mrm-preset@1.0.0-alpha.35) (2022-12-22)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @w5s/mrm-preset
|
|
13
|
+
|
|
6
14
|
# [1.0.0-alpha.34](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.0-alpha.33...@w5s/mrm-preset@1.0.0-alpha.34) (2022-12-14)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @w5s/mrm-preset
|
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
1
|
+
<!-- AUTO-GENERATED-CONTENT:START (PKG_JSON:template=# W5s Mrm Preset _(${name})_) -->
|
|
2
2
|
# W5s Mrm Preset _(@w5s/mrm-preset)_
|
|
3
3
|
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
4
4
|
|
|
5
5
|
[![NPM Version][package-version-svg]][package-url]
|
|
6
6
|
[![License][license-image]][license-url]
|
|
7
7
|
|
|
8
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
8
|
+
<!-- AUTO-GENERATED-CONTENT:START (PKG_JSON:template=> ${description}&unknownTxt= ) -->
|
|
9
9
|
> Mrm configuration presets
|
|
10
10
|
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
11
11
|
|
|
@@ -38,19 +38,19 @@ npm run configure
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
## License
|
|
41
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
41
|
+
<!-- AUTO-GENERATED-CONTENT:START (PKG_JSON:template=[${license}][license-url] © ${author}) -->
|
|
42
42
|
[MIT][license-url] © Julien Polo <julien.polo@gmail.com>
|
|
43
43
|
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
44
44
|
|
|
45
45
|
<!-- VARIABLES -->
|
|
46
46
|
|
|
47
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
47
|
+
<!-- AUTO-GENERATED-CONTENT:START (PKG_JSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square) -->
|
|
48
48
|
[package-version-svg]: https://img.shields.io/npm/v/@w5s/mrm-preset.svg?style=flat-square
|
|
49
49
|
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
50
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
50
|
+
<!-- AUTO-GENERATED-CONTENT:START (PKG_JSON:template=[package-url]: https://www.npmjs.com/package/${name}) -->
|
|
51
51
|
[package-url]: https://www.npmjs.com/package/@w5s/mrm-preset
|
|
52
52
|
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
53
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
53
|
+
<!-- AUTO-GENERATED-CONTENT:START (PKG_JSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square) -->
|
|
54
54
|
[license-image]: https://img.shields.io/badge/license-MIT-green.svg?style=flat-square
|
|
55
55
|
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
56
56
|
[license-url]: ../../LICENSE
|
package/core/cspell.js
CHANGED
package/core/jest.js
CHANGED
|
@@ -36,13 +36,13 @@ function jest({ state }) {
|
|
|
36
36
|
default: {},
|
|
37
37
|
});
|
|
38
38
|
pkg.script(packageFile, {
|
|
39
|
-
name:
|
|
39
|
+
name: `${project.coverage}:root`,
|
|
40
40
|
update: (/** @type {string|undefined} */ _) => (hasWorkspaces ? _ : 'jest --coverage'),
|
|
41
41
|
state: 'present',
|
|
42
42
|
default: undefined, // pkg.emptyScript,
|
|
43
43
|
});
|
|
44
44
|
pkg.script(packageFile, {
|
|
45
|
-
name:
|
|
45
|
+
name: `${project.test}:root`,
|
|
46
46
|
update: (/** @type {string|undefined} */ _) => (hasWorkspaces ? _ : 'jest'),
|
|
47
47
|
state: 'present',
|
|
48
48
|
default: undefined, // pkg.emptyScript,
|
package/core/turbo.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const {
|
|
2
|
-
const pkg = require('./pkg.js');
|
|
1
|
+
const { json } = require('mrm-core');
|
|
3
2
|
const npm = require('./npm.js');
|
|
4
3
|
const jsonFile = require('./jsonFile.js');
|
|
5
4
|
|
|
@@ -18,10 +17,7 @@ const jsonFile = require('./jsonFile.js');
|
|
|
18
17
|
* }} options
|
|
19
18
|
*/
|
|
20
19
|
function turbo({ state, update }) {
|
|
21
|
-
const
|
|
22
|
-
const hasWorkspaces = pkg.hasWorkspaces(packageFileDefault);
|
|
23
|
-
const hasTurbo = state === 'present' && hasWorkspaces;
|
|
24
|
-
|
|
20
|
+
const hasTurbo = state === 'present';
|
|
25
21
|
const turboFile = json('turbo.json');
|
|
26
22
|
|
|
27
23
|
if (hasTurbo) {
|
package/cspell/index.js
CHANGED
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
const { cspell } = require('../core/cspell.js');
|
|
2
2
|
const project = require('../core/project.js');
|
|
3
3
|
const pkg = require('../core/pkg.js');
|
|
4
|
+
const npm = require('../core/npm.js');
|
|
4
5
|
|
|
5
6
|
function task() {
|
|
7
|
+
const preset = '@w5s/cspell-config';
|
|
6
8
|
cspell({
|
|
7
9
|
state: 'present',
|
|
8
10
|
update: (_) => ({
|
|
9
11
|
..._,
|
|
10
|
-
|
|
11
|
-
new Set([
|
|
12
|
-
'**/dist/**',
|
|
13
|
-
'**/build/**',
|
|
14
|
-
'**/lib/**',
|
|
15
|
-
'**/node_modules/**',
|
|
16
|
-
'**/package.json',
|
|
17
|
-
'**/package-lock.json',
|
|
18
|
-
'**/yarn.lock',
|
|
19
|
-
'**/*.log',
|
|
20
|
-
'**/CHANGELOG.md',
|
|
21
|
-
...(_.ignorePaths || []),
|
|
22
|
-
])
|
|
23
|
-
),
|
|
12
|
+
import: [preset],
|
|
24
13
|
}),
|
|
25
14
|
});
|
|
15
|
+
npm.dependency({
|
|
16
|
+
dev: true,
|
|
17
|
+
name: [preset],
|
|
18
|
+
state: 'present',
|
|
19
|
+
});
|
|
26
20
|
|
|
27
21
|
pkg.withPackageJson((packageFile) => {
|
|
28
22
|
const hasWorkspaces = pkg.hasWorkspaces(packageFile);
|
package/editorconfig/index.js
CHANGED
|
@@ -69,31 +69,38 @@ module.exports = createEditorConfig({
|
|
|
69
69
|
spaces_around_operators: true,
|
|
70
70
|
trim_trailing_whitespace: true,
|
|
71
71
|
},
|
|
72
|
-
'*.json': {
|
|
72
|
+
'*.{json,json5,webmanifest}': {
|
|
73
73
|
indent_size: 2,
|
|
74
74
|
indent_style: 'space',
|
|
75
75
|
insert_final_newline: 'ignore',
|
|
76
76
|
},
|
|
77
|
-
'*.yml': {
|
|
77
|
+
'*.{yml,yaml}': {
|
|
78
78
|
indent_size: 2,
|
|
79
79
|
indent_style: 'space',
|
|
80
80
|
},
|
|
81
|
-
'*.{bat,reg,ps1,vbs,cs
|
|
81
|
+
'*.{bat,reg,ps1,vbs,cs,cmd,fs,ahk}': {
|
|
82
82
|
end_of_line: 'crlf',
|
|
83
83
|
},
|
|
84
|
-
'*.{
|
|
84
|
+
'*.{sh,zsh}': {
|
|
85
|
+
end_of_line: 'lf',
|
|
86
|
+
},
|
|
87
|
+
'*.{css,sass,scss,less,pcss}': {
|
|
85
88
|
indent_size: 2,
|
|
86
89
|
indent_style: 'space',
|
|
87
90
|
max_line_length: 120,
|
|
88
91
|
quote_type: 'single',
|
|
89
92
|
},
|
|
90
|
-
'*.{js,cjs,mjs,
|
|
93
|
+
'*.{js,jsx,jsm,ts,tsx,cjs,cjs,cjsx,cts,ctsx,mjs,mts,mtsx,js.hbs}': {
|
|
91
94
|
indent_size: 2,
|
|
92
95
|
indent_style: 'space',
|
|
93
96
|
max_line_length: 120,
|
|
94
97
|
quote_type: 'single',
|
|
95
98
|
},
|
|
96
|
-
'*.{
|
|
99
|
+
'*.{htm,html,svg,vue}': {
|
|
100
|
+
indent_size: 2,
|
|
101
|
+
indent_style: 'space',
|
|
102
|
+
},
|
|
103
|
+
'*.{md,mdwn,mdown,markdown,mdx,apib}': {
|
|
97
104
|
indent_size: 4,
|
|
98
105
|
indent_style: 'space',
|
|
99
106
|
insert_final_newline: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/mrm-preset",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.36",
|
|
4
4
|
"description": "Mrm configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mrm",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "70a57c7d13988e14c4a2bc9a635c4b1497d701d7"
|
|
55
55
|
}
|