https://github.com/yaorao2770/venustech-cli
Auto generate project template
https://github.com/yaorao2770/venustech-cli
angular bower gulp nodejs
Last synced: 10 days ago
JSON representation
Auto generate project template
- Host: GitHub
- URL: https://github.com/yaorao2770/venustech-cli
- Owner: yaorao2770
- Created: 2017-11-02T01:38:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-25T10:57:39.000Z (over 8 years ago)
- Last Synced: 2026-04-14T09:23:28.619Z (3 months ago)
- Topics: angular, bower, gulp, nodejs
- Language: JavaScript
- Size: 17.3 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# venustech-cli
Auto generate project template
## Table of Contents
* [Note](#Note)
* [Installation](#installation)
* [Usage](#usage)
* [Argv](#Argv)
* [Run](#Run)
* [Skeleton](#Skeleton)
## Note
在使用该工具之前,确保本地环境已安装 Nodejs, Gulp, Bower。查看是否安装成功,可用以下命令:
```bash
node -v
npm -v
gulp -v
bower -v
```
## Installation
Install this tool by npm:
```bash
npm install venustech-cli -g
```
## Usage
Create your porject directory, and use "webapp-cli" command:
```bash
mkdir my-project && cd my-project
venus
```

## Argv
可接受一个命令行参数, -lib ,用于添加更多的资源文件,如下图所示:
```bash
venus -lib
```


## Run
在项目骨架 build success 后,需运行以下命令去下载依赖的包和三方资源文件:
```bash
bower install
npm install
```
install成功后,应生成 node_modules 和 bower_components 两个目录。
## Skeleton
``` bash
\---bower_components
\---node_modules
\---images
\---source
| \---controller
| | +---mainCtrl.js
| \---css
| | +---al.css
| | +---common.css
| | +---cy.css
| \---directive
| | +---directive.js
| \---service
| | +---app.js
| | +---myFilter.js
| | +---router.js
\---templates
+---main.html
+---bower.json
+---.gitignore
+---gulpfile.js
+---index.html
+---package.json
```