diff --git a/packages/create-fes-app/LICENSE b/packages/create-fes-app/LICENSE new file mode 100644 index 00000000..0978fbf7 --- /dev/null +++ b/packages/create-fes-app/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020-present webank + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/create-fes-app/README.md b/packages/create-fes-app/README.md new file mode 100644 index 00000000..d15cbe69 --- /dev/null +++ b/packages/create-fes-app/README.md @@ -0,0 +1,5 @@ +# fes 项目管理脚本 + +* 初始化 fes 项目 +* 创建页面 +* 创建模块 diff --git a/packages/create-fes-app/bin/create-fes-app.js b/packages/create-fes-app/bin/create-fes-app.js new file mode 100755 index 00000000..d2316ff6 --- /dev/null +++ b/packages/create-fes-app/bin/create-fes-app.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +require('../lib/cli'); diff --git a/packages/create-fes-app/package.json b/packages/create-fes-app/package.json new file mode 100644 index 00000000..3208fb1e --- /dev/null +++ b/packages/create-fes-app/package.json @@ -0,0 +1,35 @@ +{ + "name": "@webank/create-fes-app", + "version": "2.0.0-alpha.0", + "description": "@webank/create-fes-app", + "main": "lib/index.js", + "files": [ + "lib", + "bin", + "templates" + ], + "bin": { + "create-umi-app": "bin/create-fes-app.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/WeBankFinTech/fes.js.git", + "directory": "packages/create-fes-app" + }, + "keywords": [ + "fes" + ], + "sideEffects": false, + "author": "qlin", + "license": "MIT", + "bugs": { + "url": "https://github.com/WeBankFinTech/fes.js/issues" + }, + "homepage": "https://github.com/WeBankFinTech/fes.js#readme", + "publishConfig": { + "access": "public" + }, + "dependencies": { + "vue-router": "^4.0.1" + } +} diff --git a/packages/create-fes-app/src/cli.js b/packages/create-fes-app/src/cli.js new file mode 100644 index 00000000..e86fbed9 --- /dev/null +++ b/packages/create-fes-app/src/cli.js @@ -0,0 +1,12 @@ + +/** + * TODO + * 需要支持的命令 + * v + * h + * [项目名称] 可选择 h5 | pc 模版 + * + * feature pc + * 根据API动态生产列表页 + * feature h5 + */ diff --git a/packages/create-fes-app/src/genTmp.js b/packages/create-fes-app/src/genTmp.js new file mode 100644 index 00000000..e69de29b diff --git a/packages/fes-template-h5/README.md b/packages/fes-template-h5/README.md index 6f2e62a7..6fa4ffc4 100644 --- a/packages/fes-template-h5/README.md +++ b/packages/fes-template-h5/README.md @@ -1 +1,3 @@ -# fes vue3 模版 +# fes h5 模版 + +内部测试用,不对外发布 diff --git a/packages/fes-template-h5/package.json b/packages/fes-template-h5/package.json index ced69ed3..7eb680ed 100644 --- a/packages/fes-template-h5/package.json +++ b/packages/fes-template-h5/package.json @@ -44,5 +44,6 @@ "@webank/fes-plugin-icon": "^1.0.0", "@webank/fes-plugin-request": "^1.0.0", "vue": "^3.0.4" - } + }, + "private": true } diff --git a/packages/fes-template/README.md b/packages/fes-template/README.md new file mode 100644 index 00000000..c13381fd --- /dev/null +++ b/packages/fes-template/README.md @@ -0,0 +1,3 @@ +# fes 模版 + +内部测试用,不对外发布 diff --git a/packages/fes-template/package.json b/packages/fes-template/package.json index 3b7a1a06..acd2a0bd 100644 --- a/packages/fes-template/package.json +++ b/packages/fes-template/package.json @@ -50,5 +50,7 @@ "@webank/fes-plugin-model": "^1.0.0", "ant-design-vue": "2.0.0-rc.3", "vue": "3.0.4" - } + }, + "private": true } + \ No newline at end of file