@w5s/mrm-preset 2.1.1 → 2.2.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 +1 -1
- package/.turbo/turbo-format.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +1 -5
- package/CHANGELOG.md +15 -0
- package/bootstrap/index.js +2 -2
- package/ci/github.js +1 -1
- package/core/git.js +26 -21
- package/editorconfig/_editorconfig +16 -0
- package/editorconfig/index.js +2 -2
- package/eslint/index.js +0 -4
- package/gitignore/index.js +2 -2
- package/lang/index.js +0 -4
- package/package.json +2 -2
- package/package.json.backup +2 -2
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-format.log
CHANGED
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[1] : exited with code 0
|
|
2
2
|
[script]
|
|
3
|
-
[script] > @w5s/mrm-preset@2.1.
|
|
3
|
+
[script] > @w5s/mrm-preset@2.1.1 test:script
|
|
4
4
|
[script] > mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir ..
|
|
5
5
|
[script]
|
|
6
6
|
[script] mkdir: _tester: File exists
|
|
@@ -8,20 +8,16 @@
|
|
|
8
8
|
[script] [33mRunning alias configure...[39m
|
|
9
9
|
[script] [36mRunning gitignore...[39m
|
|
10
10
|
[script] [36mRunning project...[39m
|
|
11
|
-
[script] [32mUpdate turbo.json[39m
|
|
12
11
|
[script] [36mRunning contributing...[39m
|
|
13
12
|
[script] [36mRunning licenses...[39m
|
|
14
13
|
[script] [36mRunning asdf...[39m
|
|
15
14
|
[script] [36mRunning release...[39m
|
|
16
15
|
[script] [36mRunning ci...[39m
|
|
17
16
|
[script] [36mRunning lang...[39m
|
|
18
|
-
[script] [32mUpdate tsconfig.json[39m
|
|
19
17
|
[script] [36mRunning commitlint...[39m
|
|
20
|
-
[script] [32mUpdate .vscode/extensions.json[39m
|
|
21
18
|
[script] [36mRunning editorconfig...[39m
|
|
22
19
|
[script] [36mRunning eslint...[39m
|
|
23
20
|
[script] [36mRunning cspell...[39m
|
|
24
|
-
[script] [32mUpdate .cspell.json[39m
|
|
25
21
|
[script] [36mRunning vitest...[39m
|
|
26
22
|
[script] [36mRunning renovate...[39m
|
|
27
23
|
[script] [36mRunning githooks...[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,21 @@
|
|
|
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
|
+
# [2.2.0](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@2.1.1...@w5s/mrm-preset@2.2.0) (2023-10-15)
|
|
7
|
+
|
|
8
|
+
### ✨ Features
|
|
9
|
+
|
|
10
|
+
- Improve editorconfig file ([443848c](https://github.com/w5s/project-config/commit/443848c))
|
|
11
|
+
- Improve gitignore generation ([f180f40](https://github.com/w5s/project-config/commit/f180f40))
|
|
12
|
+
|
|
13
|
+
### 🐛 Bug Fixes
|
|
14
|
+
|
|
15
|
+
- Move editorconfig managed to beginning of file ([174d200](https://github.com/w5s/project-config/commit/174d200))
|
|
16
|
+
- Remove trailing new end line ([68edf14](https://github.com/w5s/project-config/commit/68edf14))
|
|
17
|
+
- Use checkout@v4 action ([e6ab4a7](https://github.com/w5s/project-config/commit/e6ab4a7))
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @w5s/mrm-preset
|
|
20
|
+
|
|
6
21
|
## [2.1.1](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@2.1.0...@w5s/mrm-preset@2.1.1) (2023-10-15)
|
|
7
22
|
|
|
8
23
|
**Note:** Version bump only for package @w5s/mrm-preset
|
package/bootstrap/index.js
CHANGED
|
@@ -2,7 +2,7 @@ const path = require('node:path');
|
|
|
2
2
|
const { packageJson } = require('mrm-core');
|
|
3
3
|
const npm = require('../core/npm.js');
|
|
4
4
|
const pkg = require('../core/pkg.js');
|
|
5
|
-
const {
|
|
5
|
+
const { gitIgnore } = require('../core/git.js');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @param {{
|
|
@@ -25,7 +25,7 @@ function task({ mrmPreset, mrmTask, packageManager }) {
|
|
|
25
25
|
license: 'UNLICENSED',
|
|
26
26
|
description: '',
|
|
27
27
|
}).save();
|
|
28
|
-
|
|
28
|
+
gitIgnore(['macOS', 'NodeJS', 'VisualStudioCode']);
|
|
29
29
|
|
|
30
30
|
npm.bootstrap(packageManager);
|
|
31
31
|
|
package/ci/github.js
CHANGED
package/core/git.js
CHANGED
|
@@ -33,31 +33,36 @@ function trimStartLine(content) {
|
|
|
33
33
|
.join('\n');
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
const header = `
|
|
37
|
+
#==================================================================================================
|
|
38
|
+
# ┓ ┏┏━┏┓
|
|
39
|
+
# ┃┃┃┗┓┗┓
|
|
40
|
+
# ┗┻┛┗┛┗┛
|
|
41
|
+
#
|
|
42
|
+
# W5s default gitignore
|
|
43
|
+
#
|
|
44
|
+
# ⚠️ THIS IS A GENERATED FILE, SEE THE END OF FILE FOR EDITION
|
|
45
|
+
#
|
|
46
|
+
#==================================================================================================
|
|
47
|
+
`.slice(1, -1);
|
|
42
48
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
exports.gitIgnore = gitIgnore;
|
|
49
|
+
const footer = `
|
|
50
|
+
#==================================================================================================
|
|
51
|
+
# ⬇ Add Project specific rules below ⬇
|
|
52
|
+
#==================================================================================================
|
|
53
|
+
`.slice(1, -1);
|
|
50
54
|
|
|
51
55
|
/**
|
|
52
56
|
* @param {string[]} flags
|
|
53
57
|
*/
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
function gitIgnore(flags) {
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
const templateContent = [header, ...flags.map((flag) => trimStartLine(templateMap[flag] ?? '')), footer].join('\n');
|
|
61
|
+
|
|
62
|
+
blockSync({
|
|
63
|
+
block: templateContent,
|
|
64
|
+
path: '.gitignore',
|
|
65
|
+
insertPosition: ['before', 'BeginningOfFile'],
|
|
61
66
|
});
|
|
62
67
|
}
|
|
63
|
-
exports.
|
|
68
|
+
exports.gitIgnore = gitIgnore;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
#==================================================================================================
|
|
2
|
+
# ┓ ┏┏━┏┓
|
|
3
|
+
# ┃┃┃┗┓┗┓
|
|
4
|
+
# ┗┻┛┗┛┗┛
|
|
5
|
+
#
|
|
6
|
+
# W5s default editorconfig
|
|
7
|
+
#
|
|
8
|
+
# ⚠️ THIS IS A GENERATED FILE, SEE THE END OF FILE FOR EDITION
|
|
9
|
+
#
|
|
10
|
+
# Generated from https://github.com/w5s/project-config/blob/main/packages/mrm-preset/editorconfig/_editorconfig
|
|
11
|
+
#==================================================================================================
|
|
12
|
+
|
|
1
13
|
# http://editorconfig.org
|
|
2
14
|
root = true
|
|
3
15
|
|
|
@@ -57,3 +69,7 @@ indent_style = space
|
|
|
57
69
|
|
|
58
70
|
[{Makefile,**.mk,**.make}]
|
|
59
71
|
indent_style = tab
|
|
72
|
+
|
|
73
|
+
#==================================================================================================
|
|
74
|
+
# ⬇ Add Project specific rules below ⬇
|
|
75
|
+
#==================================================================================================
|
package/editorconfig/index.js
CHANGED
|
@@ -3,12 +3,12 @@ const { blockSync } = require('@w5s/dev');
|
|
|
3
3
|
const { vscodeRecommendedExtension } = require('../core/vscode.js');
|
|
4
4
|
|
|
5
5
|
function task() {
|
|
6
|
-
const templateContent = readFileSync(require.resolve('./_editorconfig'), 'utf8');
|
|
6
|
+
const templateContent = readFileSync(require.resolve('./_editorconfig'), 'utf8').slice(0, -1);
|
|
7
7
|
|
|
8
8
|
blockSync({
|
|
9
9
|
block: templateContent,
|
|
10
10
|
path: '.editorconfig',
|
|
11
|
-
insertPosition: ['
|
|
11
|
+
insertPosition: ['before', 'BeginningOfFile'],
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
vscodeRecommendedExtension({
|
package/eslint/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const { packageJson } = require('mrm-core');
|
|
2
2
|
const pkg = require('../core/pkg.js');
|
|
3
3
|
const npm = require('../core/npm.js');
|
|
4
|
-
const { gitIgnore } = require('../core/git.js');
|
|
5
4
|
const { eslintConfig } = require('../core/eslint.js');
|
|
6
5
|
const project = require('../core/project.js');
|
|
7
6
|
const { vscodeSettings, vscodeRecommendedExtension } = require('../core/vscode.js');
|
|
@@ -21,9 +20,6 @@ function createESLint({ eslintPreset: eslintPresetDefault = 'eslint:recommended'
|
|
|
21
20
|
const hasJSON = true;
|
|
22
21
|
const hasYAML = true;
|
|
23
22
|
|
|
24
|
-
// Should be added first
|
|
25
|
-
gitIgnore('ESLint', ['.eslintcache']);
|
|
26
|
-
|
|
27
23
|
// Dependencies
|
|
28
24
|
npm.dependency({
|
|
29
25
|
dev: true,
|
package/gitignore/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const {
|
|
1
|
+
const { gitIgnore } = require('../core/git.js');
|
|
2
2
|
|
|
3
3
|
function task() {
|
|
4
|
-
|
|
4
|
+
gitIgnore(['macOS', 'NodeJS', 'VisualStudioCode']);
|
|
5
5
|
}
|
|
6
6
|
task.description = 'Adds Gitignore file';
|
|
7
7
|
|
package/lang/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const path = require('node:path');
|
|
2
2
|
const { json, file, template, packageJson } = require('mrm-core');
|
|
3
3
|
const npm = require('../core/npm.js');
|
|
4
|
-
const { gitIgnore } = require('../core/git.js');
|
|
5
4
|
const project = require('../core/project.js');
|
|
6
5
|
// const { typedoc } = require('../core/typedoc.js');
|
|
7
6
|
const pkg = require('../core/pkg.js');
|
|
@@ -32,9 +31,6 @@ function createLang({ language: languageDefault = 'typescript', tsConfig: tsConf
|
|
|
32
31
|
const tsConfigSettings = json(tsConfigSettingsName);
|
|
33
32
|
const tsConfig = json('tsconfig.json');
|
|
34
33
|
|
|
35
|
-
// Should be run first
|
|
36
|
-
gitIgnore('Typescript', ['lib/', 'dist/', '*.tsbuildinfo', 'typings/']);
|
|
37
|
-
|
|
38
34
|
// const excludeList = ['**/*.test.*', '**/*.spec.*', '**/__tests__/**'];
|
|
39
35
|
if (hasWorkspaces) {
|
|
40
36
|
tsConfig
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/mrm-preset",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Mrm configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mrm",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "b6025c8720d5f700b477d5d144dc6865a29f9f15"
|
|
41
41
|
}
|
package/package.json.backup
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/mrm-preset",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Mrm configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mrm",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "b6025c8720d5f700b477d5d144dc6865a29f9f15"
|
|
60
60
|
}
|