@blockquote/create-wc 1.19.0 → 1.20.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 +1 -1
- package/src/common-linting/templates/package.json +8 -8
- package/src/common-repo/templates/package.json +7 -6
- package/src/common-repo/templates/static/vite.config.js +1 -1
- package/src/linting-eslint-ts/templates/package.json +2 -2
- package/src/testing/templates/package.json +1 -1
- package/src/testing-ts/templates/package.json +1 -1
- package/src/wc-lit-element/templates/package.json +18 -0
- package/src/wc-lit-element/templates/static/demo/index.html +6 -3
- package/src/wc-lit-element-ts/templates/package.json +18 -4
- package/src/wc-lit-element-ts/templates/static/demo/index.html +6 -3
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"scripts": {
|
|
3
3
|
"format": "npm run format:eslint && npm run format:prettier && npm run format:stylelint",
|
|
4
4
|
"format:eslint": "eslint \"**/*.{js,ts,html}\" --fix --ignore-path .eslintignore",
|
|
5
|
-
"format:prettier": "prettier \"**/*.{js,ts,json,html
|
|
5
|
+
"format:prettier": "prettier \"**/*.{js,ts,json,html}\" --write --ignore-path .eslintignore",
|
|
6
6
|
"format:stylelint": "stylelint \"**/*.{scss,css}\" --fix --allow-empty-input --ignore-path .eslintignore",
|
|
7
7
|
"lint": "npm run lint:eslint && npm run lint:prettier && npm run lint:stylelint",
|
|
8
8
|
"lint:eslint": "eslint \"**/*.{js,ts,html}\" --ignore-path .eslintignore",
|
|
9
|
-
"lint:prettier": "prettier \"**/*.{js,ts,json,html
|
|
9
|
+
"lint:prettier": "prettier \"**/*.{js,ts,json,html}\" --check --ignore-path .eslintignore",
|
|
10
10
|
"lint:stylelint": "stylelint \"**/*.{scss,css}\" --allow-empty-input --ignore-path .eslintignore"
|
|
11
11
|
},
|
|
12
12
|
"husky": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"**/*.{js,ts,html}": [
|
|
19
19
|
"npm run format:eslint"
|
|
20
20
|
],
|
|
21
|
-
"**/*.{js,ts,json,html
|
|
21
|
+
"**/*.{js,ts,json,html}": [
|
|
22
22
|
"npm run format:prettier"
|
|
23
23
|
],
|
|
24
24
|
"**/*.{scss,css}": [
|
|
@@ -93,14 +93,14 @@
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@open-wc/eslint-config": "^
|
|
97
|
-
"eslint": "^8.
|
|
96
|
+
"@open-wc/eslint-config": "^9.0.0",
|
|
97
|
+
"eslint": "^8.29.0",
|
|
98
98
|
"eslint-config-prettier": "^8.5.0",
|
|
99
99
|
"eslint-plugin-log-filenames": "^1.0.6",
|
|
100
100
|
"husky": "^4.3.0",
|
|
101
|
-
"lint-staged": "^13.0
|
|
102
|
-
"prettier": "^2.
|
|
103
|
-
"stylelint": "^14.
|
|
101
|
+
"lint-staged": "^13.1.0",
|
|
102
|
+
"prettier": "^2.8.0",
|
|
103
|
+
"stylelint": "^14.16.0",
|
|
104
104
|
"stylelint-config-standard-scss": "^6.1.0"
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"author": "<%= tagName %>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"customElements": "custom-elements.json",
|
|
13
|
+
"type": "module",
|
|
13
14
|
"scripts": {
|
|
14
15
|
"start": "concurrently -k -r \"npm:sass:watch\" \"npm:vite\"",
|
|
15
16
|
"vite": "vite",
|
|
@@ -26,16 +27,16 @@
|
|
|
26
27
|
"@blockquote/rollup-plugin-total-bundlesize": "^1.0.0",
|
|
27
28
|
"@blockquote/sass-style-template": "^2.1.2",
|
|
28
29
|
"@blockquote/coverage-table-reporter": "^1.0.0",
|
|
29
|
-
"@custom-elements-manifest/analyzer": "^0.6.
|
|
30
|
+
"@custom-elements-manifest/analyzer": "^0.6.6",
|
|
30
31
|
"@ungap/global-this": "^0.4.4",
|
|
31
|
-
"@web/dev-server": "^0.1.
|
|
32
|
+
"@web/dev-server": "^0.1.35",
|
|
32
33
|
"@web/rollup-plugin-html": "^1.11.0",
|
|
33
|
-
"@webcomponents/shadycss": "^1.11.
|
|
34
|
-
"@webcomponents/webcomponentsjs": "^2.
|
|
35
|
-
"concurrently": "^7.
|
|
34
|
+
"@webcomponents/shadycss": "^1.11.1",
|
|
35
|
+
"@webcomponents/webcomponentsjs": "^2.7.0",
|
|
36
|
+
"concurrently": "^7.6.0",
|
|
36
37
|
"rollup-plugin-copy": "^3.4.0",
|
|
37
38
|
"tiny-array-flat-polyfill": "^0.2.1",
|
|
38
|
-
"vite": "^3.2.
|
|
39
|
+
"vite": "^3.2.5",
|
|
39
40
|
"sort-package-json": "^2.1.0"
|
|
40
41
|
},
|
|
41
42
|
"publishConfig": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2
2
|
import { defineConfig } from 'vite';
|
|
3
|
-
import pluginHtml from '@web/rollup-plugin-html';
|
|
3
|
+
import { rollupPluginHTML as pluginHtml } from '@web/rollup-plugin-html';
|
|
4
4
|
import copy from 'rollup-plugin-copy';
|
|
5
5
|
import totalBundlesize from '@blockquote/rollup-plugin-total-bundlesize';
|
|
6
6
|
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"exports": {
|
|
3
|
+
".": {
|
|
4
|
+
"default": "./index.js"
|
|
5
|
+
},
|
|
6
|
+
"./package.json": "./package.json",
|
|
7
|
+
"./src/<%= className %>.js": {
|
|
8
|
+
"default": "./src/<%= className %>.js"
|
|
9
|
+
},
|
|
10
|
+
"./define/<%= tagName %>.js": {
|
|
11
|
+
"default": "./define/<%= tagName %>.js"
|
|
12
|
+
},
|
|
13
|
+
"./index.js": {
|
|
14
|
+
"default": "./index.js"
|
|
15
|
+
},
|
|
16
|
+
"./src/styles/<%= className %>-styles.js": {
|
|
17
|
+
"default": "./src/styles/<%= className %>-styles.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
2
20
|
"main": "index.js",
|
|
3
21
|
"module": "index.js",
|
|
4
22
|
"files": [
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
<title>Demo <%= tagName %></title>
|
|
4
|
+
<title>Demo - <%= tagName %></title>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<meta charset="utf-8" />
|
|
7
|
-
<meta name="description" content="<%= tagName %>"
|
|
7
|
+
<meta name="description" content="<%= tagName %>" />
|
|
8
8
|
<style>
|
|
9
|
+
html,
|
|
9
10
|
body {
|
|
10
|
-
|
|
11
|
+
height: 100%;
|
|
12
|
+
margin: 0;
|
|
13
|
+
font-family: sans-serif;
|
|
11
14
|
}
|
|
12
15
|
</style>
|
|
13
16
|
</head>
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"exports": {
|
|
3
|
-
".":
|
|
4
|
-
|
|
3
|
+
".": {
|
|
4
|
+
"default": "./dist/index.js"
|
|
5
|
+
},
|
|
6
|
+
"./package.json": "./package.json",
|
|
7
|
+
"./src/<%= className %>.js": {
|
|
8
|
+
"default": "./dist/src/<%= className %>.js"
|
|
9
|
+
},
|
|
10
|
+
"./define/<%= tagName %>.js": {
|
|
11
|
+
"default": "./dist/define/<%= tagName %>.js"
|
|
12
|
+
},
|
|
13
|
+
"./index.js": {
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./src/styles/<%= className %>-styles.js": {
|
|
17
|
+
"default": "./dist/src/styles/<%= className %>-styles.js"
|
|
18
|
+
}
|
|
5
19
|
},
|
|
6
20
|
"main": "dist/index.js",
|
|
7
21
|
"module": "dist/index.js",
|
|
@@ -18,7 +32,7 @@
|
|
|
18
32
|
"wds": "web-dev-server"
|
|
19
33
|
},
|
|
20
34
|
"devDependencies": {
|
|
21
|
-
"tslib": "^2.4.
|
|
22
|
-
"typescript": "^4.
|
|
35
|
+
"tslib": "^2.4.1",
|
|
36
|
+
"typescript": "^4.9.3"
|
|
23
37
|
}
|
|
24
38
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
<title>Demo <%= tagName %></title>
|
|
4
|
+
<title>Demo - <%= tagName %></title>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<meta charset="utf-8" />
|
|
7
|
-
<meta name="description" content="<%= tagName %>"
|
|
7
|
+
<meta name="description" content="<%= tagName %>" />
|
|
8
8
|
<style>
|
|
9
|
+
html,
|
|
9
10
|
body {
|
|
10
|
-
|
|
11
|
+
height: 100%;
|
|
12
|
+
margin: 0;
|
|
13
|
+
font-family: sans-serif;
|
|
11
14
|
}
|
|
12
15
|
</style>
|
|
13
16
|
</head>
|