@w5s/mrm-preset 1.0.0-alpha.33 → 1.0.0-alpha.35

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,6 +1,6 @@
1
1
  [1] : exited with code 0
2
2
  [tsc]
3
- [tsc] > @w5s/mrm-preset@1.0.0-alpha.32 build:tsc
3
+ [tsc] > @w5s/mrm-preset@1.0.0-alpha.34 build:tsc
4
4
  [tsc] > tsc --noEmit --skipLibCheck
5
5
  [tsc]
6
6
  [tsc] npm run build:tsc exited with code 0
@@ -1,6 +1,6 @@
1
1
  [1] : exited with code 0
2
- [format:*src]
3
- [format:*src] > @w5s/mrm-preset@1.0.0-alpha.29 format:src
4
- [format:*src] > eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
5
- [format:*src]
6
- [format:*src] npm run format:src exited with code 0
2
+ [src]
3
+ [src] > @w5s/mrm-preset@1.0.0-alpha.34 format:src
4
+ [src] > eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
5
+ [src]
6
+ [src] npm run format:src exited with code SIGINT
@@ -1,6 +1,6 @@
1
1
  [1] : exited with code 0
2
2
  [src]
3
- [src] > @w5s/mrm-preset@1.0.0-alpha.32 lint:src
3
+ [src] > @w5s/mrm-preset@1.0.0-alpha.34 lint:src
4
4
  [src] > eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
5
5
  [src]
6
6
  [src] npm run lint:src exited with code 0
@@ -0,0 +1 @@
1
+ CSpell: Files checked: 51, Issues found: 0 in 0 files
@@ -1,5 +1,5 @@
1
1
  [src]
2
- [src] > @w5s/mrm-preset@1.0.0-alpha.32 test:src
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] Running editorconfig...
19
19
  [src] Running eslint...
20
20
  [src] Running cspell...
21
+ [src] Update .cspell.json
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] Running jest...
22
34
  [src] Running renovate...
23
35
  [src] Running githooks...
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.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)
7
+
8
+ **Note:** Version bump only for package @w5s/mrm-preset
9
+
10
+ # [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)
11
+
12
+ **Note:** Version bump only for package @w5s/mrm-preset
13
+
6
14
  # [1.0.0-alpha.33](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.0-alpha.32...@w5s/mrm-preset@1.0.0-alpha.33) (2022-12-12)
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 (PKGJSON:template=# W5s Mrm Preset _(${name})_) -->
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 (PKGJSON:template=> ${description}&unknownTxt= ) -->
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 (PKGJSON:template=[${license}][license-url] © ${author}) -->
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 (PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square) -->
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 (PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}) -->
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 (PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square) -->
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
@@ -21,7 +21,7 @@ const npm = require('./npm.js');
21
21
  function cspell({ state, update }) {
22
22
  const hasCSpell = state === 'present';
23
23
 
24
- const cSpellFile = json('cSpell.json', {
24
+ const cSpellFile = json('.cspell.json', {
25
25
  version: '0.2',
26
26
  language: 'en',
27
27
  words: [],
package/cspell/index.js CHANGED
@@ -1,12 +1,15 @@
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
  ..._,
12
+ import: [preset],
10
13
  ignorePaths: Array.from(
11
14
  new Set([
12
15
  '**/dist/**',
@@ -23,6 +26,11 @@ function task() {
23
26
  ),
24
27
  }),
25
28
  });
29
+ npm.dependency({
30
+ dev: true,
31
+ name: [preset],
32
+ state: 'present',
33
+ });
26
34
 
27
35
  pkg.withPackageJson((packageFile) => {
28
36
  const hasWorkspaces = pkg.hasWorkspaces(packageFile);
@@ -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,,fs,ahk}': {
81
+ '*.{bat,reg,ps1,vbs,cs,cmd,fs,ahk}': {
82
82
  end_of_line: 'crlf',
83
83
  },
84
- '*.{css,scss,less}': {
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,jsx,ts,tsx,js.hbs}': {
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
- '*.{md,mdwn,mdown,markdown,apib}': {
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.33",
3
+ "version": "1.0.0-alpha.35",
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": "a471255b755549d87ea56b49dfe75bd54505b5b0"
54
+ "gitHead": "8208d001778969aa2dbe145ef9a4e9d836ff0c04"
55
55
  }