Skip to content

Commit 44c86f3

Browse files
author
Philip Weiss
committed
add css generating script and package.json hook
1 parent c46b621 commit 44c86f3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

initialize.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// eslint-disable-next-line import/no-unresolved
2+
require('./lib/initialize');

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"prepublish": "in-publish && safe-publish-latest && npm run build || not-in-publish",
1515
"lint": "eslint --ext .js,.jsx src test stories",
1616
"storybook": "start-storybook -p 9001",
17-
"prestorybook:css": "npm run build:css",
18-
"storybook:css": "start-storybook -p 6006 -c .storybook-css",
17+
"storybook:css": "npm run build:css && start-storybook -p 6006 -c .storybook-css",
1918
"pretest": "npm run build && npm run lint",
2019
"test": "nyc npm run test:all",
2120
"tests-only": "npm run test:all",
@@ -73,7 +72,6 @@
7372
},
7473
"dependencies": {
7574
"airbnb-prop-types": "^2.10.0",
76-
"clean-css": "^4.1.11",
7775
"object.assign": "^4.1.0",
7876
"prop-types": "^15.6.2",
7977
"react-with-styles": "^3.2.0",

src/initialize.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import registerCSSInterfaceWithDefaultTheme from '../scripts/utils/registerCSSInterfaceWithDefaultTheme';
2+
3+
registerCSSInterfaceWithDefaultTheme();

0 commit comments

Comments
 (0)