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

angular-gulp-skeleton

v0.0.4

Published

Angular and gulp skeleton with dev and prod environment management

Downloads

15

Readme

Angular Gulp Skeleton

This repository is an Angular skeleton with Gulp as project builder/runner task.

It uses :

  • AngularJs
  • Angular UI Router
  • Twitter Bootstrap (Full CSS or Sass)
  • Font Awesome

Installation

Clone the repository and remove the .git folder :

git clone --depth=1 https://github.com/jbouzekri/angular-gulp-skeleton
cd angular-gulp-skeleton
rm -rf .git

Install gulp globally : Official documentation

npm install -g gulp

Install dependencies using npm and bower. The npm install command will run bower install too :

npm install

Structure

The project uses gulp to build and bower for frontend dependencies.

Your app source files will be stored in the src/ folder. When building and serving, all files will be processed and copied to the automatically created dist/ folder.

Some parameters of the gulp script can be configured with the config.json file.

Documentation

Building your sources

gulp build [--env=prod]

  • It copies all files from src/ to dist/ folder
  • With sass enabled, it processes sass files too
  • When used with prod env parameters, it applies all production transformations (minification, concatenation, ...)

Serving your project

gulp serve [--env=prod] [--watch [--no-livereload] [--tdd]]

  • This command build (like the previous command) files then serves them on http://localhost:8888
  • --watch moves changed files to dist/ folder and launches live reload (it cannot be used with --env=prod parameter)
  • --watch --no-livereload same as the before but without live reload
  • --watch --tdd same as before but lanches test units at each changes

Testing your project

gulp test:unit

  • Run unit tests

gulp test:e2e [--env=prod]

  • Run functional tests. The site should be available on localhost:8888 before running this command.

Note : Check the value of the seleniumJar in test/protractor.conf.js and verify that the version is the same that was downloaded.

You can use npm run-script protactor-webdriver to download the selenium server jar.

Configuration

Configuration is located in :

  • test/karma.conf.js : test unit configuration
  • ŧest/protractor.conf.js : functional test configuration
  • config.json : task general configuration

For Karma and Protractor, go to their respective documentation.

In config.json, you can configure :

  • env : default environment
  • use_sass : enable the use of sass or css
  • bases : base folders
  • path : paths with wildcards to find scripts, stylesheets, fonts, images, ...
  • serve : serve server host and port