-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Vanilla Extract): as a future replacement of jss #561
Merged
Merged
Changes from 20 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
f841a5e
playroom and storybook working
atabel f75a192
build
atabel 0a3b84c
Merge branch 'master' into atoledano-vanilla
atabel 0823022
removed unused imports
atabel 1ab5c3e
ssr tests
atabel 36754f6
fix playroom build
atabel 9302619
autoprefixer
atabel 68e3282
comment
atabel dd14992
added postcss plugin for automatic box-sizing border-box
atabel f630d09
make postcss work in storybook
atabel 18ff594
fix ts
atabel e6e8d15
fix vercel deploy
atabel 5cd60b9
update swc
atabel e28b19f
fix test
atabel b703449
fix ssr tests
atabel ac1ad82
fix eslint rule
atabel 8b57721
migrate Box
atabel bf0df66
revert box
atabel 813a9f5
add lib overhead gzip to stats
atabel 3f6bf11
remove unused eslint directive
atabel 4959f58
setup ssr tests to work with vanilla extract
atabel 3696296
move yarn ci to gh workflow
atabel 97870fa
move ts check after build
atabel 0c561d1
dont render theme styles in unit tests
atabel 60e034a
add comment in storybook config
atabel e364e14
flex 1
atabel 22c8f14
typo
atabel b42cb36
mediaqueries and migrated snackbar
atabel 61df2f6
fix preview tools
atabel 37a9cb6
flow types
atabel 505b7ab
Fix dimensions config logic
atabel ce58c96
fix playroom theme config
atabel eaac9cf
flow defs
atabel b5afb04
deprecate theme.mediaQueries
atabel 9100938
deprecate mediaqueries config
atabel 2d91fd1
remove background from sprinkles
atabel 242586a
flow defs
atabel af44f26
make 3 playroom builds to be able to force mobile/desktop
atabel 443f28c
fix ts
atabel 17e8571
embed VE sytles into js
atabel 24b5c75
Merge branch 'master' into atoledano-vanilla
atabel 0e9df6f
deprecate jss
atabel 4afd417
fix tests
atabel a95d1d2
Merge branch 'master' into atoledano-vanilla
atabel ab8e52b
comment vercel builds
atabel 690f2ca
make forceMobile and forceDesktop work in PreviewTools
atabel ce6ced7
handle false in forceMobile/forceDesktop
atabel b44bab2
Merge branch 'master' into atoledano-vanilla
atabel 941ed0e
handle false in forceMobile/forceDesktop
atabel 9bb76ba
grammar
atabel b85347c
Merge branch 'master' into atoledano-vanilla
atabel 039381b
support consummer apps to use VE too
atabel 097ee7b
change .vanilla.css to .mistica-vanilla.css
atabel 1185096
Merge branch 'master' into atoledano-vanilla
atabel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ storybook-static/ | |
.vercel | ||
src/generated/mistica-icons/index.tsx.txt | ||
reports | ||
css/mistica.css | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this file is generated by |
||
|
||
.yarn/* | ||
!.yarn/cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+3.84 KB
...rame-npm-7.16.7-093eb9e124-db2f7faa31.zip → ...rame-npm-7.18.6-25229a7e34-195e2be317.zip
Binary file not shown.
Binary file removed
BIN
-8.86 KB
.yarn/cache/@babel-compat-data-npm-7.17.7-cb4c3e4df9-bf13476676.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+2.74 KB
...pure-npm-7.16.7-75d26b1e4c-d235be963f.zip → ...pure-npm-7.18.6-36e25293d8-88ccd15ced.zip
Binary file not shown.
Binary file removed
BIN
-8.61 KB
.yarn/cache/@babel-helper-compilation-targets-npm-7.17.7-b0b90e42d8-24bf851539.zip
Binary file not shown.
Binary file added
BIN
+21.6 KB
.yarn/cache/@babel-helper-compilation-targets-npm-7.19.3-ba5dbffed2-aafcb4490c.zip
Binary file not shown.
Binary file removed
BIN
-2.88 KB
.yarn/cache/@babel-helper-environment-visitor-npm-7.16.7-3ee2ba2019-c03a10105d.zip
Binary file not shown.
Binary file added
BIN
+2.89 KB
.yarn/cache/@babel-helper-environment-visitor-npm-7.18.9-9f5b3635a1-b25101f616.zip
Binary file not shown.
Binary file removed
BIN
-3.79 KB
.yarn/cache/@babel-helper-function-name-npm-7.16.7-aa24c7b296-fc77cbe7b1.zip
Binary file not shown.
Binary file added
BIN
+9.05 KB
.yarn/cache/@babel-helper-function-name-npm-7.19.0-5bcf55236f-eac1f5db42.zip
Binary file not shown.
Binary file removed
BIN
-2.66 KB
.yarn/cache/@babel-helper-get-function-arity-npm-7.16.7-987b1b1bed-25d969fb20.zip
Binary file not shown.
Binary file renamed
BIN
+2.98 KB
...bles-npm-7.16.7-25cc3abba4-6ae1641f4a.zip → ...bles-npm-7.18.6-6eb061f405-fd9c35bb43.zip
Binary file not shown.
Binary file removed
BIN
-6.12 KB
.yarn/cache/@babel-helper-module-imports-npm-7.16.7-19c74fd92b-ddd2c4a600.zip
Binary file not shown.
Binary file added
BIN
+6.07 KB
.yarn/cache/@babel-helper-module-imports-npm-7.18.6-1031faa864-f393f8a3b3.zip
Binary file not shown.
Binary file removed
BIN
-12.3 KB
.yarn/cache/@babel-helper-module-transforms-npm-7.17.7-d26786bf84-0b8f023aa7.zip
Binary file not shown.
Binary file added
BIN
+42.4 KB
.yarn/cache/@babel-helper-module-transforms-npm-7.19.6-c73ab63519-c28692b37d.zip
Binary file not shown.
Binary file removed
BIN
-3.31 KB
.yarn/cache/@babel-helper-plugin-utils-npm-7.16.7-9e572698e0-d08dd86554.zip
Binary file not shown.
Binary file added
BIN
+6.31 KB
.yarn/cache/@babel-helper-plugin-utils-npm-7.19.0-744ad0c26b-eedc996c63.zip
Binary file not shown.
Binary file removed
BIN
-3.26 KB
.yarn/cache/@babel-helper-simple-access-npm-7.17.7-3274d165af-58a9bfd054.zip
Binary file not shown.
Binary file added
BIN
+6 KB
.yarn/cache/@babel-helper-simple-access-npm-7.19.4-c02920b575-964cb1ec36.zip
Binary file not shown.
Binary file removed
BIN
-3.15 KB
.yarn/cache/@babel-helper-split-export-declaration-npm-7.16.7-5b9ae90171-e10aaf1354.zip
Binary file not shown.
Binary file added
BIN
+3.17 KB
.yarn/cache/@babel-helper-split-export-declaration-npm-7.18.6-53ebf8ad4c-c6d3dede53.zip
Binary file not shown.
Binary file added
BIN
+10.4 KB
.yarn/cache/@babel-helper-string-parser-npm-7.19.4-0db110dc3a-b2f8a3920b.zip
Binary file not shown.
Binary file removed
BIN
-9.07 KB
.yarn/cache/@babel-helper-validator-identifier-npm-7.16.7-8599fb00fc-dbb3db9d18.zip
Binary file not shown.
Binary file added
BIN
+20.8 KB
.yarn/cache/@babel-helper-validator-identifier-npm-7.19.1-d84f19e1dc-0eca5e86a7.zip
Binary file not shown.
Binary file renamed
BIN
+3.82 KB
...tion-npm-7.16.7-d13e9c1d9e-c5ccc45191.zip → ...tion-npm-7.18.6-cc7d1a3315-f9cc6eb7cc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.65 KB
.yarn/cache/@babel-plugin-syntax-jsx-npm-7.16.7-06e2646d53-cd9b0e53c5.zip
Binary file not shown.
Binary file added
BIN
+2.68 KB
.yarn/cache/@babel-plugin-syntax-jsx-npm-7.18.6-3e378d5f11-6d37ea9729.zip
Binary file not shown.
Binary file renamed
BIN
+7.2 KB
...ript-npm-7.16.7-fcf0d6f605-661e636060.zip → ...ript-npm-7.18.6-4ad9dd7d2a-2cde73725e.zip
Binary file not shown.
Binary file renamed
BIN
+2.83 KB
...ment-npm-7.16.7-07827939b2-697c71cb0a.zip → ...ment-npm-7.18.6-1b4b00c77d-ec9fa65db6.zip
Binary file not shown.
Binary file removed
BIN
-7.98 KB
.yarn/cache/@babel-plugin-transform-react-jsx-npm-7.17.3-8d36ef35ea-7e33a3fb78.zip
Binary file not shown.
Binary file added
BIN
+24 KB
.yarn/cache/@babel-plugin-transform-react-jsx-npm-7.19.0-a26bc7e3f9-d7d6f0b8f2.zip
Binary file not shown.
Binary file added
BIN
+3.25 KB
.yarn/cache/@babel-plugin-transform-react-jsx-self-npm-7.18.6-97bcab453d-7d24e29c63.zip
Binary file not shown.
Binary file added
BIN
+5.53 KB
.yarn/cache/@babel-plugin-transform-react-jsx-source-npm-7.19.6-f7b8cba2b3-1e9e29a4ef.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+9.47 KB
...late-npm-7.16.7-a18e444be8-10cd112e89.zip → ...ate-npm-7.18.10-b6d6fdbaf8-93a6aa094a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+26.5 KB
.yarn/cache/@jridgewell-gen-mapping-npm-0.3.2-c64eeb4a4e-1832707a1c.zip
Binary file not shown.
Binary file removed
BIN
-15.1 KB
.yarn/cache/@jridgewell-resolve-uri-npm-3.0.5-bb57d127db-1ee652b693.zip
Binary file not shown.
Binary file added
BIN
+17.9 KB
.yarn/cache/@jridgewell-resolve-uri-npm-3.1.0-6ff2351e61-b5ceaaf9a1.zip
Binary file not shown.
Binary file added
BIN
+8.65 KB
.yarn/cache/@jridgewell-set-array-npm-1.1.2-45b82d7fb6-69a84d5980.zip
Binary file not shown.
Binary file removed
BIN
-10.2 KB
.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.11-68fac44d63-3b2afaf840.zip
Binary file not shown.
Binary file added
BIN
+13.4 KB
.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.14-f5f0630788-61100637b6.zip
Binary file not shown.
Binary file added
BIN
+44.4 KB
.yarn/cache/@jridgewell-trace-mapping-npm-0.3.17-57578fd48c-9d703b859c.zip
Binary file not shown.
Binary file removed
BIN
-17.1 KB
.yarn/cache/@jridgewell-trace-mapping-npm-0.3.4-d0db906c7f-ab8bce84bb.zip
Binary file not shown.
Binary file added
BIN
+6.28 KB
.yarn/cache/@storybook-addon-postcss-npm-2.0.0-b5e539ced6-3dee9003a5.zip
Binary file not shown.
Binary file added
BIN
+6.46 KB
.yarn/cache/@storybook-node-logger-npm-6.5.13-9b8430e9af-bcd1d98822.zip
Binary file not shown.
Binary file renamed
BIN
+56.2 KB
...-cli-npm-0.1.56-fd31e2cdea-c735896d9c.zip → ...-cli-npm-0.1.57-161586148e-d19f02233f.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+19.5 MB
...inux-x64-gnu-npm-1.2.160-f10207ae12-8.zip → ...linux-x64-gnu-npm-1.3.11-53dd9dbec5-8.zip
Binary file not shown.
Binary file renamed
BIN
+19.5 MB
...nux-x64-musl-npm-1.2.160-8fbeab0907-8.zip → ...inux-x64-musl-npm-1.3.11-726f4bbffa-8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.4 KB
.yarn/cache/@types-mini-css-extract-plugin-npm-1.4.3-541421d6f9-809ffb7509.zip
Binary file not shown.
Binary file added
BIN
+10.4 KB
.yarn/cache/@vanilla-extract-babel-plugin-debug-ids-npm-1.0.0-d1e8df87a2-cb5d349663.zip
Binary file not shown.
Binary file removed
BIN
-108 KB
.yarn/cache/@vanilla-extract-css-npm-1.7.0-f5001fde19-2ecebcc25f.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.6 KB
.yarn/cache/@vanilla-extract-dynamic-npm-2.0.2-b974034f8e-c6f22606bc.zip
Binary file not shown.
Binary file added
BIN
+16.6 KB
.yarn/cache/@vanilla-extract-integration-npm-6.0.0-a7cf76ca48-b1ad1ddc60.zip
Binary file not shown.
Binary file added
BIN
+7.23 KB
.yarn/cache/@vanilla-extract-jest-transform-npm-1.0.1-131d8a350f-cc5d440eb8.zip
Binary file not shown.
Binary file renamed
BIN
+29.3 KB
...nkles-npm-1.4.1-60a1bc80c6-e72407ca6a.zip → ...nkles-npm-1.5.0-208c79ac39-522b96afe8.zip
Binary file not shown.
Binary file added
BIN
+14.1 KB
.yarn/cache/@vanilla-extract-vite-plugin-npm-3.6.1-b6130bc1d8-c0938810a3.zip
Binary file not shown.
Binary file removed
BIN
-31.8 KB
.yarn/cache/@vanilla-extract-webpack-plugin-npm-2.1.10-587907372b-1a4c926cb4.zip
Binary file not shown.
Binary file added
BIN
+23.4 KB
.yarn/cache/@vanilla-extract-webpack-plugin-npm-2.2.0-165cad6546-3e1741062e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+28.4 KB
.yarn/cache/electron-to-chromium-npm-1.4.284-2fb881a7ac-be496e9dca.zip
Binary file not shown.
Binary file removed
BIN
-24.7 KB
.yarn/cache/electron-to-chromium-npm-1.4.93-787c2aad35-997411da3a.zip
Binary file not shown.
Binary file renamed
BIN
+55.4 KB
...solve-npm-5.9.2-ffd6aeacc7-792b7a01ab.zip → ...olve-npm-5.10.0-7941304306-0bb9830704.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+61.6 KB
...json5-npm-2.2.0-da49dc7cb5-e88fc5274b.zip → ...json5-npm-2.2.1-44675c859c-74b8a23b10.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+12.6 KB
...klona-npm-2.0.4-6bc4e7cd86-abc6690882.zip → ...klona-npm-2.0.5-5d403f2d77-8c976126ea.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+25.3 KB
.yarn/cache/mini-css-extract-plugin-npm-1.6.2-f19d00566e-c2c1f3d7e5.zip
Binary file not shown.
Binary file renamed
BIN
+13.8 KB
...anoid-npm-3.3.1-bdd760bee0-4ef0969e1b.zip → ...anoid-npm-3.3.4-3d250377d6-2fddd6dee9.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+61.5 KB
...tcss-npm-8.4.12-e941d78a98-248e3d0f9b.zip → ...tcss-npm-8.4.18-f1d73c0a84-9349fd9984.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.3 KB
.yarn/cache/supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-53b1e247e6.zip
Binary file not shown.
Binary file added
BIN
+6.5 KB
.yarn/cache/update-browserslist-db-npm-1.0.10-676baf0b9f-12db73b4f6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.03 KB
.yarn/cache/vite-plugin-no-bundle-npm-1.0.6-6d45a415a6-fbec64e9b1.zip
Binary file not shown.
Binary file renamed
BIN
+17.2 KB
...hpack-npm-2.3.1-89e7852543-70a34f9284.zip → ...hpack-npm-2.4.0-7ec4b9cc65-23d4bc5863.zip
Binary file not shown.
Binary file renamed
BIN
+1.12 MB
...pack-npm-5.70.0-5fea152450-00439884a9.zip → ...pack-npm-5.74.0-f5b838a00d-320c41369a.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// @flow | ||
|
||
declare export var avatar: string; | ||
declare export var image: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// @flow | ||
|
||
declare export var container: string; | ||
declare export var badge: string; | ||
declare export var badgeNumber: string; | ||
declare export var badgeWithChildren: string; | ||
declare export var badgeBigNumber: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// @flow | ||
import type {Colors} from './types'; | ||
|
||
declare export var vars: { | ||
colors: Colors, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// @flow | ||
|
||
declare export var sprinkles: any; // TODO: improve this | ||
export type Sprinkles = any; // TODO: improve this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// @flow | ||
|
||
declare export var tag: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// @flow | ||
import type {Colors} from './types'; | ||
|
||
declare export var vars: { | ||
colors: Colors, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// @flow | ||
|
||
declare export var sprinkles: any; // TODO: improve this | ||
export type Sprinkles = any; // TODO: improve this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// vite automatically apply postcss to css files, like the generated mistica.css file from vanilla extract. | ||
atabel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
module.exports = { | ||
plugins: [require('autoprefixer'), require('./postcss/box-sizing-border-box')], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const addBoxSizing = (decl) => { | ||
decl.cloneBefore({prop: 'box-sizing', value: 'border-box'}); | ||
}; | ||
|
||
/** | ||
* @type {import('postcss').PluginCreator} | ||
*/ | ||
module.exports = () => { | ||
return { | ||
postcssPlugin: 'box-sizing-border-box', | ||
|
||
Declaration: { | ||
width: addBoxSizing, | ||
height: addBoxSizing, | ||
'min-width': addBoxSizing, | ||
'min-height': addBoxSizing, | ||
'max-width': addBoxSizing, | ||
'max-height': addBoxSizing, | ||
}, | ||
}; | ||
}; | ||
|
||
module.exports.postcss = true; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why JSON?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just copy&pasted from https://github.com/Telefonica/js-toolbox/blob/master/packages/eslint-config/import.yml#L5 and added the css extension