File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.DEFAULT_GOAL := build
22
33JS_FILES = $(shell find ./src -name "* .js" -o -name "* .jsx")
4- PRETTIER_OPTIONS = --single-quote --trailing-comma es5 --print-width 120
4+ PRETTIER_OPTIONS = --single-quote --trailing-comma es5 --print-width 120 # also prettier opts exists in package.json
55
66setup : clean
77 yarn --pure-lockfile
Original file line number Diff line number Diff line change 99 "build" : " npm run build-css && npm run build-js" ,
1010 "prepublish" : " npm run build" ,
1111 "styleguidist" : " NODE_PATH=./src styleguidist server --config styleguide.config.js" ,
12- "flow" : " flow check"
12+ "flow" : " flow check" ,
13+ "precommit" : " lint-staged"
14+ },
15+ "lint-staged" : {
16+ "*.{js,jsx}" : [
17+ " prettier --single-quote --trailing-comma es5 --print-width 120 --write" ,
18+ " git add"
19+ ]
1320 },
1421 "publishConfig" : {
1522 "registry" : " https://npm.foxcommerce.com:4873"
5764 "gulp-concat" : " ^2.6.1" ,
5865 "gulp-postcss" : " ^7.0.0" ,
5966 "gulp-sourcemaps" : " ^2.6.0" ,
67+ "husky" : " ^0.13.4" ,
68+ "lint-staged" : " ^4.0.0" ,
6069 "postcss" : " 5.x.x" ,
6170 "postcss-cssnext" : " ^2.10.0" ,
6271 "postcss-loader" : " ^2.0.5" ,
You can’t perform that action at this time.
0 commit comments