From f4ee09fd8b7522e34ebdebef8c573bbe1bbce9d4 Mon Sep 17 00:00:00 2001 From: zombieJ Date: Wed, 22 May 2019 11:48:08 +0800 Subject: [PATCH] add ignore (#4245) --- package.json | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index a95f55be..24fbe0f1 100644 --- a/package.json +++ b/package.json @@ -42,17 +42,10 @@ "lint-staged": { "**/*.less": "stylelint --syntax less", "**/*.{js,jsx}": "npm run lint-staged:js", - "**/*.{js,ts,tsx,md,json,jsx,less}": [ - "npm run prettier", - "git add" - ], + "**/*.{js,ts,tsx,md,json,jsx,less}": [ "npm run prettier", "git add" ], "**/*.{ts,tsx}": "npm run lint-staged:ts" }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not ie <= 10" - ], + "browserslist": [ "> 1%", "last 2 versions", "not ie <= 10" ], "dependencies": { "@ant-design/pro-layout": "^4.2.0", "@antv/data-set": "^0.10.1", @@ -145,5 +138,19 @@ "src/**/*.less", "config/**/*.js*", "scripts/**/*.js" - ] -} \ No newline at end of file + ], + "create-umi": { + "ignore": [ + "CODE_OF_CONDUCT.md", + "Dockerfile", + "Dockerfile.*", + "lambda", + "LICENSE", + "netlify.toml", + "*.md", + "scripts", + "azure-pipelines.yml", + "docker" + ] + } +} -- GitLab