Name: zan-tool
Owner: ??
Description: Zan Node Web ????????
Created: 2017-07-27 12:06:36.0
Updated: 2018-05-22 07:53:58.0
Pushed: 2018-01-18 03:05:29.0
Homepage: https://github.com/youzan/zan-tool
Size: 67
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Zan Node Web ????????????????????????? NPM ????????
?????
install -g zan-tool
age: zan [options] [command]
mmands:
init <projectName> ??????? ZanNode Web ??
module <moduleName> ????? NPM ???
dev [options] ???????????
babel [options] Babel ????
htmlmin HTML ????
config [options] ?????????
outdated ??????????? NPM ?
doc ?? ZanNode ????
*
tions:
-h, --help output usage information
-V, --version output the version number
____ _____ _
o O O |_ / __ _ _ _ |_ _| ___ ___ | |
/ / / _` | | ' \ | | / _ \ / _ \ | |
__[O] /___| \__,_| |_||_| _|_|_ \___/ \___/ _|_|_
====|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|
-000'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'
------- ????????? https://github.com/youzan -----------
| ?? | ?? | ?? | | —– | —– | —– | | src | String/Array | HTML ????? | | dest | String | HTML ????????? | | options | Object | HTML ?????????????????????https://github.com/kangax/html-minifier#options-quick-reference |
"htmlmin": {
"src": "./server/views/**/*.html",
"dest": "./server/views_dist",
"options": {
"collapseWhitespace": true,
"minifyCSS": true,
"minifyJS": true,
"removeComments": true
}
}
...
babel ?????????????????
| ?? | ?? | ?? | | —– | —– | —– | | src | String | ????? | | dest | String | ???? |
???
"babel": {
"src": "./server",
"dest": "./server_dist"
}
...
???
"babel": [{
"src": "./server",
"dest": "./server_dist"
}]
...