File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 45
45
"build:babel" : " NODE_ENV=production babel ./src --ignore \" src/**/*.story.js\" --out-dir=./dist && rm dist/index.js && cp dist/lib.js dist/index.js" ,
46
46
"build-storybook" : " build-storybook" ,
47
47
"build:gh-pages" : " react-scripts build && mkdir build/demo && cp build/index.html build/demo/index.html" ,
48
- "gh-pages" : " npm run build:gh-pages && gh-pages -d build"
48
+ "gh-pages" : " npm run build:gh-pages && gh-pages -d build" ,
49
+ "prettier" : " prettier --write \" src/**/*.js\" " ,
50
+ "prettier:test" : " prettier --check \" src/**/*.js\" "
49
51
},
50
52
"eslintConfig" : {
51
53
"extends" : " react-app"
66
68
"babel-loader" : " ^8.0.5" ,
67
69
"babel-preset-react-app" : " ^7.0.0" ,
68
70
"gh-pages" : " ^2.0.1" ,
71
+ "prettier" : " ^2.0.4" ,
69
72
"raw.macro" : " ^0.3.0" ,
70
73
"react-github-btn" : " ^1.1.1" ,
71
74
"react-scripts" : " ^2.1.8"
Original file line number Diff line number Diff line change @@ -12771,6 +12771,11 @@ preserve@^0.2.0:
12771
12771
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
12772
12772
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=
12773
12773
12774
+ prettier@2.0.2:
12775
+ version "2.0.2"
12776
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.2.tgz#1ba8f3eb92231e769b7fcd7cb73ae1b6b74ade08"
12777
+ integrity sha512-5xJQIPT8BraI7ZnaDwSbu5zLrB6vvi8hVV58yHQ+QK64qrY40dULy0HSRlQ2/2IdzeBpjhDkqdcFBnFeDEMVdg==
12778
+
12774
12779
prettier@^1.16.4:
12775
12780
version "1.19.1"
12776
12781
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
You can’t perform that action at this time.
0 commit comments