@blockquote/create-wc 1.0.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/README.md +53 -50
  3. package/package.json +20 -20
  4. package/src/Generator.js +3 -1
  5. package/src/app/gatherMixins.js +26 -12
  6. package/src/app/index.js +29 -18
  7. package/src/common-linting/index.js +18 -0
  8. package/src/common-linting/templates/package.json +41 -0
  9. package/src/common-repo/index.js +8 -0
  10. package/src/common-repo/templates/gitignore +1 -0
  11. package/src/common-repo/templates/package.json +19 -17
  12. package/src/{wc-lit-element → common-repo}/templates/static/index.html +1 -1
  13. package/src/{wc-lit-element → common-repo}/templates/static/vite.config.js +28 -24
  14. package/src/{wc-lit-element → common-repo}/templates/static/web-dev-server.config.mjs +0 -0
  15. package/src/{wc-lit-element → common-repo}/templates/styles/MyEl.scss +1 -0
  16. package/src/common-testing-wtr/index.js +14 -0
  17. package/src/common-testing-wtr/templates/static/web-test-runner.config.mjs +69 -0
  18. package/src/linting/index.js +27 -0
  19. package/src/linting/templates/package.json +1 -0
  20. package/src/linting-eslint/index.js +17 -0
  21. package/src/linting-eslint/templates/package.json +1 -0
  22. package/src/linting-eslint-ts/index.js +17 -0
  23. package/src/linting-eslint-ts/templates/package.json +17 -0
  24. package/src/linting-prettier/index.js +17 -0
  25. package/src/linting-prettier/templates/package.json +1 -0
  26. package/src/linting-prettier-ts/index.js +17 -0
  27. package/src/linting-prettier-ts/templates/package.json +1 -0
  28. package/src/linting-ts/index.js +21 -0
  29. package/src/linting-ts/templates/package.json +1 -0
  30. package/src/testing/templates/my-el.test.js +1 -1
  31. package/src/testing/templates/package.json +2 -1
  32. package/src/testing-ts/index.js +32 -0
  33. package/src/testing-ts/templates/my-el.test.ts +62 -0
  34. package/src/testing-ts/templates/package.json +6 -0
  35. package/src/testing-wtr/index.js +1 -1
  36. package/src/testing-wtr/templates/package.json +3 -6
  37. package/src/testing-wtr/templates/static/{web-test-runner.config.mjs → _web-test-runner.config.mjs} +0 -0
  38. package/src/testing-wtr-ts/index.js +19 -0
  39. package/src/testing-wtr-ts/templates/package.json +6 -0
  40. package/src/testing-wtr-ts/templates/static/_web-test-runner.config.mjs +67 -0
  41. package/src/wc-lit-element/index.js +0 -6
  42. package/src/wc-lit-element/templates/package.json +5 -12
  43. package/src/wc-lit-element-ts/index.js +91 -0
  44. package/src/wc-lit-element-ts/templates/package.json +24 -0
  45. package/src/wc-lit-element/templates/MyEl.js +0 -38
  46. package/src/wc-lit-element/templates/my-el.js +0 -3
  47. package/src/wc-lit-element/templates/partials/README.demoing.md +0 -13
  48. package/src/wc-lit-element/templates/partials/README.linting.md +0 -13
  49. package/src/wc-lit-element/templates/partials/README.testing.md +0 -13
  50. package/src/wc-lit-element/templates/static/README.md +0 -35
  51. package/src/wc-lit-element/templates/static/demo/index.html +0 -29
  52. package/src/wc-lit-element/templates/static/index.js +0 -1
  53. package/src/wc-lit-element/templates/styles/MyEl-styles.js +0 -16
@@ -1,7 +1,8 @@
1
+ /* eslint-disable implicit-arrow-linebreak */
1
2
  import { defineConfig } from 'vite';
2
3
  import pluginHtml from '@web/rollup-plugin-html';
3
4
  import copy from 'rollup-plugin-copy';
4
- import filesize from 'rollup-plugin-filesize';
5
+ import summary from 'rollup-plugin-summary';
5
6
  import minifyHTML from 'rollup-plugin-minify-html-literals';
6
7
 
7
8
  const minifyHTMLLiteralsConfig = {
@@ -12,74 +13,77 @@ const minifyHTMLLiteralsConfig = {
12
13
  },
13
14
  };
14
15
 
15
- const filesizeConfig = {
16
- showGzippedSize: true,
17
- showBrotliSize: false,
18
- showMinifiedSize: false,
19
- };
20
-
21
16
  const copyConfig = {
22
17
  targets: [
23
18
  {
24
19
  src: 'node_modules/@ungap/global-this/index.js',
25
- dest: 'dist/web_modules/@ungap/global-this',
20
+ dest: 'dev/web_modules/@ungap/global-this',
21
+ },
22
+ {
23
+ src: 'node_modules/tiny-array-flat-polyfill/tiny-array-flat-polyfill.min.js',
24
+ dest: 'dev/web_modules/tiny-array-flat-polyfill',
26
25
  },
27
26
  {
28
27
  src: 'node_modules/lit/polyfill-support.js',
29
- dest: 'dist/web_modules/lit',
28
+ dest: 'dev/web_modules/lit',
30
29
  },
31
30
  {
32
31
  src: 'node_modules/lit/polyfill-support.js.map',
33
- dest: 'dist/web_modules/lit',
32
+ dest: 'dev/web_modules/lit',
34
33
  },
35
34
  {
36
35
  src: 'node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js',
37
- dest: 'dist/web_modules/@webcomponents/webcomponentsjs',
36
+ dest: 'dev/web_modules/@webcomponents/webcomponentsjs',
38
37
  },
39
38
  {
40
39
  src: 'node_modules/@webcomponents/webcomponentsjs/bundles',
41
- dest: 'dist/web_modules/@webcomponents/webcomponentsjs',
40
+ dest: 'dev/web_modules/@webcomponents/webcomponentsjs',
42
41
  },
43
42
  {
44
43
  src: 'node_modules/@webcomponents/shadycss/custom-style-interface.min.js',
45
- dest: 'dist/web_modules/@webcomponents/shadycss',
44
+ dest: 'dev/web_modules/@webcomponents/shadycss',
46
45
  },
47
46
  {
48
47
  src: 'node_modules/@webcomponents/shadycss/custom-style-interface.min.js.map',
49
- dest: 'dist/web_modules/@webcomponents/shadycss',
48
+ dest: 'dev/web_modules/@webcomponents/shadycss',
50
49
  },
51
50
  ],
52
51
  hook: 'writeBundle',
53
52
  };
54
53
 
55
- // https://vitejs.dev/config/
54
+ /**
55
+ * https://vitejs.dev/config/
56
+ * https://vite-rollup-plugins.patak.dev/
57
+ */
56
58
 
57
59
  export default defineConfig({
58
60
  plugins: [
59
61
  pluginHtml({
60
62
  transformHtml: [
61
- (html) =>
63
+ html =>
62
64
  html.replace(
63
65
  '<meta charset="utf-8">',
64
- `
65
- <meta charset="utf-8">
66
- <script src="./web_modules/@ungap/global-this/index.js"></script>
67
- <script src="./web_modules/lit/polyfill-support.js"></script>
68
- <script src="./web_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
69
- <script src="./web_modules/@webcomponents/shadycss/custom-style-interface.min.js"></script>`,
66
+ `<meta charset="utf-8">
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>`,
70
72
  ),
71
73
  ],
72
74
  }),
73
75
 
74
76
  minifyHTML(minifyHTMLLiteralsConfig),
75
77
  copy(copyConfig),
76
- filesize(filesizeConfig),
78
+ summary(),
77
79
  ],
78
80
  build: {
81
+ target: ['edge18'],
82
+ outDir: 'dev',
79
83
  rollupOptions: {
80
84
  input: 'demo/*.html',
81
85
  output: {
82
- dir: 'dist/',
86
+ dir: 'dev/',
83
87
  format: 'es',
84
88
  },
85
89
  },
@@ -9,4 +9,5 @@
9
9
 
10
10
  *, *:before, *:after {
11
11
  box-sizing: inherit;
12
+ white-space: nowrap;
12
13
  }
@@ -0,0 +1,14 @@
1
+ /* eslint-disable no-console */
2
+ import { fileURLToPath } from 'url';
3
+ import { dirname } from 'path';
4
+
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = dirname(__filename);
7
+
8
+ export const CommonTestingWtrMixin = (subclass) =>
9
+ class extends subclass {
10
+ async execute() {
11
+ await super.execute();
12
+ await this.copyTemplates(`${__dirname}/templates/static/**/*`);
13
+ }
14
+ };
@@ -0,0 +1,69 @@
1
+ /* eslint-disable import/no-extraneous-dependencies */
2
+ /* process.env.npm_lifecycle_event, process.env.npm_lifecycle_script, process.env.OUTDIR; */
3
+
4
+ // import { playwrightLauncher } from '@web/test-runner-playwright';
5
+ import { defaultReporter } from '@web/test-runner';
6
+ import { mochaStyleReporter } from '@blockquote/test-runner-mocha-style-reporter';
7
+
8
+ const filteredLogs = ['in dev mode'];
9
+ const outDir = process.env.OUTDIR || '.';
10
+
11
+ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
12
+ /** Test files to run */
13
+ files: [`${outDir}/test/**/*.test.js`],
14
+
15
+ /** Resolve bare module imports */
16
+ nodeResolve: {
17
+ exportConditions: ['browser', 'development'],
18
+ },
19
+
20
+ reporters: [
21
+ defaultReporter(),
22
+ mochaStyleReporter(),
23
+ ],
24
+
25
+ coverageConfig: {
26
+ report: true,
27
+ reportDir: `${outDir}/test/coverage`,
28
+ threshold: {
29
+ statements: 80,
30
+ branches: 80,
31
+ functions: 80,
32
+ lines: 80,
33
+ },
34
+ },
35
+
36
+ testFramework: {
37
+ config: {
38
+ ui: 'tdd',
39
+ },
40
+ },
41
+
42
+ /** Filter out lit dev mode logs */
43
+ filterBrowserLogs(log) {
44
+ for (const arg of log.args) {
45
+ if (typeof arg === 'string' && filteredLogs.some(l => arg.includes(l))) {
46
+ return false;
47
+ }
48
+ }
49
+ return true;
50
+ },
51
+
52
+ /** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
53
+ // esbuildTarget: 'auto',
54
+
55
+ /** Amount of browsers to run concurrently */
56
+ // concurrentBrowsers: 2,
57
+
58
+ /** Amount of test files per browser to test concurrently */
59
+ // concurrency: 1,
60
+
61
+ /** Browsers to run tests on */
62
+ // browsers: [
63
+ // playwrightLauncher({ product: 'chromium' }),
64
+ // playwrightLauncher({ product: 'firefox' }),
65
+ // playwrightLauncher({ product: 'webkit' }),
66
+ // ],
67
+
68
+ // See documentation for all available options
69
+ });
@@ -0,0 +1,27 @@
1
+ /* eslint-disable no-console */
2
+ import { fileURLToPath } from 'url';
3
+ import { dirname } from 'path';
4
+ import { LintingEsLintMixin } from '../linting-eslint/index.js';
5
+ import { LintingPrettierMixin } from '../linting-prettier/index.js';
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = dirname(__filename);
9
+
10
+ export const LintingMixin = subclass =>
11
+ class extends LintingPrettierMixin(LintingEsLintMixin(subclass)) {
12
+ async execute() {
13
+ await super.execute();
14
+
15
+ // extend package.json
16
+ this.copyTemplateJsonInto(
17
+ `${__dirname}/templates/package.json`,
18
+ this.destinationPath('package.json'),
19
+ );
20
+ }
21
+ };
22
+
23
+
24
+
25
+
26
+
27
+
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,17 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { dirname } from 'path';
3
+
4
+ const __filename = fileURLToPath(import.meta.url);
5
+ const __dirname = dirname(__filename);
6
+
7
+ export const LintingEsLintMixin = subclass =>
8
+ class extends subclass {
9
+ async execute() {
10
+ await super.execute();
11
+
12
+ this.copyTemplateJsonInto(
13
+ `${__dirname}/templates/package.json`,
14
+ this.destinationPath('package.json'),
15
+ );
16
+ }
17
+ };
@@ -0,0 +1,17 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { dirname } from 'path';
3
+
4
+ const __filename = fileURLToPath(import.meta.url);
5
+ const __dirname = dirname(__filename);
6
+
7
+ export const TsLintingEsLintMixin = subclass =>
8
+ class extends subclass {
9
+ async execute() {
10
+ await super.execute();
11
+
12
+ this.copyTemplateJsonInto(
13
+ `${__dirname}/templates/package.json`,
14
+ this.destinationPath('package.json'),
15
+ );
16
+ }
17
+ };
@@ -0,0 +1,17 @@
1
+ {
2
+ "devDependencies": {
3
+ "@typescript-eslint/parser": "^5.0.0",
4
+ "@typescript-eslint/eslint-plugin": "^5.0.0"
5
+ },
6
+ "eslintConfig": {
7
+ "parser": "@typescript-eslint/parser",
8
+ "plugins": [
9
+ "@typescript-eslint"
10
+ ],
11
+ "rules": {
12
+ "indent": ["error", 2, { "SwitchCase": 1, "ignoredNodes": ["PropertyDefinition"] }],
13
+ "no-unused-vars": "off",
14
+ "@typescript-eslint/no-unused-vars": ["error"]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { dirname } from 'path';
3
+
4
+ const __filename = fileURLToPath(import.meta.url);
5
+ const __dirname = dirname(__filename);
6
+
7
+ export const LintingPrettierMixin = subclass =>
8
+ class extends subclass {
9
+ async execute() {
10
+ await super.execute();
11
+
12
+ this.copyTemplateJsonInto(
13
+ `${__dirname}/templates/package.json`,
14
+ this.destinationPath('package.json'),
15
+ );
16
+ }
17
+ };
@@ -0,0 +1,17 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { dirname } from 'path';
3
+
4
+ const __filename = fileURLToPath(import.meta.url);
5
+ const __dirname = dirname(__filename);
6
+
7
+ export const TsLintingPrettierMixin = subclass =>
8
+ class extends subclass {
9
+ async execute() {
10
+ await super.execute();
11
+
12
+ this.copyTemplateJsonInto(
13
+ `${__dirname}/templates/package.json`,
14
+ this.destinationPath('package.json'),
15
+ );
16
+ }
17
+ };
@@ -0,0 +1,21 @@
1
+ /* eslint-disable no-console */
2
+ import { fileURLToPath } from 'url';
3
+ import { dirname } from 'path';
4
+ import { TsLintingEsLintMixin } from '../linting-eslint-ts/index.js';
5
+ import { TsLintingPrettierMixin } from '../linting-prettier-ts/index.js';
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = dirname(__filename);
9
+
10
+ export const TsLintingMixin = subclass =>
11
+ class extends TsLintingPrettierMixin(TsLintingEsLintMixin(subclass)) {
12
+ async execute() {
13
+ await super.execute();
14
+
15
+ // extend package.json
16
+ this.copyTemplateJsonInto(
17
+ `${__dirname}/templates/package.json`,
18
+ this.destinationPath('package.json'),
19
+ );
20
+ }
21
+ };
@@ -0,0 +1 @@
1
+ {}
@@ -27,7 +27,7 @@ suite('<%= className %>', () => {
27
27
  assert.lightDom.equalSnapshot(el, { ignoreAttributes: ['id'] });
28
28
  });
29
29
  test('a11y', async () => {
30
- assert.isAccessible(el);
30
+ await assert.isAccessible(el);
31
31
  });
32
32
  });
33
33
  });
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@open-wc/testing": "next"
3
+ "@open-wc/testing": "next",
4
+ "@web/test-runner": "next"
4
5
  }
5
6
  }
@@ -0,0 +1,32 @@
1
+ /* eslint-disable max-classes-per-file */
2
+ import { fileURLToPath } from 'url';
3
+ import { dirname } from 'path';
4
+ import { TsTestingWebTestRunnerMixin } from '../testing-wtr-ts/index.js';
5
+
6
+ const __filename = fileURLToPath(import.meta.url);
7
+ const __dirname = dirname(__filename);
8
+
9
+ export const TsTestingMixin = subclass =>
10
+ class extends TsTestingWebTestRunnerMixin(subclass) {
11
+ async execute() {
12
+ await super.execute();
13
+
14
+ this.copyTemplateJsonInto(
15
+ `${__dirname}/templates/package.json`,
16
+ this.destinationPath('package.json'),
17
+ );
18
+ }
19
+ };
20
+
21
+ export const TsTestingScaffoldMixin = subclass =>
22
+ class extends subclass {
23
+ async execute() {
24
+ await super.execute();
25
+
26
+ const { tagName } = this.templateData;
27
+ this.copyTemplate(
28
+ `${__dirname}/templates/my-el.test.ts`,
29
+ this.destinationPath(`test/${tagName}.test.ts`),
30
+ );
31
+ }
32
+ };
@@ -0,0 +1,62 @@
1
+ import { html, fixture, assert, fixtureCleanup } from '@open-wc/testing';
2
+
3
+ import { <%= className %> } from '../src/<%= className %>.js';
4
+
5
+ import '../define/<%= tagName %>.js';
6
+
7
+ suite('<%= className %>', () => {
8
+ let el: <%= className %>;
9
+
10
+ teardown(() => fixtureCleanup());
11
+
12
+ suite('Default', () => {
13
+ setup(async () => {
14
+ el = (await fixture(html` <<%= tagName %>></<%= tagName %>> `)) as <%= className %>;
15
+ await el.updateComplete;
16
+ });
17
+
18
+ test('has a default heading "Hey there" and counter 5', async () => {
19
+ assert.equal(el.heading, 'Hey there');
20
+ assert.equal(el.counter, 5);
21
+ });
22
+
23
+ suite('Semantic Dom and a11y', () => {
24
+ test('SHADOW DOM - Structure test', () => {
25
+ assert.shadowDom.equalSnapshot(el);
26
+ });
27
+
28
+ test('LIGHT DOM - Structure test', () => {
29
+ assert.lightDom.equalSnapshot(el);
30
+ });
31
+ test('a11y', async () => {
32
+ await assert.isAccessible(el);
33
+ });
34
+ });
35
+ });
36
+
37
+ suite('Events ', () => {
38
+ setup(async () => {
39
+ el = (await fixture(html` <<%= tagName %>></<%= tagName %>> `)) as <%= className %>;
40
+ await el.updateComplete;
41
+ });
42
+
43
+ test('increases the counter on button click', async () => {
44
+ const button = el.shadowRoot!.querySelector('button')!;
45
+ button.click();
46
+ assert.equal(el.counter, 6);
47
+ });
48
+ });
49
+
50
+ suite('Override ', () => {
51
+ setup(async () => {
52
+ el = (await fixture(
53
+ html` <<%= tagName %> heading="attribute heading"></<%= tagName %>> `,
54
+ )) as <%= className %>;
55
+ await el.updateComplete;
56
+ });
57
+
58
+ test('can override the heading via attribute', async () => {
59
+ assert.equal(el.heading, 'attribute heading');
60
+ });
61
+ });
62
+ });
@@ -0,0 +1,6 @@
1
+ {
2
+ "devDependencies": {
3
+ "@open-wc/testing": "next",
4
+ "@web/test-runner": "next"
5
+ }
6
+ }
@@ -14,6 +14,6 @@ export const TestingWebTestRunnerMixin = (subclass) =>
14
14
  this.destinationPath('package.json'),
15
15
  );
16
16
 
17
- await this.copyTemplates(`${__dirname}/templates/static/**/*`);
17
+ // await this.copyTemplates(`${__dirname}/templates/static/**/*`);
18
18
  }
19
19
  };
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "scripts": {
3
- "test": "web-test-runner --coverage",
4
- "test:watch": "web-test-runner --watch"
5
- },
6
- "devDependencies": {
7
- "@web/test-runner": "^0.13.20"
3
+ "test": "wtr --coverage",
4
+ "test:watch": "wtr --watch"
8
5
  }
9
- }
6
+ }
@@ -0,0 +1,19 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { dirname } from 'path';
3
+
4
+ const __filename = fileURLToPath(import.meta.url);
5
+ const __dirname = dirname(__filename);
6
+
7
+ export const TsTestingWebTestRunnerMixin = subclass =>
8
+ class extends subclass {
9
+ async execute() {
10
+ await super.execute();
11
+
12
+ this.copyTemplateJsonInto(
13
+ `${__dirname}/templates/package.json`,
14
+ this.destinationPath('package.json'),
15
+ );
16
+
17
+ // await this.copyTemplates(`${__dirname}/templates/static/**/*`);
18
+ }
19
+ };
@@ -0,0 +1,6 @@
1
+ {
2
+ "scripts": {
3
+ "test": "tsc && OUTDIR=dist wtr --coverage",
4
+ "test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"OUTDIR=dist wtr --watch\""
5
+ }
6
+ }
@@ -0,0 +1,67 @@
1
+ /* eslint-disable import/no-extraneous-dependencies */
2
+
3
+ // import { playwrightLauncher } from '@web/test-runner-playwright';
4
+ import { defaultReporter } from '@web/test-runner';
5
+ import { mochaStyleReporter } from '@blockquote/test-runner-mocha-style-reporter';
6
+
7
+ const filteredLogs = ['in dev mode'];
8
+
9
+ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
10
+ /** Test files to run */
11
+ files: 'dist/test/**/*.test.js',
12
+
13
+ /** Resolve bare module imports */
14
+ nodeResolve: {
15
+ exportConditions: ['browser', 'development'],
16
+ },
17
+
18
+ reporters: [
19
+ defaultReporter(),
20
+ mochaStyleReporter(),
21
+ ],
22
+
23
+ coverageConfig: {
24
+ report: true,
25
+ reportDir: 'dist/test/coverage',
26
+ threshold: {
27
+ statements: 80,
28
+ branches: 80,
29
+ functions: 80,
30
+ lines: 80,
31
+ },
32
+ },
33
+
34
+ testFramework: {
35
+ config: {
36
+ ui: 'tdd',
37
+ },
38
+ },
39
+
40
+ /** Filter out lit dev mode logs */
41
+ filterBrowserLogs(log) {
42
+ for (const arg of log.args) {
43
+ if (typeof arg === 'string' && filteredLogs.some(l => arg.includes(l))) {
44
+ return false;
45
+ }
46
+ }
47
+ return true;
48
+ },
49
+
50
+ /** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
51
+ // esbuildTarget: 'auto',
52
+
53
+ /** Amount of browsers to run concurrently */
54
+ // concurrentBrowsers: 2,
55
+
56
+ /** Amount of test files per browser to test concurrently */
57
+ // concurrency: 1,
58
+
59
+ /** Browsers to run tests on */
60
+ // browsers: [
61
+ // playwrightLauncher({ product: 'chromium' }),
62
+ // playwrightLauncher({ product: 'firefox' }),
63
+ // playwrightLauncher({ product: 'webkit' }),
64
+ // ],
65
+
66
+ // See documentation for all available options
67
+ });
@@ -38,12 +38,6 @@ export const WcLitElementMixin = (subclass) =>
38
38
  this.destinationPath(`src/${className}.js`),
39
39
  );
40
40
 
41
- // write & rename el scss template
42
- this.copyTemplate(
43
- `${__dirname}/templates/styles/MyEl.scss`,
44
- this.destinationPath(`src/styles/${className}.scss`),
45
- );
46
-
47
41
  // write & rename el styles template
48
42
  this.copyTemplate(
49
43
  `${__dirname}/templates/styles/MyEl-styles.js`,
@@ -5,19 +5,12 @@
5
5
  "/define/",
6
6
  "/src/",
7
7
  "index.js",
8
- "!**/*.scss"
8
+ "!/**/*.scss"
9
9
  ],
10
10
  "scripts": {
11
- "start": "concurrently -k -r \"npm:sass:watch\" \"npm:vite\"",
11
+ "start:wds": "concurrently -k -r \"npm:sass:watch\" \"npm:wds\"",
12
+ "wds": "web-dev-server",
12
13
  "sass:watch": "sass-style-template",
13
- "vite": "vite"
14
- },
15
- "dependencies": {
16
- "lit": "^2.0.2"
17
- },
18
- "devDependencies": {
19
- "vite": "^2.6.7",
20
- "@web/dev-server": "^0.1.25"
21
-
14
+ "build": "echo \"This is not a TypeScript project, so no need to build.\""
22
15
  }
23
- }
16
+ }