bee-build-tools
tools for js and react
Last updated 6 months ago by edmund_chen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bee-build-tools 
SYNC missed versions from official npm registry.

bee-build-tools

集成webpack bable eslint webpack-dev-server工具及依赖

安装

npm i --save-dev bee-build-tools

webpack-dev-server 使用

引用配置
const getwebpackDevConfig =  require('bee-build-tools/lib/getwebpackDevConfig')

module.exports = getwebpackDevConfig({});
启动
"scripts": {
"dev": "webpack-dev-server --config ./webpack.dev.js",
}

默认读取examples 目录下 *.js index.html

dist

webpack 编译

  "scripts": {
    "dist": "bee-tools run dist --babel-runtime",
  }
配置entry

package.json 文件

  "config": {
    "entry": {
      "rc-fab-button": [
        "./src/index.js"
      ]
    }
  }

compile

bable 编译 src/*

 "scripts": {
    "compile": "bee-tools run compile --babel-runtime",
  }

其他

 "scripts": {
    "lint": "bee-tools run js-lint",  ## eslint
    "gh-pages": "bee-tools run gh-pages", ## 发布github pages
    "buildExample": "bee-tools run buildExample" ## 编译buildExample
  },

Current Tags

  • 0.0.12                                ...           latest (6 months ago)

12 Versions

  • 0.0.12                                ...           6 months ago
  • 0.0.11                                ...           7 months ago
  • 0.0.10                                ...           7 months ago
  • 0.0.9                                ...           7 months ago
  • 0.0.8                                ...           7 months ago
  • 0.0.7                                ...           7 months ago
  • 0.0.6                                ...           7 months ago
  • 0.0.5                                ...           7 months ago
  • 0.0.4                                ...           7 months ago
  • 0.0.3                                ...           7 months ago
  • 0.0.2                                ...           7 months ago
  • 1.0.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 12
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |