You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds support for specifying options via a configuration file instead of command line arguments. Uses `lilconfig` and `js-yaml` under the hood.
| | Before | After | Diff |
| :------: | -----: | :-----: | :--: |
| packed | 4.4 kB | 5.5 kB | +25% |
| unpacked | 9.5 kB | 12.6 kB | +33% |
The increase in download size brings the package back to pre-bundling size.
Note: This includes increased README documentation size.
dist/main.js: 3.2kb
Improves pipeline tests with bash unofficial strict mode, which fixes potential for false positives. Removes `-latest` from OS variable in test matrix.
+semver:minor
@@ -161,7 +190,17 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md).
161
190
This (very basic) implementation uses [glob] for file matching and [css-tree] for CSS parsing.
162
191
It extracts CSS classes (`ClassSelector` in CSS Tree’s AST) and exports them as `string` constants (named exports).
163
192
193
+
The CSS-file class name is modified for JS export according to the [localsConvention](#localsconvention) option.
194
+
The implementation matches PostCSS.
195
+
164
196
I chose CSS Tree after a brief search because it had a nice API, good documentation, and supported CSS nesting (a requirement for my original use case).
165
197
198
+
`css-typed` uses [Commander.js][commander] for command line parsing and [lilconfig] for configuration file loading.
199
+
200
+
The “brand” image/logo combines the public CSS 3 and TypeScript logos with a basic plus icon in between.
0 commit comments