WebCell DevCLI
Developer command-line tool for WebCell
Feature
Boot a directory as a WebCell project
Create a Component from Code template
Bundle components to a package with JS modules in it
Support to import HTML & CSS (LESS, SASS/SCSS or Stylus) as a
String
, JSON & YAML as anObject
, and other assets as Data URI in ES moduleReal-time preview during development in Chrome, Firefox or IE
Usage
Create a Project
npm init web-cell path/to/your_project \
--remote https://github.com/your_id/repo_name.git
Create a Component
web-cell new your-tag attr1,attr2
Create a Router & Pages
web-cell new-router router_prefix page1,page2
Configuration reference
Command
Usage: web-cell [options] [command]
Developer command-line tool for WebCell
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
boot [path] [options] Boot a directory as a WebCell project
new <name> [attributes] Create a Component from Code template
(Attributes should be separated by commas)
new-router <name> [pages] Create a Router from Code template
(Pages should be separated by commas)
pack Bundle components to a package with JS modules in it
preview Real-time preview during development
help [cmd] display help for [cmd]