weex构建项目

D:\ooo>weex create awesome-project ---------建立一个weex项目 √ Installed 1 packages √ Linked 152 latest versions √ Run 0 scripts deprecate @weex-cli/generator@2.0.0-beta.2 › metalsmith@2.3.0 › gray-matter@2.1.1 › coffee-script@^1.12.4 CoffeeScript on NPM has moved to "coffeescript" (no hyphen) Recently updated (since 2019-02-21): 2 packages (detail see file C:\Users\o_o\.wx\modules\node_modules\.recently_updates.txt) 2019-02-26 → @weex-cli/generator@latest(2.0.0-beta.2) (19:24:38) → @weex-cli/generator@2.0.0-beta.2 › metalsmith@2.3.0 › gray-matter@2.1.1 › js-yaml@^3.8.1(3.12.2) (23:03:08) √ All packages installed (165 packages installed from npm registry, used 1m(network 1m), speed 41.87kB/s, json 153(261.04kB), tarball 2.55MB) Start checking package, please wait ... compelied, cost 72.362s ? Project name aaa ----------项目名字本身起 ? Project description A weex project ----------------------项目描述回车就行 ? Author --------------------做者不用输入(看本身须要) ? Select weex web render lts -------------------(选择weex web渲染器)? 选项有两个:这里我选第二项,推荐项 ? Babel compiler (https://babeljs.io/docs/plugins/#stage-x-experimental-presets) stage-0 ------------(js编译器)?选项有4个,按推荐选择第一个“stage-0”,支持全部es6语法 ? Use vue-router to manage your view router? (not recommended) No -------------------要不要用Vue的路由,这个能够不用,以后项目有用到能够本身加 ? Use ESLint to lint your code? No --------------------- 是否使用ESLint管理代码,有了eslint的校验,能够来规范开发人员的代码,是挺好的。可是有些像缩进、空 格、空白行之类的规范,在开发过程当中一直报错,未免太过于苛刻了。因此,我仍是会选择关闭eslint校验 ? Pick an ESLint preset Standard --------------Standard (https://github.com/feross/standard) 标准,去给提示的standardgithub地址看一下, 是js的标准风格 AirBNB (https://github.com/airbnb/javascript) JavaScript最合理的方法,这个github地址说的是JavaScript最合理的方法 none (configure it yourself) 本身定义风格, 我选择了第一项标准风格 ? Set up unit tests Yes --------------------要不要设置单元测试?有关于这个东西看(https://www.jianshu.com/p/8e22c1213260)看我的须要,我选是 ? Should we run `npm install` for you after the project has been created? (recommended) no -----在项目建立以后,咱们是否应该为您运行NPM安装?(推荐)(使用箭头键) Success! Created awesome-project at D:\ooo\awesome-project Inside that directory, you can run several commands: npm start Starts the development server for you to preview your weex page on browser You can also scan the QR code using weex playground to preview weex page on native npm run dev Open the code compilation task in watch mode npm run ios (Mac only, requires Xcode) Starts the development server and loads your app in an iOS simulator npm run android (Requires Android build tools) Starts the development server and loads your app on a connected Android device or emulator npm run pack:ios (Mac only, requires Xcode) Packaging ios project into ipa package npm run pack:android (Requires Android build tools) Packaging android project into apk package npm run pack:web Packaging html5 project into `web/build` folder npm run test Starts the test runner To get started: cd awesome-project npm install && npm start Enjoy your hacking time! D:\ooo>
相关文章
相关标签/搜索