Browse Source

feat: prettier:fix

richard1015 5 years ago
parent
commit
04dc9d974c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      package.json

+ 3 - 2
package.json

@@ -21,7 +21,8 @@
     "test": "cross-env NODE_ENV=test nyc mocha-webpack --webpack-config node_modules/@nutui/cli/dist_cli/webpack/test.config.js  --require node_modules/@nutui/cli/dist_cli/test/setup.js src/packages/**/__test__/**.spec.js",
     "coveralls": "cat ./coverage/lcov.info | coveralls",
     "test:watch": "npm run test --watch",
-    "upload:test": "node test_script/upload.js"
+    "upload:test": "node test_script/upload.js",
+    "prettier:fix": "prettier --write **/**/*.{ts,js,vue,scss}"
   },
   "repository": {
     "type": "git",
@@ -100,4 +101,4 @@
     "instrument": false,
     "sourceMap": false
   }
-}
+}