• 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:Userso_o.wxmodules ode_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:oooawesome-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>
  • 相关阅读:
    [代码保留]ORA01033: ORACLE initialization or shutdown in progress
    我的重构步骤:重构两份过程一致、中间数据类型不一致的超长函数
    C# 由UTF8 BOM头引发的两个问题(C#去BOM头)
    XPath 基本语法
    Check Browser Compatibility for CSS3 and HTML5 features
    【Mrak】C# 文本文件 ANSI编码格式 转 UTF8
    SQL 过滤重复数据
    重构具有相似“过程”的代码的经验总结(以方法为例)
    POS 收款机资料整理
    WinForm中的暗杀杀手——相对路径
  • 原文地址:https://www.cnblogs.com/rswl/p/10450536.html
Copyright © 2020-2023  润新知