npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-angular-seed

v0.3.4

Published

A Yeoman generator to get your Angular.js project started on the right track.

Downloads

5

Readme

#generator-angular-seed

A Yeoman generator to get your Angular.js project started on the right track.

Features:

  • Organizes an Angular app using a modular approach to organization
  • Configures Gulp and a Gulpfile for development and build tasks
  • Configures Karma + Jasmine for unit testing

Installation

$ npm install -g generator-angular-seed
$ yo angular-seed

This will ask you a few questions about versions of dependencies. If you don't want a certain dependency, just press enter to skip it. Then,

$ npm install
$ bower install

Structuring your code

The root of the Angular app is in app/scripts. This directory also comes with one dummy module. As you build out more modules (i.e. login, admin, etc..) make a corresponding directroy for this module in the app/scripts folder. Put all files important to this module (LoginController.js, loginService.js, etc.) in this folder.

Developing

Run the Gulp process

$ gulp
  • When adding a new file, be sure to restart the gulp process
  • Templates are included in the app using the html2js utility. Template files must use an .tpl.html extension to be included
  • If you include a new dependency via bower, be sure to manually add any JS/CSS files you want to include in the corresponding 'vendorJs' and 'vendorStyles' arrays in 'Gulpfile.js'

Unit Testing

It is best to place your unit tests in the same folder as the actual code you are thinking about testing. Unit test files must use an .test.js extension to be included. Gulp will watch for any changes in any .test.js files and rerun the test suite automatically.

To manually run the unit tests

$ gulp unit-test

E2E testing

Test files should be placed into the /e2e directory. Test files must be suffixed with .test.js to be picked up. Gulp will automatically rerun the tests on change to any of these files, but if you wish to run the e2e suite manually, the task is.

$ gulp e2e-test

Note: Your server and dev environment must be running for e2e tests to work.

Creating builds

A few utilities are included to create built bundles of your application. All builds are placed in the 'build' directory.

Note: if you have app wide variables that need to vary in different environments (for example, a backend url that may be different in development than in production), put these into respective files located in the config directory.

Creates a production bundle with all javascripts (vendor and yours) combined into 1 file and minified. Angular app will use any config in the config/config-production.js file.

$ gulp production

Same as above, except the config/config-staging.js file is used.

$ gulp staging

Puts all the scripts from your Angular app (not including vendor scripts) into one file, all vendor scripts into another file, and all templates into a 3rd file, all in the 'build' directory. This task is useful if you want to create something for publishing on bower, or otherwise produce human readable distributions of your code.

$ gulp build

License

MIT