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-deca-angular

v0.1.3

Published

Yeoman generator

Downloads

2

Readme

Yeoman deca-angular generator

Smart Yeoman generator for AngularJS - powered by Gulp

Usage

Install yo, gulp, bower, generator-deca-angular:

npm install -g gulp bower yo generator-deca-angular

or

yarn global add gulp bower yo generator-deca-angular

To use Sass, you will need to first install Ruby and Sass:

  • Install Ruby by downloading from here or use Homebrew
  • Install the sass gem:
gem install sass

Make a new directory, and cd into it:

mkdir my-new-project && cd $_

Run yo deca-angular

yo deca-angular

If you have yarn installed:

Note: This requires yarn v0.16 or higher.

yarn start

If you prefer to use npm, please modify the package.json file script property:

From:

"start": "yarn && bower install && gulp"

to:

"start": "npm install && bower install && gulp"

and then run:

npm start

start is a script that will install the node and bower packages as well as start the Gulp automatic build workflow. Gulp will be running continuously in the background until you decide to stop it (CTRL + C in the Mac). A browser tab/window will open to display the application. Every time that you make a change to a non-library, non-node-module .css, .html or .js file, the browser will reload and display the changes automatically.

Use the prompts to enter the project and author name.

Conventions

For the project’s JavaScript files, please follow this naming convention as it helps Gulp sort out your AngularJS files and inject them automatically in the correct order:

/**
  Each file type is denoted by its ending name.
  A dot (.) should be placed before the name expect for the app.js file
  For example: sample.controller.js
  The files will be injected in index.html in this order from top to bottom.
  This ensures that each file has its proper dependencies injected before its
  own injection.
**/

  'app/**/*.app.js',
  'app/**/*.module.js',
  'app/**/*.constants.js',
  'app/**/*.provider.js',
  'app/**/*.enum.js',
  'app/**/*.model.js',
  'app/**/*.config.js',
  'app/**/*.filter.js',
  'app/**/*.directive.js',
  'app/**/*.decorator.js',
  'app/**/*.interceptor.js',
  'app/**/*.service.js',
  'app/**/*.workflow.js',
  'app/**/*.repository.js',
  'app/**/*.resolver.js',
  'app/**/*.controller.js',
  'app/**/*.component.js',
  'app/**/*.js'

  // Non-Angular scripts are injected last.

CAUTION

  • When adding or removing dependencies with bower, it is critical that you use the --save tag along with install or uninstall. Otherwise, the inject:lib task won't get triggered and index.html won’t be updated. You would not want to just remove the files from the lib folder but leave their declaration as dependencies in bower.json; otherwise, the next time that you run bower install those undesired packages will be installed – adding unnecessary bulk to the project.

  • It is critical to always start the project using yarn start instead of gulp; otherwise, you won't be able to inject dependencies already added to the lib folder. After the project is running, feel free to use any gulp task independently.

Building for GitHub Pages:

At any stage of your development, you can build/re-build the docs folder that will be used by Github Pages as the source of content for your Page by running this command in another terminal window:

gulp build:docs

The docs folder will be create (or deleted and re-created) and populated with the transformed .scss and .js files along with the other project files needed to have a working page equal to the one you have been playing around with during development.

To enable this Github feature:

  • Go to your repo Settings.
  • Scroll down to the Github Pages section.
  • On Source select "master branch /docs folder". Note: If there is no docs folder in the repo, descendant of the root, this option will be disabled.
  • Click Save.
  • Click on the link shown in the green banner and enjoy your live page!