@w5s/mrm-preset 1.2.0 → 1.3.0
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 +6 -0
- package/.turbo/turbo-lint.log +6 -0
- package/.turbo/turbo-prepare.log +6 -1
- package/.turbo/turbo-test.log +29 -0
- package/CHANGELOG.md +12 -5
- package/editorconfig/_editorconfig +59 -0
- package/editorconfig/index.js +16 -113
- package/package.json +3 -19
- package/package.json.backup +60 -0
- package/project/index.js +6 -1
package/.turbo/turbo-prepare.log
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[1] : exited with code 0
|
|
2
|
+
[script]
|
|
3
|
+
[script] > @w5s/mrm-preset@1.2.1 test:script
|
|
4
|
+
[script] > mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir ..
|
|
5
|
+
[script]
|
|
6
|
+
[script] mkdir: _tester: File exists
|
|
7
|
+
[script] [36mRunning bootstrap...[39m
|
|
8
|
+
[script] [33mRunning alias configure...[39m
|
|
9
|
+
[script] [36mRunning gitignore...[39m
|
|
10
|
+
[script] [36mRunning project...[39m
|
|
11
|
+
[script] [32mUpdate turbo.json[39m
|
|
12
|
+
[script] [36mRunning contributing...[39m
|
|
13
|
+
[script] [36mRunning licenses...[39m
|
|
14
|
+
[script] [36mRunning asdf...[39m
|
|
15
|
+
[script] [36mRunning release...[39m
|
|
16
|
+
[script] [36mRunning ci...[39m
|
|
17
|
+
[script] [36mRunning lang...[39m
|
|
18
|
+
[script] [32mUpdate tsconfig.json[39m
|
|
19
|
+
[script] [36mRunning commitlint...[39m
|
|
20
|
+
[script] [32mUpdate .vscode/extensions.json[39m
|
|
21
|
+
[script] [36mRunning editorconfig...[39m
|
|
22
|
+
[script] [36mRunning eslint...[39m
|
|
23
|
+
[script] [36mRunning cspell...[39m
|
|
24
|
+
[script] [32mUpdate .cspell.json[39m
|
|
25
|
+
[script] [36mRunning vitest...[39m
|
|
26
|
+
[script] [36mRunning renovate...[39m
|
|
27
|
+
[script] [36mRunning githooks...[39m
|
|
28
|
+
[script] [36mRunning postconfigure...[39m
|
|
29
|
+
[script] npm run test:script exited with code 0
|
package/CHANGELOG.md
CHANGED
|
@@ -3,26 +3,33 @@
|
|
|
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.
|
|
7
|
-
|
|
6
|
+
# [1.3.0](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.2.1...@w5s/mrm-preset@1.3.0) (2023-09-28)
|
|
8
7
|
|
|
9
8
|
### ✨ Features
|
|
10
9
|
|
|
11
|
-
-
|
|
10
|
+
- Simplify editorconfig configuration ([7b1a5fd](https://github.com/w5s/project-config/commit/7b1a5fd))
|
|
12
11
|
|
|
13
12
|
**Note:** Version bump only for package @w5s/mrm-preset
|
|
14
13
|
|
|
14
|
+
## [1.2.1](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.2.0...@w5s/mrm-preset@1.2.1) (2023-08-08)
|
|
15
15
|
|
|
16
|
+
### 🐛 Bug Fixes
|
|
16
17
|
|
|
18
|
+
- Fix doc configuration in mrm ([fe81b1a](https://github.com/w5s/project-config/commit/fe81b1a))
|
|
17
19
|
|
|
20
|
+
**Note:** Version bump only for package @w5s/mrm-preset
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
# [1.2.0](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.1.1...@w5s/mrm-preset@1.2.0) (2023-08-01)
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
### ✨ Features
|
|
22
25
|
|
|
26
|
+
- Add support for asdf ([a67f3b5](https://github.com/w5s/project-config/commit/a67f3b5)) - Add support for turbo caching in github actions ([d61aca7](https://github.com/w5s/project-config/commit/d61aca7))
|
|
23
27
|
|
|
28
|
+
**Note:** Version bump only for package @w5s/mrm-preset
|
|
24
29
|
|
|
30
|
+
## [1.1.1](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.1.0...@w5s/mrm-preset@1.1.1) (2023-07-12)
|
|
25
31
|
|
|
32
|
+
**Note:** Version bump only for package @w5s/mrm-preset
|
|
26
33
|
|
|
27
34
|
# [1.1.0](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.4...@w5s/mrm-preset@1.1.0) (2023-07-04)
|
|
28
35
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# http://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
continuation_indent_size = 4
|
|
7
|
+
curly_bracket_next_line = false
|
|
8
|
+
end_of_line = lf
|
|
9
|
+
indent_brace_style = Stroustrup
|
|
10
|
+
indent_size = 2
|
|
11
|
+
indent_style = space
|
|
12
|
+
insert_final_newline = true
|
|
13
|
+
spaces_around_brackets = outside
|
|
14
|
+
spaces_around_operators = true
|
|
15
|
+
trim_trailing_whitespace = true
|
|
16
|
+
|
|
17
|
+
[*.{json,json5,webmanifest}]
|
|
18
|
+
indent_size = 2
|
|
19
|
+
indent_style = space
|
|
20
|
+
insert_final_newline = ignore
|
|
21
|
+
|
|
22
|
+
[*.{yml,yaml}]
|
|
23
|
+
indent_size = 2
|
|
24
|
+
indent_style = space
|
|
25
|
+
|
|
26
|
+
[*.{bat,reg,ps1,vbs,cs,cmd,fs,ahk}]
|
|
27
|
+
end_of_line = crlf
|
|
28
|
+
|
|
29
|
+
[*.{sh,zsh}]
|
|
30
|
+
end_of_line = lf
|
|
31
|
+
|
|
32
|
+
[*.{css,sass,scss,less,pcss}]
|
|
33
|
+
indent_size = 2
|
|
34
|
+
indent_style = space
|
|
35
|
+
max_line_length = 120
|
|
36
|
+
quote_type = single
|
|
37
|
+
|
|
38
|
+
[*.{js,jsx,jsm,ts,tsx,cjs,cjs,cjsx,cts,ctsx,mjs,mts,mtsx,js.hbs}]
|
|
39
|
+
indent_size = 2
|
|
40
|
+
indent_style = space
|
|
41
|
+
max_line_length = 120
|
|
42
|
+
quote_type = single
|
|
43
|
+
|
|
44
|
+
[*.{htm,html,svg,vue}]
|
|
45
|
+
indent_size = 2
|
|
46
|
+
indent_style = space
|
|
47
|
+
|
|
48
|
+
[*.{md,mdwn,mdown,markdown,mdx,apib}]
|
|
49
|
+
indent_size = 4
|
|
50
|
+
indent_style = space
|
|
51
|
+
insert_final_newline = true
|
|
52
|
+
trim_trailing_whitespace = false
|
|
53
|
+
|
|
54
|
+
[*.{py,robot}]
|
|
55
|
+
indent_size = 4
|
|
56
|
+
indent_style = space
|
|
57
|
+
|
|
58
|
+
[{Makefile,**.mk,**.make}]
|
|
59
|
+
indent_style = tab
|
package/editorconfig/index.js
CHANGED
|
@@ -1,119 +1,22 @@
|
|
|
1
|
-
const {
|
|
2
|
-
const createDebug = require('debug');
|
|
3
|
-
const { vscodeRecommendedExtension } = require('../core/vscode.js');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* @param {Record<string, Partial<{
|
|
8
|
-
* charset: string,
|
|
9
|
-
* continuation_indent_size: number,
|
|
10
|
-
* curly_bracket_next_line: boolean,
|
|
11
|
-
* end_of_line: 'lf'|'crlf',
|
|
12
|
-
* indent_brace_style: 'Stroustrup',
|
|
13
|
-
* indent_size: number,
|
|
14
|
-
* indent_style: 'tab'|'space',
|
|
15
|
-
* insert_final_newline: boolean|'ignore',
|
|
16
|
-
* max_line_length: number,
|
|
17
|
-
* quote_type: 'single'|'double',
|
|
18
|
-
* root: boolean,
|
|
19
|
-
* spaces_around_brackets: 'outside',
|
|
20
|
-
* spaces_around_operators: boolean,
|
|
21
|
-
* trim_trailing_whitespace: boolean,
|
|
22
|
-
* }>>} defaults
|
|
23
|
-
*/
|
|
24
|
-
function createEditorConfig(defaults) {
|
|
25
|
-
const debug = createDebug('mrm-editorconfig');
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @param {string} section
|
|
29
|
-
* @param {defaults} existing
|
|
30
|
-
*/
|
|
31
|
-
function mergeSection(section, existing = {}) {
|
|
32
|
-
return Object.assign(existing, defaults[section] || {});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function task() {
|
|
36
|
-
const editorConfigFile = ini('.editorconfig', 'http://editorconfig.org');
|
|
1
|
+
const { readFileSync } = require('node:fs');
|
|
37
2
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
debug('section %s: %o', name, values);
|
|
41
|
-
editorConfigFile.set(name, values);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
editorConfigFile.save();
|
|
3
|
+
const { vscodeRecommendedExtension } = require('../core/vscode.js');
|
|
4
|
+
const block = require('../core/block.js');
|
|
45
5
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
state: 'present',
|
|
49
|
-
});
|
|
50
|
-
}
|
|
6
|
+
function task() {
|
|
7
|
+
const templateContent = readFileSync(require.resolve('./_editorconfig'), 'utf8');
|
|
51
8
|
|
|
52
|
-
|
|
9
|
+
block({
|
|
10
|
+
block: templateContent,
|
|
11
|
+
path: '.editorconfig',
|
|
12
|
+
});
|
|
53
13
|
|
|
54
|
-
|
|
14
|
+
vscodeRecommendedExtension({
|
|
15
|
+
name: 'editorconfig.editorconfig',
|
|
16
|
+
state: 'present',
|
|
17
|
+
});
|
|
55
18
|
}
|
|
56
19
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
charset: 'utf-8',
|
|
61
|
-
continuation_indent_size: 4,
|
|
62
|
-
curly_bracket_next_line: false,
|
|
63
|
-
end_of_line: 'lf',
|
|
64
|
-
indent_brace_style: 'Stroustrup',
|
|
65
|
-
indent_size: 2,
|
|
66
|
-
indent_style: 'space',
|
|
67
|
-
insert_final_newline: true,
|
|
68
|
-
spaces_around_brackets: 'outside',
|
|
69
|
-
spaces_around_operators: true,
|
|
70
|
-
trim_trailing_whitespace: true,
|
|
71
|
-
},
|
|
72
|
-
'*.{json,json5,webmanifest}': {
|
|
73
|
-
indent_size: 2,
|
|
74
|
-
indent_style: 'space',
|
|
75
|
-
insert_final_newline: 'ignore',
|
|
76
|
-
},
|
|
77
|
-
'*.{yml,yaml}': {
|
|
78
|
-
indent_size: 2,
|
|
79
|
-
indent_style: 'space',
|
|
80
|
-
},
|
|
81
|
-
'*.{bat,reg,ps1,vbs,cs,cmd,fs,ahk}': {
|
|
82
|
-
end_of_line: 'crlf',
|
|
83
|
-
},
|
|
84
|
-
'*.{sh,zsh}': {
|
|
85
|
-
end_of_line: 'lf',
|
|
86
|
-
},
|
|
87
|
-
'*.{css,sass,scss,less,pcss}': {
|
|
88
|
-
indent_size: 2,
|
|
89
|
-
indent_style: 'space',
|
|
90
|
-
max_line_length: 120,
|
|
91
|
-
quote_type: 'single',
|
|
92
|
-
},
|
|
93
|
-
'*.{js,jsx,jsm,ts,tsx,cjs,cjs,cjsx,cts,ctsx,mjs,mts,mtsx,js.hbs}': {
|
|
94
|
-
indent_size: 2,
|
|
95
|
-
indent_style: 'space',
|
|
96
|
-
max_line_length: 120,
|
|
97
|
-
quote_type: 'single',
|
|
98
|
-
},
|
|
99
|
-
'*.{htm,html,svg,vue}': {
|
|
100
|
-
indent_size: 2,
|
|
101
|
-
indent_style: 'space',
|
|
102
|
-
},
|
|
103
|
-
'*.{md,mdwn,mdown,markdown,mdx,apib}': {
|
|
104
|
-
indent_size: 4,
|
|
105
|
-
indent_style: 'space',
|
|
106
|
-
insert_final_newline: true,
|
|
107
|
-
trim_trailing_whitespace: false,
|
|
108
|
-
},
|
|
109
|
-
'*.{py,robot}': {
|
|
110
|
-
indent_size: 4,
|
|
111
|
-
indent_style: 'space',
|
|
112
|
-
},
|
|
113
|
-
Makefile: {
|
|
114
|
-
indent_style: 'tab',
|
|
115
|
-
},
|
|
116
|
-
_global: {
|
|
117
|
-
root: true,
|
|
118
|
-
},
|
|
119
|
-
});
|
|
20
|
+
task.description = 'Adds EditorConfig file';
|
|
21
|
+
|
|
22
|
+
module.exports = task;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/mrm-preset",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Mrm configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mrm",
|
|
@@ -21,18 +21,7 @@
|
|
|
21
21
|
"type": "commonjs",
|
|
22
22
|
"main": "config.json",
|
|
23
23
|
"scripts": {
|
|
24
|
-
"
|
|
25
|
-
"build:tsc": "tsc --noEmit --skipLibCheck",
|
|
26
|
-
"clean": "concurrently \"npm:clean:*\" \":\"",
|
|
27
|
-
"docs": "node ../../markdown.mjs",
|
|
28
|
-
"format": "concurrently \"npm:format:*\" \":\"",
|
|
29
|
-
"format:src": "eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
|
|
30
|
-
"lint": "concurrently \"npm:lint:*\" \":\"",
|
|
31
|
-
"lint:src": "eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
|
|
32
|
-
"prepare": "concurrently \"npm:prepare:*\" \":\"",
|
|
33
|
-
"spellcheck": "cspell --no-progress '**'",
|
|
34
|
-
"test": "concurrently \"npm:test:*\" \":\"",
|
|
35
|
-
"test:script": "mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir .."
|
|
24
|
+
"postpack": "npx clean-package restore"
|
|
36
25
|
},
|
|
37
26
|
"dependencies": {
|
|
38
27
|
"debug": "^4.3.3",
|
|
@@ -41,16 +30,11 @@
|
|
|
41
30
|
"semver-intersect": "^1.4.0",
|
|
42
31
|
"sync-directory": "^6.0.0"
|
|
43
32
|
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@types/debug": "4.1.8",
|
|
46
|
-
"mrm": "4.1.17",
|
|
47
|
-
"mrm-preset-default": "4.1.11"
|
|
48
|
-
},
|
|
49
33
|
"engines": {
|
|
50
34
|
"node": ">=16.0.0"
|
|
51
35
|
},
|
|
52
36
|
"publishConfig": {
|
|
53
37
|
"access": "public"
|
|
54
38
|
},
|
|
55
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "40aa9e728c83ee50a5a381817c59df91458cf6a0"
|
|
56
40
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@w5s/mrm-preset",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Mrm configuration presets",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"mrm",
|
|
7
|
+
"config",
|
|
8
|
+
"bootstrap"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/w5s/project-config/blob/main/packages/mrm-preset#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/w5s/project-config.git/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git@github.com:w5s/project-config.git",
|
|
17
|
+
"directory": "packages/mrm-preset"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": "Julien Polo <julien.polo@gmail.com>",
|
|
21
|
+
"type": "commonjs",
|
|
22
|
+
"main": "config.json",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "concurrently \"npm:build:*\" \":\"",
|
|
25
|
+
"build:tsc": "tsc --noEmit --skipLibCheck",
|
|
26
|
+
"clean": "concurrently \"npm:clean:*\" \":\"",
|
|
27
|
+
"docs": "node ../../markdown.mjs",
|
|
28
|
+
"format": "concurrently \"npm:format:*\" \":\"",
|
|
29
|
+
"format:src": "eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
|
|
30
|
+
"lint": "concurrently \"npm:lint:*\" \":\"",
|
|
31
|
+
"lint:src": "eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
|
|
32
|
+
"postpack": "npx clean-package restore",
|
|
33
|
+
"prepack": "npx clean-package",
|
|
34
|
+
"prepare": "concurrently \"npm:prepare:*\" \":\"",
|
|
35
|
+
"prepare:template": "cp ../../.editorconfig editorconfig/_editorconfig",
|
|
36
|
+
"spellcheck": "cspell --no-progress '**'",
|
|
37
|
+
"test": "concurrently \"npm:test:*\" \":\"",
|
|
38
|
+
"test:script": "mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir .."
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"debug": "^4.3.3",
|
|
42
|
+
"glob": "^10.0.0",
|
|
43
|
+
"mrm-core": "^7.0.0",
|
|
44
|
+
"semver-intersect": "^1.4.0",
|
|
45
|
+
"sync-directory": "^6.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/debug": "4.1.9",
|
|
49
|
+
"mrm": "4.1.22",
|
|
50
|
+
"mrm-preset-default": "4.1.11"
|
|
51
|
+
},
|
|
52
|
+
"clean-package": "../../clean-package.config.cjs",
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=16.0.0"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"gitHead": "40aa9e728c83ee50a5a381817c59df91458cf6a0"
|
|
60
|
+
}
|
package/project/index.js
CHANGED
|
@@ -254,6 +254,7 @@ function task() {
|
|
|
254
254
|
update: (_) => ({
|
|
255
255
|
..._,
|
|
256
256
|
pipeline: {
|
|
257
|
+
..._.pipeline,
|
|
257
258
|
[project.build]: {
|
|
258
259
|
dependsOn: [`^${project.build}`, `//#${project.build}:root`],
|
|
259
260
|
outputs: ['lib/**', 'dist/**', '.next/**'],
|
|
@@ -272,7 +273,11 @@ function task() {
|
|
|
272
273
|
dependsOn: [`//#${project.format}:root`],
|
|
273
274
|
},
|
|
274
275
|
[`//#${project.format}:root`]: {},
|
|
275
|
-
[project.docs]: {
|
|
276
|
+
[project.docs]: {
|
|
277
|
+
dependsOn: [`//#${project.docs}:root`],
|
|
278
|
+
cache: false,
|
|
279
|
+
},
|
|
280
|
+
[`//#${project.docs}:root`]: {},
|
|
276
281
|
[project.spellcheck]: {
|
|
277
282
|
dependsOn: [`//#${project.spellcheck}:root`],
|
|
278
283
|
},
|