Skip to content

Commit 27d0b49

Browse files
committed
fix cli-template
1 parent ab8e2c0 commit 27d0b49

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+122
-53
lines changed

.gitignore

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
dist/
2-
node_modules/
3-
web/
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Dependency directories
6+
node_modules
7+
8+
# Optional npm cache directory
9+
.npm
10+

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 MMF-FE
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

meta.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
"helpers": {
3+
"if_or": function (v1, v2, options) {
4+
if (v1 || v2) {
5+
return options.fn(this);
6+
}
7+
8+
return options.inverse(this);
9+
}
10+
},
11+
"prompts": {
12+
"name": {
13+
"type": "string",
14+
"required": true,
15+
"label": "Project name"
16+
},
17+
"description": {
18+
"type": "string",
19+
"required": true,
20+
"label": "Project description",
21+
"default": "A wepy-cli project"
22+
},
23+
"author": {
24+
"type": "string",
25+
"label": "Author"
26+
},
27+
},
28+
"completeMessage": "{{#inPlace}}To get started:\n\n npm install\n npm run dev.{{else}}To get started:\n\n cd {{destDirName}}\n npm install\n npm run dev.{{/inPlace}}"
29+
}

package.json

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,9 @@
11
{
2-
"name": "wepy-applet",
2+
"name": "wepy-cli-template-typescript",
33
"version": "1.0.0",
4-
"description": "",
5-
"main": "dist/app.js",
6-
"scripts": {
7-
"init-project": "node tools/init.js",
8-
"dev": "wepy build --watch",
9-
"build": "cross-env NODE_ENV=production wepy build --no-cache",
10-
"web": "wepy build --output web",
11-
"cli": "node tools/cli.js"
12-
},
13-
"author": "",
144
"license": "MIT",
5+
"description": "wepy use typescript",
156
"dependencies": {
16-
"wepy": "^1.6.0",
17-
"wepy-async-function": "^1.4.4",
18-
"wepy-com-toast": "^1.0.2"
19-
},
20-
"devDependencies": {
21-
"@types/fs-extra": "^5.0.0",
22-
"@types/node": "^8.5.1",
23-
"@types/yargs": "^10.0.0",
24-
"babel-eslint": "^7.2.1",
25-
"babel-plugin-transform-class-properties": "^6.24.1",
26-
"babel-plugin-transform-decorators-legacy": "^1.3.4",
27-
"babel-plugin-transform-export-extensions": "^6.22.0",
28-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
29-
"babel-preset-env": "^1.6.1",
30-
"babel-preset-es2015": "^6.24.1",
31-
"babel-preset-stage-0": "^6.24.1",
32-
"colors": "^1.1.2",
33-
"cross-env": "^5.1.1",
34-
"eslint": "^3.18.0",
35-
"eslint-config-standard": "^7.1.0",
36-
"eslint-friendly-formatter": "^2.0.7",
37-
"eslint-plugin-html": "^2.0.1",
38-
"eslint-plugin-promise": "^3.5.0",
39-
"eslint-plugin-standard": "^2.0.1",
40-
"fs-extra": "^5.0.0",
41-
"inquirer": "^4.0.1",
42-
"prompt": "^1.0.0",
43-
"tslib": "^1.8.1",
44-
"wepy-compiler-babel": "^1.5.1",
45-
"wepy-compiler-sass": "^1.3.7",
46-
"wepy-compiler-typescript": "^1.5.8",
47-
"wepy-eslint": "^1.5.3",
48-
"wepy-plugin-imagemin": "^1.5.2",
49-
"wepy-plugin-uglifyjs": "^1.3.6",
50-
"wepy-web": "^1.5.9",
51-
"yargs": "^10.0.3"
7+
"vue-cli": "^2.8.2"
528
}
539
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

template/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
node_modules/
3+
web/
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)