1.1.2 • Published 8 years ago
generator-umd-module-typescript v1.1.2
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-typescriptmake a new directory and cd into it:
$ mkdir awesome-module
$ cd awesome-moduleand generate your new module:
$ yo umd-module-typescriptThe 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-moduleand create the following files for you:
.
├── README.MD
├── package.json
├── src
│   ├── index.ts
│   ├── core
        ├── awesome.ts
├── .gitignore
├── tsconfig.json
└── tslint.json
└── webpack.config.jsYou can then add or edit *.ts files in the src/ directory and run:
$ npm run build$ npm run testFinally you publish your library to NPM:
$ npm publish