node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

tapas-build

Tapas-build

A command line tools for building React project.

NPM Build Status

Install

$ npm install tapas-build -g

Usage

$ tapas-build --index pathToYourIndex.html <entry> <output>

Options

-h, --help
-p, --production
-i. --index

You can also add the config variables tapas to your projects package.json like this:

  "tapas": {
    "entry": "./client/app.js",
    "output": "./build",
    "index": "./template.html",
    "vendor": ["react", "react-dom"],
    "babelLoaderPlugins": ["./scripts/babelRelayPlugin"],
    "port": "12306",
    "cssModules": true,
    "aliasRoot" : "#",
    "resolveRoot": "/absolute/path/to/your/src/directory",
    "autoExternals": true,
    "proxy": {
      "/api": "http://example.com:23000/no-slash-at-the-end",
      "/backend": "http://example.com"
    }
  }

The keys of tapas['proxy'] follows the pattern of parameter 'path' used in app.use([path], middleware). Check the details here.

License

Copyright (c) 2015 Tapas Tech

MIT http://opensource.org/licenses/mit-license.php