2016-08-25 4 views
0

私は翡翠に新しいです。私はヒスイに別のjadeディレクトリに出力するには?

jade -w index.jade 

今、このファイルがディレクトリjade/にあるをコンパイルするには、このコマンドを使用していますが、私は、ルートディレクトリにコンパイルされindex.htmlをしたいです。

私に命令を教えてください。ありがとう。

答えて

0

あなたはヘルプからjade -w -o 'yourdir' index.jade

を試みることができる:

〜$ヒスイ--help

使い方:翡翠[オプション] [ディレクトリ|ファイル...]

オプション:

-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

Googleの 'jade output different directory'は驚くほどの結果しか得ていませんが、一番上の例は参考になりました([here](http://jade-lang.com/command-line/)参照)。 – Matthias

+0

私はまだそれを得ることができません。 –

+0

ファイル 'jade/index.jade'をどこにコンパイルしますか?どのようなコマンドを試しましたか? – Matthias

関連する問題