ns-tools
用于与NativeScript一起工作的便捷工具
npm i --save ns-tools

NativeScript 工具

用于与NativeScript一起工作的便捷工具

安装

npm install -g ns-tools

用法

  Usage: nst [options] <cmd> <subCmd> [param...]

Options:

-h, --help output usage information
-V, --version output the version number
--css Create CSS file only
--js Create JS file only
--xml Create XML file only
--force-overwrite Force overwrite existing files. !!USE WITH CAUTION!!

创建新的控制器

nst create controller test/newpage

结果

  Created: test/newpage.js
Created: test/newpage.css
Created: test/newpage.xml