quick-dev-cli

0.2.1 • Public • Published

Quick Dev

Zero-configuration web environments with babel and webpack.

Installation

$> npm install -g quick-dev-cli

Usage

Start a dev server from the current directory:

$> qd [-d <directory>] [-p <port>] [-b <.babelrc>] [-w <webpack.config>] [-e <index.js>] [-i <index.html>]

QD provides the following with no configuration:

  • Default entry file index.js
    • Override with the -e option
  • Default index.html
    • If an index.html is found in directory, will override
    • Auto loads any css files in base directory
    • Override with the -i option
  • Default babel config
    • Override with the -b option
  • Default webpack config
    • Override with the -w option

You can override these with their respective arguments

  • -b, --babel <location to .babelrc>
  • -w, --webpack <location to webpack.config>
  • -i, --index <location to index.html>

Babel configuration

Presets

  • env
  • react
  • stage-2

Plugins

  • transform-class-properties
  • transform-object-rest-spread
  • babel-plugin-transform-react-jsx

Webpack configuration

Loaders

  • styles-loader
  • css-loader
  • sass-loader

Package Sidebar

Install

npm i quick-dev-cli

Weekly Downloads

0

Version

0.2.1

License

ISC

Unpacked Size

7.32 kB

Total Files

7

Last publish

Collaborators

  • tmanderson