node-es-boilerplate:Node.js ES样板

  • n0_280155
    了解作者
  • 39.6KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-23 21:59
    上传日期
Node.js ES样板 要求 纱线> = 1.2.1 Node.js> = 8.4.0 安装 $ yarn 跑步 发展: $ yarn dev 生产: $ node dist/index.js 指令 命令 描述 make flow 运行流测试 make lint 运行皮棉测试 make lint-fix 运行lint测试并在可能时自动修复 make test 运行摩卡测试和覆盖率测试 make report 显示覆盖率报告( make test ) make build 将项目构建到dist目录中 make all 测试&&流程&&皮棉&&建立 make clean 清理所有 make clean-dist 清理dist文件 make clean-cov 清理覆盖文件 make app-secret 生成应用秘密 Babel插件
node-es-boilerplate-master.zip
  • node-es-boilerplate-master
  • src
  • index.js
    133B
  • config
  • default.js
    460B
  • test
  • index.test.js
    137B
  • .flowconfig
    180B
  • yarn.lock
    129.7KB
  • .mocharc
    41B
  • .travis.yml
    113B
  • README.md
    1.3KB
  • Makefile
    670B
  • .editorconfig
    171B
  • .gitignore
    88B
  • .babelrc.js
    453B
  • package.json
    1.2KB
  • .nycrc
    231B
内容介绍
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) # Node.js ES Boilerplate ### Requirements * yarn >= 1.2.1 * Node.js >= 8.4.0 ### Install ```sh $ yarn ``` ### Run Development: ```sh $ yarn dev ``` Production: ```sh $ node dist/index.js ``` ### Commands | Command | Description |-------------------|------------ | `make flow` | run flow test | `make lint` | run lint test | `make lint-fix` | run lint test and auto fix if possible | `make test` | run mocha tests and coverage test | `make report` | show coverage report (after `make test`) | `make build` | build project into dist directory | `make all` | test && flow && lint && build | `make clean` | clean all | `make clean-dist` | clean dist files | `make clean-cov` | clean coverage files | `make app-secret` | generate app secret ### Babel Plugins * https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-class-properties * https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-object-rest-spread * https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-export-namespace-from * https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-decorators * https://github.com/entwicklerstube/babel-plugin-root-import
评论
    相关推荐