youzan/zan-tool

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Zan Tool
??????

Zan Node Web ????????????????????????? NPM ????????

?????

????
install -g zan-tool
??API
????????


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 -----------
??zan.json ????
1?htmlmin ??

| ?? | ?? | ?? | | —– | —– | —– | | 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
    }
}
...

2?babel ??

babel ?????????????????

| ?? | ?? | ?? | | —– | —– | —– | | src | String | ????? | | dest | String | ???? |

???

"babel": {
    "src": "./server",
    "dest": "./server_dist"
}
...

???

"babel": [{
    "src": "./server",
    "dest": "./server_dist"
}]
...


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.