This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new f5bb766  style: Drop `npm run` in package.json (#523)
f5bb766 is described below

commit f5bb766d2bb665b7cf9bf3aedba35ba6e5684cc0
Author: Rapiz <[email protected]>
AuthorDate: Mon Sep 28 21:51:22 2020 +0800

    style: Drop `npm run` in package.json (#523)
---
 package.json | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/package.json b/package.json
index 81ea2b1..d2a960d 100644
--- a/package.json
+++ b/package.json
@@ -6,19 +6,19 @@
   "scripts": {
     "analyze": "cross-env ANALYZE=1 umi build",
     "build": "umi build",
-    "dev": "npm run start:dev",
-    "fetch:blocks": "pro fetch-blocks --branch antd@4 && npm run prettier",
+    "dev": "yarn run start:dev",
+    "fetch:blocks": "pro fetch-blocks --branch antd@4 && yarn run prettier",
     "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
     "postinstall": "umi g tmp",
-    "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run 
lint:prettier",
+    "lint": "umi g tmp && yarn run lint:js && yarn run lint:style && yarn run 
lint:prettier",
     "lint-staged": "lint-staged",
     "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
-    "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty 
./src && npm run lint:style",
+    "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty 
./src && yarn run lint:style",
     "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
     "lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
     "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
     "prettier": "prettier -c --write \"**/*\"",
-    "site": "npm run fetch:blocks && npm run build",
+    "site": "yarn run fetch:blocks && yarn run build",
     "start": "umi dev",
     "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none umi dev",
     "start:no-mock": "cross-env MOCK=none umi dev",
@@ -35,12 +35,12 @@
   "husky": {
     "hooks": {
       "commit-msg": "node scripts/verifyCommit.js",
-      "pre-commit": "npm run lint-staged"
+      "pre-commit": "yarn run lint-staged"
     }
   },
   "lint-staged": {
     "**/*.less": "stylelint --syntax less",
-    "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
+    "**/*.{js,jsx,ts,tsx}": "yarn run lint-staged:js",
     "**/*.{js,jsx,tsx,ts,less,md,json}": [
       "prettier --write"
     ]

Reply via email to