Giter Club home page Giter Club logo

ngseed's Introduction

ngseed

AngularJS/RequireJS seed project. Documentation

Installation

# Get NPM dependencies:
npm install

# Install global NPM dependencies:
npm -g install bower
npm -g install gulp
npm -g install karma

# Also to be able to run tests from CLI
# without browser window popping consider
# to install PhantomJS:
# http://phantomjs.org/download.html

Gulp flows

To make development faster and more automated there are several Gulp tasks available:

  • gulp

    Builds project into build directory. Under the hood compiles and compresses Sass/CSS, compiles scripts with (RequireJs) and uglifies it.

  • gulp bump-version

    Works with gitflow releases. E.g. when you’re on release/0.4.4 branch it will update cache beaters to follow version.

  • gulp karma

    Starts Karma server watching scripts updates.

  • gulp karma-ci

    Runs tests against the build (which should be run first) and quits, is good to use in CI scenarios.

  • gulp protractor

    Runs E2E tests against source files.

  • gulp protractor-ci

    Runs E2E tests against the build.

  • gulp sass

    Compiles Sass project, feeds output to Autoprefixer and minifies it via CSSO.

  • gulp watch

    Listens to changes to stylesheets and scripts and reloads browser page during development.

Code style

To make code prone to minification ng-annotate module is used.

Vendor update

  • bower install

    To update all the dependencies to the latest compatible versions.

Tests

Tests use Jasmine for assertions.

You can write tests in both Coffee and JS (see /source/js/modules/home/home-ctrl.spec.js and /source/js/modules/home/home-ctrl.spec.coffee).

E2E Tests

Protractor is used to provide way to do E2E tests. To install go to client directory and run:

npm install -g protractor

// This installs Selenium standalone
// server and Chrome driver:
webdriver-manager update

// Start the server with:
gulp webdriver

// To test source:
gulp protractor

Check p.conf and p-compiled.conf for Protractor settings.

Checkout Protractor docs for more information.

Future Releases

You can checkout planned new features on the Trello Board. Also feel free to create feature requests on github issues.

ngseed's People

Contributors

dmitryevseev avatar borodean avatar maqsim avatar julesbou avatar iwein avatar nikgraf avatar rpocklin avatar robinboehm avatar

Watchers

James Cloos avatar Aaron Lelevier avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.