Skip to content

Commit 5e00301

Browse files
committed
add template
1 parent 9cd0d40 commit 5e00301

23 files changed

+1981
-0
lines changed

.eslintrc.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
extends: [
7+
"plugin:vue/recommended",
8+
"eslint:recommended",
9+
"prettier/vue",
10+
"plugin:prettier/recommended"
11+
],
12+
rules: {
13+
"vue/component-name-in-template-casing": ["error", "PascalCase"],
14+
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
15+
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
16+
},
17+
parserOptions: {
18+
parser: "babel-eslint"
19+
}
20+
};

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A plugin for vue-cli to manage project when using Configurable-Platform.

config/jira.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# 目的:方便用户直接在mindmap中提交jira缺陷
2+
# 获取地址步骤:jira-》选择项目-》查看全部问题-》选择你的模块或者需求链接”,复制地址即可
3+
# 参数说明:
4+
5+
# BU: 24车事业部(事业部名称,新建项目设置选择,不必手动增加)
6+
# department: 营销赋能(业务线名称,新建项目设置选择,不必手动增加)
7+
# username: jira用户名
8+
# password: jira密码
9+
# reporter: jira用户名
10+
# project:
11+
# - projectName: 项目一,自定义,对jiraurl的一个昵称,方便多个项目时筛选
12+
# jiraUrl: https://jira.souche-inc.com/projects/TESTPROJEC/issues/TESTPROJEC-15?filter=allopenissues (jira-》选择项目-》查看全部问题-》选择你的模块或者需求链接”,复制地址即可)
13+
# assignee: liuwen(单个指派人)
14+
# - projectName: 项目二,自定义,对jiraurl的一个昵称,方便多个项目时筛选;有多个就设置多组
15+
# jiraUrl: https://jira.souche-inc.com/projects/TESTPROJEC/issues/TESTPROJEC-15?filter=allopenissues(jira-》选择项目-》查看全部问题-》选择你的模块或者需求链接”,复制地址即可)
16+
# assignee: 多个指派人
17+
# - liujing
18+
# - liuwenjing
19+
20+
BU:
21+
department:
22+
username:
23+
password:
24+
reporter:
25+
project:
26+
- projectName:
27+
jiraUrl:
28+
assignee:

generator/index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const rimraf = require("rimraf");
2+
module.exports = api => {
3+
// 添加新的依赖
4+
api.extendPackage({
5+
dependencies: {
6+
axios: "^0.18.0",
7+
iview: "^3.4.0",
8+
vuex: "^3.1.1",
9+
"vue-router": "^3.0.6"
10+
}
11+
});
12+
13+
api.render("./template");
14+
15+
// delete some files generated by built-in plugin
16+
api.onCreateComplete(() => {
17+
rimraf.sync(api.resolve("src/router.js"));
18+
rimraf.sync(api.resolve("src/components/HelloWorld.vue"));
19+
});
20+
};
File renamed without changes.

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = () => {};

package copy.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "vue-cli-plugin-cp",
3+
"version": "0.0.1",
4+
"description": "A plugin for vue-cli to manage project when using Configurable-Platform ",
5+
"repository": {
6+
"type": "git",
7+
"url": "git+https://github.com/BingBlog/vue-cli-plugin-cp"
8+
},
9+
"homepage": "https://github.com/BingBlog/vue-cli-plugin-cp",
10+
"main": "index.js",
11+
"scripts": {
12+
"format": "prettier --write \"./**/*.{js,vue,json}\"",
13+
"lint": "eslint ./ --fix"
14+
},
15+
"keywords": [
16+
"vue-cli-plugin",
17+
"cp",
18+
"configurable-platform"
19+
],
20+
"author": "abingblog@gmail.com",
21+
"license": "MIT",
22+
"devDependencies": {
23+
"babel-eslint": "^10.0.3",
24+
"eslint": "^6.3.0",
25+
"eslint-config-prettier": "^6.1.0",
26+
"eslint-plugin-prettier": "^3.1.0",
27+
"eslint-plugin-vue": "^5.2.3",
28+
"husky": ">=1",
29+
"lint-staged": ">=8",
30+
"prettier": "^1.18.2",
31+
"rimraf": "^3.0.0"
32+
},
33+
"husky": {
34+
"hooks": {
35+
"pre-commit": "lint-staged"
36+
}
37+
},
38+
"lint-staged": {
39+
"*.{js,vue}": [
40+
"eslint --fix",
41+
"prettier --write",
42+
"git add"
43+
]
44+
},
45+
"gitHooks": {
46+
"pre-commit": "lint-staged",
47+
"commit-msg": "commitlint -E GIT_PARAMS"
48+
}
49+
}
371 KB
Binary file not shown.

0 commit comments

Comments
 (0)