@virmator/init 13.0.3 → 13.0.5

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/README.md CHANGED
@@ -16,6 +16,7 @@ A default plugin for [virmator](https://www.npmjs.com/package/virmator).
16
16
  - .github/workflows/tagged-release.yml
17
17
  - .github/workflows/tests.yml
18
18
  - .github/workflows/tests.yml
19
+ - .vscode/settings.json
19
20
  - src/ui/elements/vir-app.element.ts
20
21
  - src/index.html
21
22
  - www-static/index.css
@@ -0,0 +1,2 @@
1
+ # helps with line endings for Windows in automated tests
2
+ * text=auto eol=lf
@@ -0,0 +1,30 @@
1
+ name: build-for-gh-pages
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - dev
7
+ permissions:
8
+ contents: write
9
+
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress: true
13
+
14
+ jobs:
15
+ build-for-gh-pages:
16
+ runs-on: 'ubuntu-latest'
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4.1.7
20
+ - uses: actions/setup-node@v4.0.3
21
+ with:
22
+ node-version-file: '.nvmrc'
23
+ - name: build
24
+ run: |
25
+ npm ci
26
+ npm run docs
27
+ - uses: JamesIves/github-pages-deploy-action@v4.6.3
28
+ with:
29
+ branch: 'gh-pages'
30
+ folder: 'dist-docs'
@@ -0,0 +1,30 @@
1
+ name: 'tagged-release'
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+ permissions:
8
+ contents: write
9
+
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress: true
13
+
14
+ jobs:
15
+ tagged-release:
16
+ name: 'Tagged Release'
17
+ runs-on: 'ubuntu-latest'
18
+
19
+ steps:
20
+ - uses: actions/checkout@v4.1.7
21
+ - name: numeric version
22
+ uses: softprops/action-gh-release@v2.0.8
23
+ with:
24
+ make_latest: true
25
+
26
+ - name: latest version
27
+ uses: softprops/action-gh-release@v2.0.8
28
+ with:
29
+ make_latest: false
30
+ tag_name: latest
@@ -0,0 +1,34 @@
1
+ name: tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - '**'
7
+
8
+ concurrency:
9
+ group: ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ${{ matrix.os }}
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ os: [ubuntu-latest, windows-latest, macos-latest]
19
+ steps:
20
+ - uses: actions/checkout@v4.1.7
21
+ - name: Use Node.js ${{ matrix.node-version }}
22
+ uses: actions/setup-node@v4.0.3
23
+ with:
24
+ node-version-file: '.nvmrc'
25
+ # handle NPM / Node.js repeatedly bricking their npm setup on Windows
26
+ - if: runner.os == 'Windows'
27
+ shell: bash
28
+ run: |
29
+ npm install npm
30
+ - name: run test
31
+ shell: bash
32
+ run: |
33
+ npm ci
34
+ npm run test:all
@@ -0,0 +1,35 @@
1
+ name: tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - '**'
7
+
8
+ concurrency:
9
+ group: ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ${{ matrix.os }}
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ os: [ubuntu-latest, windows-latest, macos-latest]
19
+ steps:
20
+ - uses: actions/checkout@v4.1.7
21
+ - name: Use Node.js ${{ matrix.node-version }}
22
+ uses: actions/setup-node@v4.0.3
23
+ with:
24
+ node-version-file: '.nvmrc'
25
+ # handle NPM / Node.js repeatedly bricking their npm setup on Windows
26
+ - if: runner.os == 'Windows'
27
+ shell: bash
28
+ run: |
29
+ npm install npm
30
+ - name: run test
31
+ shell: bash
32
+ run: |
33
+ npm ci
34
+ npx playwright install --with-deps
35
+ npm run test:all
@@ -0,0 +1 @@
1
+ 22
@@ -0,0 +1,50 @@
1
+ {
2
+ "[css]": {
3
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
4
+ },
5
+ "[html]": {
6
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
7
+ },
8
+ "[javascript]": {
9
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
10
+ },
11
+ "[javascriptreact]": {
12
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
13
+ },
14
+ "[json]": {
15
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
16
+ },
17
+ "[jsonc]": {
18
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
19
+ },
20
+ "[less]": {
21
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
22
+ },
23
+ "[markdown]": {
24
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
25
+ },
26
+ "[ruby]": {
27
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
28
+ },
29
+ "[scss]": {
30
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
31
+ },
32
+ "[toml]": {
33
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
34
+ },
35
+ "[typescript]": {
36
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
37
+ },
38
+ "[yaml]": {
39
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
40
+ },
41
+ "editor.formatOnSave": true,
42
+ "editor.rulers": [
43
+ 100
44
+ ],
45
+ "editor.wordWrapColumn": 100,
46
+ "files.associations": {
47
+ "*.svg": "html"
48
+ },
49
+ "typescript.tsdk": "node_modules/typescript/lib"
50
+ }
package/dist/init.d.ts CHANGED
@@ -45,6 +45,13 @@ export declare const virmatorInitPlugin: Readonly<Readonly<{
45
45
  readonly packageType: [PackageType.TopPackage, PackageType.MonoRoot];
46
46
  readonly required: false;
47
47
  };
48
+ readonly vscodeSettings: {
49
+ readonly copyFromPath: string;
50
+ readonly copyToPath: string;
51
+ readonly env: [VirmatorEnv.Web, VirmatorEnv.Node];
52
+ readonly packageType: [PackageType.TopPackage, PackageType.MonoRoot];
53
+ readonly required: false;
54
+ };
48
55
  readonly appElement: {
49
56
  readonly copyFromPath: string;
50
57
  readonly copyToPath: string;
@@ -194,6 +201,13 @@ export declare const virmatorInitPlugin: Readonly<Readonly<{
194
201
  readonly packageType: [PackageType.TopPackage, PackageType.MonoRoot];
195
202
  readonly required: false;
196
203
  };
204
+ readonly vscodeSettings: {
205
+ readonly copyFromPath: string;
206
+ readonly copyToPath: string;
207
+ readonly env: [VirmatorEnv.Web, VirmatorEnv.Node];
208
+ readonly packageType: [PackageType.TopPackage, PackageType.MonoRoot];
209
+ readonly required: false;
210
+ };
197
211
  readonly appElement: {
198
212
  readonly copyFromPath: string;
199
213
  readonly copyToPath: string;
package/dist/init.js CHANGED
@@ -59,7 +59,7 @@ export const virmatorInitPlugin = defineVirmatorPlugin(import.meta.dirname, {
59
59
  },
60
60
  configFiles: {
61
61
  ghPages: {
62
- copyFromPath: join('configs', '.github', 'workflows', 'build-for-gh-pages.yml'),
62
+ copyFromPath: join('configs', 'github', 'workflows', 'build-for-gh-pages.yml'),
63
63
  copyToPath: join('.github', 'workflows', 'build-for-gh-pages.yml'),
64
64
  env: [
65
65
  VirmatorEnv.Node,
@@ -72,7 +72,7 @@ export const virmatorInitPlugin = defineVirmatorPlugin(import.meta.dirname, {
72
72
  required: false,
73
73
  },
74
74
  ghTaggedRelease: {
75
- copyFromPath: join('configs', '.github', 'workflows', 'tagged-release.yml'),
75
+ copyFromPath: join('configs', 'github', 'workflows', 'tagged-release.yml'),
76
76
  copyToPath: join('.github', 'workflows', 'tagged-release.yml'),
77
77
  env: [
78
78
  VirmatorEnv.Node,
@@ -85,7 +85,7 @@ export const virmatorInitPlugin = defineVirmatorPlugin(import.meta.dirname, {
85
85
  required: false,
86
86
  },
87
87
  ghTestsNode: {
88
- copyFromPath: join('configs', '.github', 'workflows', 'tests-node.yml'),
88
+ copyFromPath: join('configs', 'github', 'workflows', 'tests-node.yml'),
89
89
  copyToPath: join('.github', 'workflows', 'tests.yml'),
90
90
  env: [
91
91
  VirmatorEnv.Node,
@@ -97,7 +97,7 @@ export const virmatorInitPlugin = defineVirmatorPlugin(import.meta.dirname, {
97
97
  required: false,
98
98
  },
99
99
  ghTestsWeb: {
100
- copyFromPath: join('configs', '.github', 'workflows', 'tests-web.yml'),
100
+ copyFromPath: join('configs', 'github', 'workflows', 'tests-web.yml'),
101
101
  copyToPath: join('.github', 'workflows', 'tests.yml'),
102
102
  env: [
103
103
  VirmatorEnv.Web,
@@ -108,6 +108,19 @@ export const virmatorInitPlugin = defineVirmatorPlugin(import.meta.dirname, {
108
108
  ],
109
109
  required: false,
110
110
  },
111
+ vscodeSettings: {
112
+ copyFromPath: join('configs', 'vscode', 'settings.json'),
113
+ copyToPath: join('.vscode', 'settings.json'),
114
+ env: [
115
+ VirmatorEnv.Web,
116
+ VirmatorEnv.Node,
117
+ ],
118
+ packageType: [
119
+ PackageType.TopPackage,
120
+ PackageType.MonoRoot,
121
+ ],
122
+ required: false,
123
+ },
111
124
  appElement: {
112
125
  copyFromPath: join('configs', 'src', 'ui', 'elements', 'vir-app.element.ts'),
113
126
  copyToPath: join('src', 'ui', 'elements', 'vir-app.element.ts'),
@@ -157,7 +170,7 @@ export const virmatorInitPlugin = defineVirmatorPlugin(import.meta.dirname, {
157
170
  required: false,
158
171
  },
159
172
  gitAttributes: {
160
- copyFromPath: join('configs', '.gitattributes'),
173
+ copyFromPath: join('configs', 'gitattributes.txt'),
161
174
  copyToPath: join('.gitattributes'),
162
175
  env: [
163
176
  VirmatorEnv.Web,
@@ -170,7 +183,7 @@ export const virmatorInitPlugin = defineVirmatorPlugin(import.meta.dirname, {
170
183
  required: false,
171
184
  },
172
185
  nvmrc: {
173
- copyFromPath: join('configs', '.nvmrc'),
186
+ copyFromPath: join('configs', 'nvmrc.txt'),
174
187
  copyToPath: join('.nvmrc'),
175
188
  env: [
176
189
  VirmatorEnv.Web,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/init",
3
- "version": "13.0.3",
3
+ "version": "13.0.5",
4
4
  "description": "Default init plugin for virmator.",
5
5
  "keywords": [
6
6
  "virmator",