- Install global dependencies:
npm install -g browserify gulp bower testem protractor - Install local npm dependencies:
npm install - Install local bower dependencies:
gulp bowerInstall - Install Protractor specific webdrivers:
webdriver-manager update - Build project into dist directory:
gulp build - Run application on local webserver plus watch for changes:
gulp watch - Run unit tests:
testem - Run end-to-end tests:
gulp protractor(gulp watchmust be running in as another process i.e. in another console window).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -*.min.js,-*.min.map,-app/_bower_components/*,-node_modules/*,-.tmp/*,-.jekyll/*,-.sass-cache/*,-dist/*,-public/*,-tmp/*,-vendor/bundle/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module('app', []).config(require('./common/exceptions’)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var gulp = require('gulp'); | |
| var bower = require('bower'); | |
| var del = require('del'); | |
| var _ = require('lodash'); | |
| var deleteDeps = function (deps, cb) { | |
| var path = bower.config.cwd + "/" + bower.config.directory; | |
| _.each(deps, function (dep) { | |
| del(path + "/" + dep, function (e) {}); | |
| }); |
npm set prefix ~/.nodeexport PATH=$HOME/.node/bin:$PATH >> ~/.profilewget http://npmjs.org/install.shor simply download via your browser. This is a shell script from npmjs.org and I found to be safe to run, please ensure you're happy before executing the script.sh install.sh(note: not sudo)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "scripts": { | |
| "test": "grunt travis --verbose" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var body = JSON.stringify({ | |
| token: 'foo', | |
| files: files // Array of filenames | |
| }); | |
| var headers = { | |
| 'Content-Type': 'application/json', | |
| 'Content-Length': Buffer.byteLength(body, 'utf8') | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var spawn = require('child_process').spawn; | |
| var Stream = require('stream'); | |
| /** | |
| * crops and resizes images to our desired size | |
| * @param {Stream} streamIn in stream containing the raw image | |
| * @return {Stream} | |
| */ | |
| exports.cropImage = function(streamIn){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| var Q = require('q'), | |
| FS = require('fs'), | |
| PB = require('progress'), | |
| AWS = require('aws-sdk'), | |
| conf = new require('../config')(); | |
| AWS.config.update(conf.aws_credentials); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package net.fkasoft.wowzamod; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import java.util.concurrent.CountDownLatch; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.ScheduledExecutorService; |