iceberg-packer
Iceberg Tools for the command line
Last updated 2 years ago by nikini .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install iceberg-packer 
SYNC missed versions from official npm registry.

Iceberg Tool

NPM Version NPM Downloads

This tool has webpack, jest and other technologies built in to help you bundle and test your React modules

Installation

You should install it globally first:

$ npm install iceberg-packer -g

and then run:

$ iceberg init

which will help you create a project.

Watch

The watch starts the webpack watch, jest watch and the resources copy. You can choose to exclude: resources, webpack, jest, dev-server.

$ iceberg watch [bundle]

The options for the watch are:

 -h,  --help                outputs the usage information
 -e,  --exclude <packages>  what packages to exclude (separated by comma)
 -s,  --single              run once and then exit (webpack and jest)
 --silent                   this flag will hide OS notifications
 --host <hostname>          hostname for the cache clear
 --port <port>              port for the cache clear
 --dev-port <dev-port>      port for the webpack-dev-server
 --prod                     production environment (builds just like for production without the split)

Examples

$ iceberg watch --e jest,webpack
$ iceberg watch --exclude resources,jest
$ iceberg watch -s --silent
$ iceberg watch --prod

Run

The run command starts a task, like: webpack, jest, eslint.

$ iceberg run <package>

The options for the run are:

 -h,  --help                outputs the usage information
 --silent                   this flag will hide OS notifications
 --host                     hostname for the cache clear
 --port                     port for the cache clear
 --fix                      this is only useful for eslint - fixes some linting errors

Examples

$ iceberg run jest --silent
$ iceberg run webpack
$ iceberg run eslint --fix

Make

A tool to scaffold components or prop-types.

$ iceberg make [name] [options]

The options for the make are:

 -h, --help      	outputs the usage information
 -t, --type <type>	the type of element you are scaffolding

For type you can use: component, prop-type.

Examples

$ iceberg make common/visualization -t component
$ iceberg make highcharts --type component
$ iceberg make common/visualization/chart-options -t prop-type

Build

It builds the JS bundle ready for production

$ iceberg build

Remove

Remove iceberg from the project.

$ iceberg remove

License

MIT

Current Tags

  • 0.6.7                                ...           latest (2 years ago)

59 Versions

  • 0.6.7                                ...           2 years ago
  • 0.6.6                                ...           2 years ago
  • 0.6.5                                ...           2 years ago
  • 0.6.4                                ...           2 years ago
  • 0.6.3                                ...           2 years ago
  • 0.6.2                                ...           2 years ago
  • 0.6.1                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.8                                ...           2 years ago
  • 0.5.7                                ...           2 years ago
  • 0.5.6                                ...           2 years ago
  • 0.5.5                                ...           2 years ago
  • 0.5.4                                ...           2 years ago
  • 0.5.3                                ...           2 years ago
  • 0.5.2                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.14                                ...           2 years ago
  • 0.4.13                                ...           2 years ago
  • 0.4.12                                ...           2 years ago
  • 0.4.11                                ...           2 years ago
  • 0.4.10                                ...           2 years ago
  • 0.4.9                                ...           2 years ago
  • 0.4.8                                ...           2 years ago
  • 0.4.7                                ...           2 years ago
  • 0.4.6                                ...           2 years ago
  • 0.4.5                                ...           2 years ago
  • 0.4.4                                ...           2 years ago
  • 0.4.3                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.12                                ...           2 years ago
  • 0.3.11                                ...           2 years ago
  • 0.3.10                                ...           2 years ago
  • 0.3.9                                ...           2 years ago
  • 0.3.8                                ...           2 years ago
  • 0.3.7                                ...           2 years ago
  • 0.3.6                                ...           2 years ago
  • 0.3.5                                ...           2 years ago
  • 0.3.4                                ...           2 years ago
  • 0.3.3                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.11                                ...           2 years ago
  • 0.2.10                                ...           2 years ago
  • 0.2.9                                ...           2 years ago
  • 0.2.8                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.2.6                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 59
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |