package.json - Add prettier and format task

This commit is contained in:
2020-01-24 13:11:34 +05:30
parent 5cc883e786
commit dee9e8f28f
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -19,7 +19,8 @@
"start": "rollup -c -w", "start": "rollup -c -w",
"prepare": "yarn run build", "prepare": "yarn run build",
"predeploy": "cd example && yarn install && yarn run build", "predeploy": "cd example && yarn install && yarn run build",
"deploy": "gh-pages -d example/build" "deploy": "gh-pages -d example/build",
"format": "prettier --write \"{src,example/src}/**/*.{js,ts}*\""
}, },
"dependencies": { "dependencies": {
"redux": "^4.0.5" "redux": "^4.0.5"
@@ -38,6 +39,7 @@
"babel-runtime": "^6.26.0", "babel-runtime": "^6.26.0",
"cross-env": "^5.1.4", "cross-env": "^5.1.4",
"gh-pages": "^1.2.0", "gh-pages": "^1.2.0",
"prettier": "^1.19.1",
"prop-types": "^15.7.2", "prop-types": "^15.7.2",
"react": "^16.12.0", "react": "^16.12.0",
"react-dom": "^16.12.0", "react-dom": "^16.12.0",
+1 -1
View File
@@ -7668,7 +7668,7 @@ preserve@^0.2.0:
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=
prettier@^1.14.2: prettier@^1.14.2, prettier@^1.19.1:
version "1.19.1" version "1.19.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==