generator-nju33

0.4.4 • Public • Published

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
  • [required] name
    This package name
  • [required] module-name
    This module name
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
  • [required] name
    This package name
  • [required] module-name
    This module name

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

Readme

Keywords

Package Sidebar

Install

npm i generator-nju33

Weekly Downloads

1

Version

0.4.4

License

MIT

Last publish

Collaborators

  • nju33