@blockquote/create-wc 1.3.0 → 1.4.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/README.md CHANGED
@@ -18,6 +18,7 @@ This scaffold generator extends and customizes the core parts of [@open-wc/creat
18
18
  - TypeScript
19
19
 
20
20
  - ### [sass](https://github.com/oscarmarina/sass-style-template)
21
+
21
22
  - SCSS watcher with autoprefixer
22
23
 
23
24
  - ### miscellany
@@ -152,6 +153,17 @@ npm run sass:watch
152
153
  <hr>
153
154
  <br>
154
155
 
156
+ ## TypeScript
157
+
158
+ ### build ts
159
+
160
+ ```bash
161
+ npm run build
162
+ ```
163
+
164
+ <hr>
165
+ <br>
166
+
155
167
  ### Start:
156
168
 
157
169
  #### `"start": "concurrently -k -r \"npm:sass:watch\" \"npm:vite\""`
@@ -160,6 +172,10 @@ npm run sass:watch
160
172
  npm start
161
173
  ```
162
174
 
175
+ Example:
176
+
177
+ ### [open-wc-vitejs-sass](https://github.com/oscarmarina/open-wc-vitejs-sass)
178
+
163
179
  <hr>
164
180
  <br>
165
181
 
@@ -218,6 +234,7 @@ open-wc scaffold
218
234
  <hr>
219
235
 
220
236
  ### the component definition is generated in its own folder
237
+
221
238
  ```css
222
239
  ./
223
240
  ├── my-el/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockquote/create-wc",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Web component with Lit scaffolding - Extending Open Web Component",
5
5
  "keywords": [
6
6
  "LitElement",
@@ -1,6 +1,4 @@
1
- /**
2
- * https://vite-rollup-plugins.patak.dev/
3
- */
1
+ /* eslint-disable implicit-arrow-linebreak */
4
2
  import { defineConfig } from 'vite';
5
3
  import pluginHtml from '@web/rollup-plugin-html';
6
4
  import copy from 'rollup-plugin-copy';
@@ -53,21 +51,24 @@ const copyConfig = {
53
51
  hook: 'writeBundle',
54
52
  };
55
53
 
56
- // https://vitejs.dev/config/
54
+ /**
55
+ * https://vitejs.dev/config/
56
+ * https://vite-rollup-plugins.patak.dev/
57
+ */
57
58
 
58
59
  export default defineConfig({
59
60
  plugins: [
60
61
  pluginHtml({
61
62
  transformHtml: [
62
- (html) =>
63
+ html =>
63
64
  html.replace(
64
65
  '<meta charset="utf-8">',
65
66
  `<meta charset="utf-8">
66
- <script src="./web_modules/@ungap/global-this/index.js"></script>
67
- <script src="./web_modules/tiny-array-flat-polyfill/tiny-array-flat-polyfill.min.js"></script>
68
- <script src="./web_modules/lit/polyfill-support.js"></script>
69
- <script src="./web_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
70
- <script src="./web_modules/@webcomponents/shadycss/custom-style-interface.min.js"></script>`,
67
+ <script src="./web_modules/@ungap/global-this/index.js"></script>
68
+ <script src="./web_modules/tiny-array-flat-polyfill/tiny-array-flat-polyfill.min.js"></script>
69
+ <script src="./web_modules/lit/polyfill-support.js"></script>
70
+ <script src="./web_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
71
+ <script src="./web_modules/@webcomponents/shadycss/custom-style-interface.min.js"></script>`,
71
72
  ),
72
73
  ],
73
74
  }),
@@ -78,7 +79,6 @@ export default defineConfig({
78
79
  ],
79
80
  build: {
80
81
  target: ['edge18'],
81
- minify: 'terser',
82
82
  outDir: 'dev',
83
83
  rollupOptions: {
84
84
  input: 'demo/*.html',