generator-umd-module-typescript

1.1.2 • Public • Published

Quick start

First, install Yeoman and generator-umd-module-typescript using npm (assuming you already have node.js pre-installed).

$ npm install -g yo
$ npm install -g generator-umd-module-typescript

make a new directory and cd into it:

$ mkdir awesome-module
$ cd awesome-module

and generate your new module:

$ yo umd-module-typescript

The generator will prompt you for:

? Your full name: mizne
? Your email address: w20054319@126.com
? Git repository url: https://github.com/mizne/awesome-module
? Your library name (kebab case): awesome-module

and create the following files for you:

.
├── README.MD
├── package.json
├── src
│   ├── index.ts
│   ├── core
        ├── awesome.ts
├── .gitignore
├── tsconfig.json
└── tslint.json
└── webpack.config.js

You can then add or edit *.ts files in the src/ directory and run:

$ npm run build
$ npm run test

Finally you publish your library to NPM:

$ npm publish

Readme

Keywords

Package Sidebar

Install

npm i generator-umd-module-typescript

Weekly Downloads

2

Version

1.1.2

License

MIT

Last publish

Collaborators

  • mizne