@blockquote/create-wc 1.26.0 → 1.27.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/package.json +3 -3
- package/src/app/gatherMixins.js +0 -1
- package/src/app/index.js +1 -4
- package/src/common-linting/index.js +2 -2
- package/src/common-linting/templates/package.json +2 -2
- package/src/common-repo/templates/package.json +2 -2
- package/src/common-testing-wtr/index.js +2 -2
- package/src/linting/index.js +1 -7
- package/src/linting-eslint/index.js +1 -1
- package/src/linting-eslint-ts/index.js +1 -1
- package/src/linting-eslint-ts/templates/package.json +2 -2
- package/src/linting-prettier/index.js +1 -1
- package/src/linting-prettier-ts/index.js +1 -1
- package/src/linting-ts/index.js +1 -1
- package/src/testing-ts/index.js +2 -2
- package/src/testing-wtr-ts/index.js +1 -1
- package/src/wc-lit-element/index.js +6 -2
- package/src/wc-lit-element-ts/index.js +1 -1
- package/src/wc-lit-element-ts/templates/tsconfig.json +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/create-wc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.0",
|
|
4
4
|
"description": "Web component with Lit scaffolding - Extending Open Web Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"LitElement",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"chalk": "^5.3.0",
|
|
44
44
|
"command-line-args": "^5.2.1",
|
|
45
45
|
"prompts": "^2.4.2",
|
|
46
|
-
"semver": "^7.5.
|
|
46
|
+
"semver": "^7.5.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@open-wc/eslint-config": "^12.0.0",
|
|
50
50
|
"eslint": "^8.44.0",
|
|
51
51
|
"eslint-config-prettier": "^8.8.0",
|
|
52
|
-
"prettier": "^
|
|
52
|
+
"prettier": "^3.0.0"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=14.15.0"
|
package/src/app/gatherMixins.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { CommonLintingMixin } from '../common-linting/index.js';
|
|
3
3
|
import { CommonTestingWtrMixin } from '../common-testing-wtr/index.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
import { LintingMixin } from '../linting/index.js';
|
|
7
6
|
import { WcLitElementPackageMixin } from '../wc-lit-element/index.js';
|
|
8
7
|
import { TestingMixin, TestingScaffoldMixin } from '../testing/index.js';
|
package/src/app/index.js
CHANGED
|
@@ -42,10 +42,7 @@ export const AppMixin = (subclass) =>
|
|
|
42
42
|
type: (prev, all) => (all.nameSpaceSelect === 'true' ? 'text' : null),
|
|
43
43
|
name: 'nameSpace',
|
|
44
44
|
message: 'What is the namespace of your web component',
|
|
45
|
-
validate: (nameSpace) =>
|
|
46
|
-
/^[@]/.test(nameSpace)
|
|
47
|
-
? 'Without @'
|
|
48
|
-
: true,
|
|
45
|
+
validate: (nameSpace) => (/^[@]/.test(nameSpace) ? 'Without @' : true),
|
|
49
46
|
},
|
|
50
47
|
{
|
|
51
48
|
type: 'select',
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"eslint-plugin-log-filenames": "^1.0.6",
|
|
94
94
|
"husky": "^8.0.3",
|
|
95
95
|
"lint-staged": "^13.2.3",
|
|
96
|
-
"prettier": "^
|
|
97
|
-
"stylelint": "^15.
|
|
96
|
+
"prettier": "^3.0.0",
|
|
97
|
+
"stylelint": "^15.10.1",
|
|
98
98
|
"stylelint-config-standard-scss": "^10.0.0"
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"concurrently": "^8.2.0",
|
|
37
37
|
"rollup-plugin-copy": "^3.4.0",
|
|
38
38
|
"tiny-array-flat-polyfill": "^0.2.1",
|
|
39
|
-
"vite": "^4.3
|
|
40
|
-
"sort-package-json": "^2.5.
|
|
39
|
+
"vite": "^4.4.3",
|
|
40
|
+
"sort-package-json": "^2.5.1"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
package/src/linting/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { LintingPrettierMixin } from '../linting-prettier/index.js';
|
|
|
7
7
|
const __filename = fileURLToPath(import.meta.url);
|
|
8
8
|
const __dirname = dirname(__filename);
|
|
9
9
|
|
|
10
|
-
export const LintingMixin = subclass =>
|
|
10
|
+
export const LintingMixin = (subclass) =>
|
|
11
11
|
class extends LintingPrettierMixin(LintingEsLintMixin(subclass)) {
|
|
12
12
|
async execute() {
|
|
13
13
|
await super.execute();
|
|
@@ -19,9 +19,3 @@ export const LintingMixin = subclass =>
|
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
@@ -4,7 +4,7 @@ import { dirname } from 'path';
|
|
|
4
4
|
const __filename = fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = dirname(__filename);
|
|
6
6
|
|
|
7
|
-
export const LintingEsLintMixin = subclass =>
|
|
7
|
+
export const LintingEsLintMixin = (subclass) =>
|
|
8
8
|
class extends subclass {
|
|
9
9
|
async execute() {
|
|
10
10
|
await super.execute();
|
|
@@ -4,7 +4,7 @@ import { dirname } from 'path';
|
|
|
4
4
|
const __filename = fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = dirname(__filename);
|
|
6
6
|
|
|
7
|
-
export const TsLintingEsLintMixin = subclass =>
|
|
7
|
+
export const TsLintingEsLintMixin = (subclass) =>
|
|
8
8
|
class extends subclass {
|
|
9
9
|
async execute() {
|
|
10
10
|
await super.execute();
|
|
@@ -4,7 +4,7 @@ import { dirname } from 'path';
|
|
|
4
4
|
const __filename = fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = dirname(__filename);
|
|
6
6
|
|
|
7
|
-
export const LintingPrettierMixin = subclass =>
|
|
7
|
+
export const LintingPrettierMixin = (subclass) =>
|
|
8
8
|
class extends subclass {
|
|
9
9
|
async execute() {
|
|
10
10
|
await super.execute();
|
|
@@ -4,7 +4,7 @@ import { dirname } from 'path';
|
|
|
4
4
|
const __filename = fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = dirname(__filename);
|
|
6
6
|
|
|
7
|
-
export const TsLintingPrettierMixin = subclass =>
|
|
7
|
+
export const TsLintingPrettierMixin = (subclass) =>
|
|
8
8
|
class extends subclass {
|
|
9
9
|
async execute() {
|
|
10
10
|
await super.execute();
|
package/src/linting-ts/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { TsLintingPrettierMixin } from '../linting-prettier-ts/index.js';
|
|
|
7
7
|
const __filename = fileURLToPath(import.meta.url);
|
|
8
8
|
const __dirname = dirname(__filename);
|
|
9
9
|
|
|
10
|
-
export const TsLintingMixin = subclass =>
|
|
10
|
+
export const TsLintingMixin = (subclass) =>
|
|
11
11
|
class extends TsLintingPrettierMixin(TsLintingEsLintMixin(subclass)) {
|
|
12
12
|
async execute() {
|
|
13
13
|
await super.execute();
|
package/src/testing-ts/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { TsTestingWebTestRunnerMixin } from '../testing-wtr-ts/index.js';
|
|
|
6
6
|
const __filename = fileURLToPath(import.meta.url);
|
|
7
7
|
const __dirname = dirname(__filename);
|
|
8
8
|
|
|
9
|
-
export const TsTestingMixin = subclass =>
|
|
9
|
+
export const TsTestingMixin = (subclass) =>
|
|
10
10
|
class extends TsTestingWebTestRunnerMixin(subclass) {
|
|
11
11
|
async execute() {
|
|
12
12
|
await super.execute();
|
|
@@ -18,7 +18,7 @@ export const TsTestingMixin = subclass =>
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
export const TsTestingScaffoldMixin = subclass =>
|
|
21
|
+
export const TsTestingScaffoldMixin = (subclass) =>
|
|
22
22
|
class extends subclass {
|
|
23
23
|
async execute() {
|
|
24
24
|
await super.execute();
|
|
@@ -4,7 +4,7 @@ import { dirname } from 'path';
|
|
|
4
4
|
const __filename = fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = dirname(__filename);
|
|
6
6
|
|
|
7
|
-
export const TsTestingWebTestRunnerMixin = subclass =>
|
|
7
|
+
export const TsTestingWebTestRunnerMixin = (subclass) =>
|
|
8
8
|
class extends subclass {
|
|
9
9
|
async execute() {
|
|
10
10
|
await super.execute();
|
|
@@ -7,7 +7,12 @@ import { CommonRepoMixin } from '../common-repo/index.js';
|
|
|
7
7
|
const __filename = fileURLToPath(import.meta.url);
|
|
8
8
|
const __dirname = dirname(__filename);
|
|
9
9
|
|
|
10
|
-
const compose = (...fns) =>
|
|
10
|
+
const compose = (...fns) =>
|
|
11
|
+
fns.reduce(
|
|
12
|
+
(f, g) =>
|
|
13
|
+
(...args) =>
|
|
14
|
+
f(g(...args)),
|
|
15
|
+
);
|
|
11
16
|
const safeReduce = (f, initial) => (xs) => (Array.isArray(xs) ? xs.reduce(f, initial) : xs);
|
|
12
17
|
|
|
13
18
|
const getTemplatePart = compose(processTemplate, readFileFromPath);
|
|
@@ -23,7 +28,6 @@ function featureReadme(acc, feature, i, a) {
|
|
|
23
28
|
|
|
24
29
|
const safeFeatureReadme = safeReduce(featureReadme, '');
|
|
25
30
|
|
|
26
|
-
|
|
27
31
|
/* eslint-disable no-console */
|
|
28
32
|
export const WcLitElementMixin = (subclass) =>
|
|
29
33
|
class extends subclass {
|
|
@@ -13,7 +13,7 @@ const compose = (...fns) =>
|
|
|
13
13
|
(...args) =>
|
|
14
14
|
f(g(...args)),
|
|
15
15
|
);
|
|
16
|
-
const safeReduce = (f, initial) => (xs) => Array.isArray(xs) ? xs.reduce(f, initial) : xs;
|
|
16
|
+
const safeReduce = (f, initial) => (xs) => (Array.isArray(xs) ? xs.reduce(f, initial) : xs);
|
|
17
17
|
|
|
18
18
|
const getTemplatePart = compose(processTemplate, readFileFromPath);
|
|
19
19
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
4
|
-
"lib": ["
|
|
3
|
+
"target": "es2021",
|
|
4
|
+
"lib": ["es2021", "DOM", "DOM.Iterable"],
|
|
5
5
|
"experimentalDecorators": true,
|
|
6
|
-
"useDefineForClassFields": false,
|
|
7
6
|
"module": "es2020",
|
|
8
7
|
"moduleResolution": "bundler",
|
|
9
8
|
"rootDirs": ["./src", "./define", ".test/"],
|
|
9
|
+
"resolveJsonModule": true,
|
|
10
10
|
"declaration": true,
|
|
11
11
|
"declarationMap": true,
|
|
12
12
|
"sourceMap": true,
|
|
13
13
|
"outDir": "./dist",
|
|
14
14
|
"inlineSources": true,
|
|
15
|
+
"isolatedModules": true,
|
|
15
16
|
"allowSyntheticDefaultImports": true,
|
|
16
|
-
"esModuleInterop": true,
|
|
17
17
|
"forceConsistentCasingInFileNames": true,
|
|
18
18
|
"strict": true,
|
|
19
19
|
"noImplicitAny": true,
|