mac jade 安装

3 篇文章 0 订阅

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
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值