Generator nju33
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
- [required]
name
This package name - [required]
module-name
This module name
Options
- [optional]
minimum
orm
Whether it is the minimum env
Process
- Copy a set of files
- Install with
yarn
- Run
git init
petty
Helpers and plugins.
Usage
yo nju33:petty <name> <module-name>
Arguments
- [required]
name
This package name - [required]
module-name
This module name
Process
- Copy a set of files
- Install with
yarn
- 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? : _
Process
- Look for
package.json
and create.babelrc
in the same directory or edit already.babelrc
- Install plugins with
yarn
bookmarklet
Usage
yo nju33:bookmarklet <project-name>
License
The MIT License (MIT)
Copyright (c) 2017 nju33 nju33.ki@gmail.com