@w5s/mrm-preset 1.0.0-alpha.12 → 1.0.0-alpha.15

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.
@@ -1 +1 @@
1
- @w5s/mrm-preset:lint: cache hit, replaying output c6d20a5c67e4158c
1
+ @w5s/mrm-preset:lint: cache hit, replaying output 7a156f0ef5a5522e
package/CHANGELOG.md CHANGED
@@ -3,6 +3,40 @@
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.15](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.0-alpha.14...@w5s/mrm-preset@1.0.0-alpha.15) (2022-06-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * remove test from build ([506f19d](https://github.com/w5s/project-config/commit/506f19d71b3fc16613d37d10c022a08dbcf70376))
12
+
13
+
14
+
15
+
16
+
17
+ # [1.0.0-alpha.14](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.0-alpha.13...@w5s/mrm-preset@1.0.0-alpha.14) (2022-06-10)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * add prepare task to turbo configuration ([717d59a](https://github.com/w5s/project-config/commit/717d59a724c1de8cb37f37c23aae8f4cc57fc231))
23
+ * remove --quiet option on format ([268b0a7](https://github.com/w5s/project-config/commit/268b0a76dbd03cfa6729988472948a66e2b749c9))
24
+
25
+
26
+
27
+
28
+
29
+ # [1.0.0-alpha.13](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.0-alpha.12...@w5s/mrm-preset@1.0.0-alpha.13) (2022-06-07)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * improve cspell output ([a5721b5](https://github.com/w5s/project-config/commit/a5721b5c8e97817dc68e9444f4443d3cb7893a27))
35
+
36
+
37
+
38
+
39
+
6
40
  # [1.0.0-alpha.12](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.0-alpha.11...@w5s/mrm-preset@1.0.0-alpha.12) (2022-06-07)
7
41
 
8
42
 
package/core/jest.js CHANGED
@@ -15,31 +15,26 @@ function jest({ state }) {
15
15
  const hasWorkspaces = pkg.hasWorkspaces(packageFileDefault);
16
16
 
17
17
  pkg.withPackageJson((packageFile) => {
18
- if (hasJest) {
19
- if (hasWorkspaces) {
20
- pkg.value(packageFile, {
21
- path: 'jest',
22
- state: 'present',
23
- update: () => ({
18
+ const ignorePatterns = ['/node_modules/', '/docs/', '/lib/', '/build/', '/.cache/', '/public/'];
19
+
20
+ pkg.value(packageFile, {
21
+ path: 'jest',
22
+ state: hasJest ? 'present' : 'absent',
23
+ update: hasWorkspaces
24
+ ? () => ({
24
25
  preset: 'es-jest',
25
26
  projects: packageFile
26
27
  .get('workspaces.packages', packageFile.get('workspaces', []))
27
28
  .map((/** @type {string} */ workspace) => `<rootDir>/${workspace}`),
28
- }),
29
- });
30
- } else {
31
- const ignorePatterns = ['/node_modules/', '/docs/', '/lib/', '/build/', '/.cache/', '/public/'];
32
- packageFile.merge({
33
- jest: {
29
+ })
30
+ : (config) => ({
31
+ ...config,
34
32
  preset: 'es-jest',
35
33
  coveragePathIgnorePatterns: ignorePatterns,
36
34
  testPathIgnorePatterns: ignorePatterns,
37
- },
38
- });
39
- }
40
- } else {
41
- packageFile.unset('jest');
42
- }
35
+ }),
36
+ default: {},
37
+ });
43
38
 
44
39
  pkg.script(packageFile, {
45
40
  name: project.coverage,
package/cspell/index.js CHANGED
@@ -25,16 +25,19 @@ function task() {
25
25
 
26
26
  pkg.withPackageJson((packageFile) => {
27
27
  const hasWorkspaces = pkg.hasWorkspaces(packageFile);
28
+ const workspaceMatchers = pkg.listWorkspaceMatchers(packageFile);
28
29
  pkg.script(packageFile, {
29
30
  name: project.spellcheck,
30
- script: `cspell ${hasWorkspaces ? `'*' --silent && turbo run spellcheck` : '**'}`,
31
+ script: `cspell --no-progress '**' ${
32
+ hasWorkspaces ? `${workspaceMatchers.map((_) => `--exclude='${_}/**'`).join(' ')} && turbo run spellcheck` : ''
33
+ }`,
31
34
  state: 'present',
32
35
  });
33
36
  });
34
37
  pkg.forEachWorkspace(({ packageFile }) => {
35
38
  pkg.script(packageFile, {
36
39
  name: project.spellcheck,
37
- script: `cspell '**' --silent`,
40
+ script: `cspell --no-progress '**'`,
38
41
  state: 'present',
39
42
  });
40
43
  });
package/eslint/index.js CHANGED
@@ -110,7 +110,7 @@ function createESLint({ eslintPreset: eslintPresetDefault = 'eslint:recommended'
110
110
  });
111
111
  pkg.script(packageFile, {
112
112
  name: `${project.format}:src`,
113
- script: `eslint . --quiet --fix${extOption}`,
113
+ script: `eslint . --fix${extOption}`,
114
114
  state: !hasWorkspaces ? 'present' : 'absent',
115
115
  });
116
116
  });
@@ -122,7 +122,7 @@ function createESLint({ eslintPreset: eslintPresetDefault = 'eslint:recommended'
122
122
  });
123
123
  pkg.script(packageFile, {
124
124
  name: project.format,
125
- script: `eslint . --quiet --fix${extOption}`,
125
+ script: `eslint . -fix${extOption}`,
126
126
  state: 'default',
127
127
  });
128
128
  });
package/lang/index.js CHANGED
@@ -37,6 +37,7 @@ function createLang({ language: languageDefault = 'typescript', tsConfig: tsConf
37
37
  gitIgnore('Typescript', ['lib/', '*.tsbuildinfo', 'typings/']);
38
38
  eslintIgnore(['lib/']);
39
39
 
40
+ const excludeList = ['**/*.test.*', '**/*.spec.*', '**/__tests__/**'];
40
41
  if (hasWorkspaces) {
41
42
  tsConfig
42
43
  .unset('compilerOptions.rootDir')
@@ -45,6 +46,7 @@ function createLang({ language: languageDefault = 'typescript', tsConfig: tsConf
45
46
  .merge({
46
47
  $schema: 'https://json.schemastore.org/tsconfig',
47
48
  extends: `./${tsConfigSettingsName}`,
49
+ exclude: excludeList,
48
50
  })
49
51
  .save();
50
52
 
@@ -66,6 +68,7 @@ function createLang({ language: languageDefault = 'typescript', tsConfig: tsConf
66
68
  },
67
69
  extends: `./${tsConfigSettingsName}`,
68
70
  include: ['./src'],
71
+ exclude: excludeList,
69
72
  })
70
73
  .save();
71
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/mrm-preset",
3
- "version": "1.0.0-alpha.12",
3
+ "version": "1.0.0-alpha.15",
4
4
  "description": "Mrm configuration presets",
5
5
  "keywords": [
6
6
  "mrm",
@@ -24,9 +24,9 @@
24
24
  "build:empty": ":",
25
25
  "build:tsc": "tsc --noEmit --skipLibCheck",
26
26
  "docs": "md-magic --path '**/*.md' --ignore='node_modules'",
27
- "format": "eslint . --quiet --fix --ext=mjs,cjs,js,jsx,ts,tsx,json",
27
+ "format": "eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json",
28
28
  "lint": "eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json",
29
- "spellcheck": "cspell '**' --silent",
29
+ "spellcheck": "cspell --no-progress '**'",
30
30
  "test": "mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir .."
31
31
  },
32
32
  "dependencies": {
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "061ae0ed0c8a92c5e35939374a633a06b0b8e6ba"
50
+ "gitHead": "26bed145087188b4197769c8867f914df8673255"
51
51
  }
package/project/index.js CHANGED
@@ -215,6 +215,7 @@ function task() {
215
215
  },
216
216
  [project.test]: {},
217
217
  [project.lint]: {},
218
+ [project.prepare]: {},
218
219
  [project.format]: {},
219
220
  [project.docs]: {},
220
221
  [project.spellcheck]: {},
@@ -1 +0,0 @@
1
- @w5s/mrm-preset:build: cache hit, replaying output 994c85676b160cb0
@@ -1,43 +0,0 @@
1
- @w5s/mrm-preset:docs: cache hit, replaying output 131c211b32191d83
2
- @w5s/mrm-preset:docs: Starting markdown-magic [ '**/*.md', '!node_modules/**' ]
3
- @w5s/mrm-preset:docs: ℹ Notice:
4
- @w5s/mrm-preset:docs:  Missing transforms "BASIC_RULES","JSX_RULES" in _tester/node_modules/eslint-plugin-react/README.md
5
- @w5s/mrm-preset:docs: 
6
- @w5s/mrm-preset:docs: ✔ README.md Updated
7
- @w5s/mrm-preset:docs:  Transforms run
8
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s Mrm Preset _(${name})_
9
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
10
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
11
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
12
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
13
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
14
- @w5s/mrm-preset:docs: 
15
- @w5s/mrm-preset:docs: ✔ _tester/node_modules/@w5s/mrm-preset/README.md Updated
16
- @w5s/mrm-preset:docs:  Transforms run
17
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s Mrm Preset _(${name})_
18
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
19
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
20
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
21
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
22
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
23
- @w5s/mrm-preset:docs: 
24
- @w5s/mrm-preset:docs: ✔ _tester/node_modules/@w5s/eslint-config/README.md Updated
25
- @w5s/mrm-preset:docs:  Transforms run
26
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s ESLint configuration _(${name})_
27
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
28
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=```console\nnpm install --save-dev ${name}\n```
29
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
30
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
31
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
32
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
33
- @w5s/mrm-preset:docs: 
34
- @w5s/mrm-preset:docs: ✔ _tester/node_modules/@w5s/ts-config/README.md Updated
35
- @w5s/mrm-preset:docs:  Transforms run
36
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s Typescript configuration _(${name})_
37
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
38
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=```console\nnpm install --save-dev ${name}\n```
39
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
40
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
41
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
42
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
43
- @w5s/mrm-preset:docs: 
@@ -1 +0,0 @@
1
- @w5s/mrm-preset:format: cache hit, replaying output d9ab8a49347bb8ce
@@ -1 +0,0 @@
1
- @w5s/mrm-preset:spellcheck: cache hit, replaying output 5cc5aa314340b1a0
@@ -1,21 +0,0 @@
1
- @w5s/mrm-preset:test: cache hit, replaying output c894bb585090cefd
2
- @w5s/mrm-preset:test: mkdir: _tester: File exists
3
- @w5s/mrm-preset:test: Running bootstrap...
4
- @w5s/mrm-preset:test: Running alias configure...
5
- @w5s/mrm-preset:test: Running gitignore...
6
- @w5s/mrm-preset:test: Running project...
7
- @w5s/mrm-preset:test: Update package.json
8
- @w5s/mrm-preset:test: Running contributing...
9
- @w5s/mrm-preset:test: Running release...
10
- @w5s/mrm-preset:test: Running ci...
11
- @w5s/mrm-preset:test: Running lang...
12
- @w5s/mrm-preset:test: Running commitlint...
13
- @w5s/mrm-preset:test: Running editorconfig...
14
- @w5s/mrm-preset:test: Running eslint...
15
- @w5s/mrm-preset:test: Update package.json
16
- @w5s/mrm-preset:test: Running cspell...
17
- @w5s/mrm-preset:test: Running jest...
18
- @w5s/mrm-preset:test: Update package.json
19
- @w5s/mrm-preset:test: Running renovate...
20
- @w5s/mrm-preset:test: Running githooks...
21
- @w5s/mrm-preset:test: Running postconfigure...