All Projects → mattlewis92 → generator-angular-library

mattlewis92 / generator-angular-library

Licence: MIT license
A yeoman generator for scaffolding a new angular 5 module that you can publish and share straight away to npm

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to generator-angular-library

Generator Create Redux App
Add redux, emotion-js and other useful libraries like react-router in top of create-react-app
Stars: ✭ 137 (+107.58%)
Mutual labels:  yeoman-generator
Generator Web Extension
Advanced WebExtension generator that creates everything you need to get started with cross-browser web-extension development.
Stars: ✭ 212 (+221.21%)
Mutual labels:  yeoman-generator
generator-nullfactory-xrm
Yeoman generator for Dynamics 365 Solutions. It generates a project structure that facilitates the quick creation builds and automated release strategies with minimal effort.
Stars: ✭ 15 (-77.27%)
Mutual labels:  yeoman-generator
Generator Jhipster Ionic
Ionic for JHipster 💥
Stars: ✭ 147 (+122.73%)
Mutual labels:  yeoman-generator
Generator Angular Webpack Es6
Yeoman generator for Angular projects using Webpack, ES6, SASS with some cool optional features. Feel free to contribute!
Stars: ✭ 172 (+160.61%)
Mutual labels:  yeoman-generator
Generator Chisel
Chisel is a development framework for creating easy to maintain and fast WordPress websites
Stars: ✭ 233 (+253.03%)
Mutual labels:  yeoman-generator
Generator Fountain Vue
Yeoman 'fountain' generator to start a webapp with Vue http://fountainjs.io
Stars: ✭ 104 (+57.58%)
Mutual labels:  yeoman-generator
generator-starterkit
Yeoman that scaffolds out a front end starterkit. 📦
Stars: ✭ 29 (-56.06%)
Mutual labels:  yeoman-generator
Generator Awesome List
😎 Yeoman generator for GitHub awesome lists
Stars: ✭ 203 (+207.58%)
Mutual labels:  yeoman-generator
generator-oraclejet
DEPRECATED Yeoman generator for creating Web and Mobile-hybrid Oracle JET based applications
Stars: ✭ 13 (-80.3%)
Mutual labels:  yeoman-generator
Generator Phaser Plus
[🛑 DISCONTINUED] It has been a long journey but development of `generator-phaser-plus` is now over. I recommend you have a look and fork `yandeu/phaser-project-template` instead.
Stars: ✭ 148 (+124.24%)
Mutual labels:  yeoman-generator
Generator Esri Appbuilder Js
Yeoman generator to help customize Esri's WebAppBuilder
Stars: ✭ 168 (+154.55%)
Mutual labels:  yeoman-generator
Generator Api
🚀 Yeoman generator for creating RESTful NodeJS APIs, using ES6, Mongoose and Express
Stars: ✭ 247 (+274.24%)
Mutual labels:  yeoman-generator
Generator Micro Service
🛫 Yeoman generator to kick-start your microservice with `micro` and `ava`!
Stars: ✭ 145 (+119.7%)
Mutual labels:  yeoman-generator
generator-ngx-firebase-bootstrap
Generator for Angular / Firebase / Bootstrap projects
Stars: ✭ 44 (-33.33%)
Mutual labels:  yeoman-generator
Rest
REST API generator with Node.js, Express and Mongoose
Stars: ✭ 1,663 (+2419.7%)
Mutual labels:  yeoman-generator
Generator Chrome Extension Kickstart
Scaffold out a Web Extension http://yeoman.io
Stars: ✭ 232 (+251.52%)
Mutual labels:  yeoman-generator
generator-fountain-react
Yeoman 'fountain' generator to start a webapp with React
Stars: ✭ 36 (-45.45%)
Mutual labels:  yeoman-generator
delphi-generator-delphi
Yeoman generator for Delphi projects
Stars: ✭ 14 (-78.79%)
Mutual labels:  yeoman-generator
Generator Teams
A Yeoman Generator for Microsoft Teams
Stars: ✭ 246 (+272.73%)
Mutual labels:  yeoman-generator

generator-angular-library Build Status

Simply scaffold your angular 5.0+ library with this yeoman generator and start writing code without having to setup any tedious boilerplate tooling.

Everything is pre-configured, from a local development server with unit tests, through to publishing your library to npm and a demo to github pages. Hopefully the angular-cli project will one day make this generator obsolete, however currently the angular-cli is geared towards creating a full web-app rather than just a single re-usable npm library.

Installation

First, install Yeoman and generator-angular-library using npm (we assume you have pre-installed node.js).

npm install -g yo generator-angular-library

Then create your new repo on github, check it out and from the root of the repo folder run:

yo angular-library

Folder structure

  • src should hold your libraries components / services / pipes etc. Organise them however you see fit!
  • test contains all your libraries test files. Simply suffix the filenames with .spec.ts and they will be auto-included and ran
  • demo contains a demo app that shows off your library to users. It is also handy during development as unit tests will only get you so far when developing a UI component

npm scripts

Once you've scaffolded out your library, everything is then controlled by npm scripts:

  • npm start to serve the demo page of your library with live-reload as you develop. Unit tests are also run in the background.
  • npm test will run your unit tests once and npm run test:watch will run them continuously
  • npm run commit will run the git commit wizard when you're ready to commit a change
  • npm run release will publish a new release. First make sure you've created the gh-pages branch and pushed it to github. Next change the version in package.json to the new version you would like to release, but don't commit it yet. Now run npm run release and the new version will be built and published to npm, as well as the demo and documentation generated and pushed to the gh-pages branch of your project.

Tools used

License

MIT © Matt Lewis

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].