0.4.4 • Published 7 years ago

generator-nju33 v0.4.4

Weekly downloads
30
License
MIT
Repository
github
Last release
7 years ago

Generator nju33

XO code style

Generator for me.

Install

npm i -g generator-nju33

Generators

npm

Libraries and es-modules.

Env

  • rollup (svelte|vue|babel-preset-env)
    • iife
    • umd
    • es
  • xo
  • ava
  • browser-sync

Usage

yo nju33:npm <name> <module-name> <-m[inimum]>
Arguments
Options
  • optional minimum or m
    Whether it is the minimum env

Process

  1. Copy a set of files
  2. Install with yarn
  3. Run git init

petty

Helpers and plugins.

Usage

yo nju33:petty <name> <module-name>
Arguments

Process

  1. Copy a set of files
  2. Install with yarn
  3. Run git init

babel

Common plugins

  • babel-preset-env
  • babel-plugin-transform-class-properties
  • babel-plugin-transform-decorators-legacy
  • babel-plugin-transform-object-rest-spread

Optional plugins

When typing y, install the following.

  • babel-plugin-transform-runtime
  • babel-plugin-external-helpers

If not, the following

  • babel-plugin-add-module-exports

Usage

yo nju33:babel
? Compile further after converting with Babel? (Y/n): _

Process

  1. Look for package.json and create .babelrc in the same directory or edit already .babelrc
  2. Install plugins with yarn

bookmarklet

Usage

yo nju33:bookmarklet <project-name>

License

The MIT License (MIT)

Copyright (c) 2017 nju33 nju33.ki@gmail.com

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago