Code Monkey home page Code Monkey logo

generator-walle-node's Introduction

generator-walle-node NPM version Build Status Dependency Status Coverage percentage

It generates the node application with basic files from scratch.

Installation

First, install Yeoman and generator-walle-node using npm (we assume you have pre-installed node.js).

npm install -g yo

Change to generator-walle-node folder, then run npm link.

Then generate your new project:

yo walle-node

Getting To Know walle-node

walle-node is the main generator which leverages the sub generators to generates the application from scratch.

D:\Working\sources\git\misc\test\test\newgen>yo walle-node

     _-----_     ?──────────────────────────?
    |       |    │  Welcome to the dazzling │
    |--(o)--|    │   generator-walle-node   │
   `---------'   │        generator!        │
    ( _'U`_ )    ?──────────────────────────?
    /___A___\   /
     |  ~  |
   __'.___.'__
 '   `  |° ' Y `

? Would you like to enable git? Yes
? git remote url (origin): https://github.com/helloworld
? name: newgen
? version: 0.0.1
? description: The sample app
? Would you like to enable the main entry point? Yes
? main entry point: index.js
? test command: echo "Error: no test specified" && exit 1
? keywords (comma-delimited): Sample,App
? author: Oliver Wu
? author's email: [email protected]
? author's url: www.autodesk.com
? Which license do you want to use? MIT
   create package.json
   create .gitignore
   create .gitattributes
   create index.js
   create LICENSE
npm init done!
  1. Would you like to enable git? If no, the git and its related configurations are not generated. git is only initiated once.

  2. Would you like to enable the main entry point? If no, there is no main entry point in package.json.

  3. Which license do you want to use? Choose any license or use sub generater, adsk-license, to generate the specific license.

Getting To Know sub generators

git-remote

It adds the remote url (origin) to the .git/config if the [remote "origin"] doesn't exist. It relies on generator-git-init generator and is triggered by walle-node.

yo walle-node:git-remote

npm-init

It acts as npm init and is triggered by walle-node.

yo walle-node:npm-init

It also support the option to specify the prompts.

yo walle-node:npm-init --pkgConfig "{\"version\": \"1.0.0\"}"

commander

Commander scripts, see https://github.com/tj/commander.js

yo walle-node:commander

Usage: node scripts <command> [<options>] [--] [<args>]

Each commander has its own folder named as the commander name, such as build, clean, etc.

The commander executes the specific logic defined in executor.js which locates at the same folder with index.js. For example, the webpack generator generates the build logic in executor.js and copy it to the target project. That build logic is used when building the project.

The configuration is combined by mulitple sources and is leveraged by all executors.

webpack

The webpack configuration generator.

yo walle-node:webpack --skip-install

License

MIT © Oliver Wu

generator-walle-node's People

Contributors

oliverwuadsk avatar spywo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.