@w5s/mrm-preset 1.0.0-alpha.14 → 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 55431f2ab0e89fe7
1
+ @w5s/mrm-preset:lint: cache hit, replaying output 7a156f0ef5a5522e
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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
+
6
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)
7
18
 
8
19
 
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/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.14",
3
+ "version": "1.0.0-alpha.15",
4
4
  "description": "Mrm configuration presets",
5
5
  "keywords": [
6
6
  "mrm",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "55a9106dcf41315e4a1e0fa73b912853c6cf6f06"
50
+ "gitHead": "26bed145087188b4197769c8867f914df8673255"
51
51
  }
@@ -1 +0,0 @@
1
- @w5s/mrm-preset:build: cache hit, replaying output c6b4f1c7f63e49b4
@@ -1,43 +0,0 @@
1
- @w5s/mrm-preset:docs: cache hit, replaying output 744547a9c29d1593
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 3dd24b3a1f0380bc
@@ -1,2 +0,0 @@
1
- @w5s/mrm-preset:spellcheck: cache hit, replaying output 75ba9a88a70f28ba
2
- @w5s/mrm-preset:spellcheck: CSpell: Files checked: 49, Issues found: 0 in 0 files
@@ -1,21 +0,0 @@
1
- @w5s/mrm-preset:test: cache hit, replaying output a48676b2c6596bd4
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...