Skip to content

Commit afd1f53

Browse files
committed
feat: Use eslint optionally instead of postcss
Experimental feature, at first.
1 parent 4317e95 commit afd1f53

File tree

4 files changed

+416
-156
lines changed

4 files changed

+416
-156
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,17 @@ Default: `false`
9999

100100
Enables minifying of the transformed CSS output. If an object is specified, it will be passed to the [cssnano] plugin.
101101

102+
Experimental feature: if the object is set to `{ fast: true }`, [esbuild] will be used instead of [postcss].
103+
102104
### `inline`
103105

104106
Type: `Boolean | Object`<br>
105107
Default: `false`
106108

107109
Enables inlining of stylesheets and other assets. If an object is specified, it will have to include two properties pointing to objects: `{ stylesheets, assets }`. The `stylesheets` objects will be passed to the [postcss-import] plugin. The `assets` objects will be passed to the [postcss-url] plugin.
108110

111+
Experimental feature: if the object is set to `{ fast: true }`, [esbuild] will be used instead of [postcss].
112+
109113
### `plugins`
110114

111115
Type: `Array<Object>`<br>
@@ -186,6 +190,8 @@ Passing a booleans to the `litCss` plugin - `{ minify: true, inline: true }` - w
186190

187191
Pass [options for cssnano] to `minify`, [options for postcss-import] to `inline.stylesheets` and [options for postcss-url] to `inline.assets`.
188192

193+
Experimental feature: if the `minify` or `inline` object is set to `{ fast: true }`, [esbuild] will be used instead of [postcss].
194+
189195
## Contributing
190196

191197
In lieu of a formal styleguide, take care to maintain the existing coding style. Lint and test your code.
@@ -208,6 +214,7 @@ Licensed under the [MIT License].
208214
[Pattern]: https://www.linuxjournal.com/content/bash-extended-globbing
209215
[PostCSS]: https://postcss.org/
210216
[cssnano]: https://cssnano.co/
217+
[esbuild]: https://esbuild.github.io/
211218
[postcss-import]: https://www.npmjs.com/package/postcss-import
212219
[postcss-url]: https://www.npmjs.com/package/postcss-url
213220
[postcss-fail-on-warn]: https://www.npmjs.com/package/postcss-fail-on-warn

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
"scripts": {
3131
"prepare": "rollup -c",
3232
"lint": "denolint",
33-
"check": "node test",
34-
"cover": "c8 node test",
35-
"test": "denolint && c8 node test"
33+
"check": "teru-esm test/index.js",
34+
"cover": "c8 node teru-esm test/index.js",
35+
"test": "denolint && c8 teru-esm test/index.js"
3636
},
3737
"c8": {
3838
"check-coverage": true,
@@ -64,16 +64,17 @@
6464
"@rollup/pluginutils": "^4.2.1",
6565
"@semantic-release/changelog": "^6.0.1",
6666
"@semantic-release/git": "^10.0.1",
67-
"postcss": "^8.4.13",
68-
"rollup-copy-transform-css": "^1.1.0"
67+
"postcss": "^8.4.14",
68+
"rollup-copy-transform-css": "^1.2.1"
6969
},
7070
"devDependencies": {
7171
"@node-rs/deno-lint": "^1.13.1",
7272
"builtin-modules": "^3.3.0",
73-
"c8": "^7.11.2",
74-
"rollup": "^2.73.0",
75-
"tehanu": "^0.2.2",
76-
"tehanu-repo-coco": "^0.0.2"
73+
"c8": "^7.11.3",
74+
"rollup": "^2.74.1",
75+
"tehanu": "^1.0.0",
76+
"tehanu-repo-coco": "^1.0.0",
77+
"tehanu-teru": "^1.0.0"
7778
},
7879
"peerDependencies": {
7980
"lit": "^2",

0 commit comments

Comments
 (0)