mac jade 安装

来源:互联网 发布:先学编程还是数据库 编辑:程序博客网 时间:2024/06/03 23:44

mac-lwen-x:test lwen_x$ sudo npm install -g jade

Password:

/usr/local/bin/jade -> /usr/local/lib/node_modules/jade/bin/jade.js

jade@1.11.0 /usr/local/lib/node_modules/jade

├── commander@2.6.0

├── character-parser@1.2.1

├── void-elements@2.0.1

├── constantinople@3.0.2 (acorn@2.7.0)

├── with@4.0.3 (acorn@1.2.2, acorn-globals@1.0.9)

├── jstransformer@0.0.2 (is-promise@2.1.0, promise@6.1.0)

├── mkdirp@0.5.1 (minimist@0.0.8)

├── clean-css@3.4.10 (commander@2.8.1, source-map@0.4.4)

├── transformers@2.1.0 (promise@2.0.0, css@1.0.8, uglify-js@2.2.5)

└── uglify-js@2.6.2 (async@0.2.10, uglify-to-browserify@1.0.2, source-map@0.5.3, yargs@3.10.0)


jade命令:

1、编译jade为html:

$jade xxxx.jade

    -h, --help             output usage information

    -V, --version          output the version number

    -O, --obj <str|path>   JavaScript options object or JSON file containing it

    -o, --out <dir>        output the compiled html to <dir>

    -p, --path <path>      filename used to resolve includes

    -P, --pretty           compile pretty html output//可读模式输出

    -c, --client           compile function for client-side runtime.js

    -n, --name <str>       The name of the compiled template (requires --client)

    -D, --no-debug         compile without debugging (smaller functions)

    -w, --watch            watch files for changes and automatically re-render  //实时监控

    -E, --extension <ext>  specify the output file extension

    -H, --hierarchy        keep directory hierarchy when a directory is specified



0 0
原创粉丝点击