var replace = require('gulp-replace');
function cache_version() {
return (Math.floor((Math.random() * 1000) + 1)).toString();
}
gulp.task('version', function () {
gulp.src('src/**/*.js);
- You are currently using jsTestDriver as your test runner and assert engine for all vanilla javascript objects. In order to test angular controllers we use jasmine.js version 1.3. Jasmine is another testing framework that sits on top of jsTestDriver. All jasmine versions past 2.0 seem to break some other dependencies such as angular-mocks.js.
- The order of the includes in the configuration file matters! jasmine.js and JasmineAdapter.js must be before angular.js and angular-mocks.js.
- The angular controller test cases must be declared after angular and angular mocks.
- All angular controller tests use jsTestDriver as the test runner, and jasmine as the assert engine.
- Open up jsTestDriver.conf or javascript_testing_config.jstd. Both are YAML-like configuration files and can be used interchangeably.
Start
If you are seeing Mongo soft rlimits warnings in your logs, or a WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
when you login to mongo shell via mongo
from the commandline, or any mysterious/unexplained mongo connection errors... follow this how-to exactly and it will resolve the issue for you.
(Source of this how to found at basho/basho_docs#1402)
First file:
sudo vi /Library/LaunchDaemons/limit.maxfiles.plist
...containing:
- Open command line interface
- Type
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
- Type
killall Dock
ctrl + command + j
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
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |
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
# Delete every Docker containers | |
# Must be run first because images are attached to containers | |
docker rm $(docker ps -a -q) | |
# Delete every Docker image | |
docker rmi $(docker images -q) |