tomo-cli
A friendly command line tool designed to help create sustainable software using web technology
Last updated 2 months ago by jhwohlgemuth .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tomo-cli 
SYNC missed versions from official npm registry.

Module Version Build Status Code Coverage

tomo

A friendly command line tool designed to help create sustainable software using web technology

It's like create-react-app, but with less complexity and more flexibility (tomo even has "out of the box" support for HMR using Webpack or Parcel)

It's like yeoman+generator, but with a bespoke interface written with the React API that focuses on User Experience (UX). tomo can also be used to progressively enhance existing projects!

It's like GatsbyJS, but can be used to make and enhance modules, libraries, plugins, apps, sites, servers, and more.

It's like mrm, but with mostly different options, built with a React-based UI, and focused more on code, less on config. Honestly, mrm is really cool... tomo and mrm could definitely be used together.

It's like boilerplate from GitHub, but with a streamlined interface designed to be user friendly (and all of the stuff above too)

(see the wiki for my full list of alternatives/inspirations)

Global install

$ npm install --global tomo-cli
$ tomo [command] [terms] [options]

No install

$ npx tomo-cli [command] [terms] [options]

Local install

  • Create a package.json with npm init -y
  • Add a "setup" script to the package.json
{
  "scripts": {
    "setup": "tomo-cli new app --use-react --with-cesium",
    "deploy": "surge dist"
  }
}
  • Install tomo locally with npm install tomo-cli --save-dev
  • Build a new app with npm run setup

Install and Deploy

tomo web apps work with surge.sh and now.sh out of the box!

  1. Install tomo-cli
  2. Install surge or now CLI
  3. Scaffold a web app:
    tomo new app [options]
    
  4. Update deploy task in package.json (pick surge or now):
    {
        "deploy": "surge dist"
    }
    
    {
        "deploy": "now dist"
    }
    
  5. Excecute deploy script:
    npm run deploy
    

No Install and Deploy

Quickly see the results of tomo new server... live ... on Heroku

Deploy

Usage

tomo wants to help you explore and exploit modern web technologies. With a strong focus on Developer Experience (DX), tomo will allow you to build new stuff and augment existing stuff. "No FOMO with tomo!"™

Create a new app with Marionette.js and Webpack

Create a new app using React and Parcel (with blazing fast HMR)

Add ESLint to your project

Select what you want to add via the tomo CLI "add" menu

Replace Webpack with Rollup

Made a mistake while typing? tomo has your back ;)

Read the help! So exciting!

$ tomo --help

  Usage

    tomo [commands] [terms] [options]


  Commands

    new, add, remove, version


  Terms

    [new]
    project, app, server

    [add]
    a11y, babel, browsersync, cypress, electron, esdoc, eslint, jest,
    marionette, makefile, parcel, postcss, react, reason, rollup, webpack

    [remove]
    a11y, browsersync, cypress, parcel, postcss, reason, rollup, webpack
   

  Options

    --version, -v           Print version
    --source-directory, -d  Directory for source code [Default: ./src]
    --output-directory, -o  Directory for build targets [Default: ./dist]
    --assets-directory, -a  Directory for assets [Default: ./assets]
    --use-rollup,           Use Rollup instead of Webpack [Default: false]
    --use-parcel,           Use Parcel instead of Webpack [Default: false]
    --use-react, -r         Add React support to workflow [Default: false]
    --react-version         React version for ESLint configuration [Default: '16.8']
    --with-cesium           Add CesiumJS to your project [Default: false]
    --ignore-warnings, -i   Ignore warning messages [Default: false]
    --skip-install, -s      Skip npm installations [Default: false]
    --overwrite             Copy files, even if they alrady exist [Default: false]
    --browser               Indicate tasks are intended for the browser [Default: false]
    --port, -p              Configure port for workflow tasks that use it [Default: 4669]
    --debug                 Show debug data [Default: false]

BTW

tomo means "friend" in Japanese (友)

License

MIT © Jason Wohlgemuth

Current Tags

  • 1.5.9                                ...           latest (2 months ago)

51 Versions

  • 1.5.9                                ...           2 months ago
  • 1.5.8                                ...           2 months ago
  • 1.5.7                                ...           3 months ago
  • 1.5.6                                ...           4 months ago
  • 1.5.5                                ...           4 months ago
  • 1.5.4                                ...           4 months ago
  • 1.5.3                                ...           5 months ago
  • 1.5.2                                ...           5 months ago
  • 1.5.1                                ...           5 months ago
  • 1.5.0                                ...           5 months ago
  • 1.3.3                                ...           5 months ago
  • 1.3.1                                ...           5 months ago
  • 1.2.10                                ...           5 months ago
  • 1.2.9                                ...           5 months ago
  • 1.2.7                                ...           5 months ago
  • 1.4.3                                ...           5 months ago
  • 1.4.2                                ...           5 months ago
  • 1.4.1                                ...           5 months ago
  • 1.4.0                                ...           5 months ago
  • 1.3.0                                ...           5 months ago
  • 1.2.8                                ...           5 months ago
  • 1.2.6                                ...           5 months ago
  • 1.2.5                                ...           6 months ago
  • 1.2.4                                ...           6 months ago
  • 1.2.3                                ...           6 months ago
  • 1.2.2                                ...           6 months ago
  • 1.2.1                                ...           6 months ago
  • 1.2.0                                ...           6 months ago
  • 1.1.0                                ...           6 months ago
  • 1.0.9                                ...           8 months ago
  • 1.0.8                                ...           8 months ago
  • 1.0.7                                ...           8 months ago
  • 1.0.6                                ...           8 months ago
  • 1.0.5                                ...           9 months ago
  • 1.0.4                                ...           9 months ago
  • 1.0.2                                ...           9 months ago
  • 1.0.1                                ...           9 months ago
  • 1.0.0                                ...           10 months ago
  • 0.1.12                                ...           10 months ago
  • 0.1.11                                ...           10 months ago
  • 0.1.10                                ...           10 months ago
  • 0.1.9                                ...           10 months ago
  • 0.1.8                                ...           10 months ago
  • 0.1.7                                ...           10 months ago
  • 0.1.6                                ...           10 months ago
  • 0.1.5                                ...           10 months ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 51
Dependencies (34)
Dependents (4)

Copyright 2014 - 2016 © taobao.org |