-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: downgrade to PostCSSv7to and watch css files using Storybook
Due to compatibility reason, we should currently work with PostCSSv7, because Storybook is not up-to-date and use this version. Using v8 causes some instabilities in the stack. Cf: storybookjs/storybook#13491
- Loading branch information
Showing
7 changed files
with
125 additions
and
236 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import '../src/index.css'; | ||
|
||
export const parameters = { | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
}; |
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 |
---|---|---|
|
@@ -5,12 +5,9 @@ | |
"author": "Decathlon <[email protected]>", | ||
"homepage": "https://github.com/Decathlon/vitamin-web#readme", | ||
"scripts": { | ||
"dev": "npm run watch:storybook", | ||
"dev": "start-storybook -p 6006", | ||
"build": "cross-env NODE_ENV=production npm run build:tailwind", | ||
"build:tailwind": "postcss src/index.css -o lib/index.css", | ||
"watch:tailwind": "chokidar 'src/**/*.css' 'src/**/*.mdx' '*.js' -c 'npm run build:tailwind'", | ||
"watch:storybook": "npm-run-all build:tailwind --parallel watch:tailwind start:storybook", | ||
"start:storybook": "start-storybook -p 6006 -s lib", | ||
"build:storybook": "build-storybook --docs" | ||
}, | ||
"directories": { | ||
|
@@ -37,6 +34,9 @@ | |
} | ||
], | ||
"dependencies": { | ||
"tailwindcss": "^2.0.2" | ||
"@tailwindcss/postcss7-compat": "^2.0.2", | ||
"autoprefixer": "^9.8.6", | ||
"postcss": "^7.0.35", | ||
"tailwindcss": "npm:@tailwindcss/postcss7-compat" | ||
} | ||
} |
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
Oops, something went wrong.