Skip to content

Commit

Permalink
Updated so we can compile!
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhaowu committed May 13, 2014
1 parent c4c3d68 commit 8b54acf
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 20 deletions.
15 changes: 14 additions & 1 deletion Gruntfile.js
Expand Up @@ -63,19 +63,32 @@ module.exports = function(grunt) {
unit: {
configFile: "karma.config.js",
background: true
},
produnit: {
configFile: "ci-karma.config.js"
}
},
uglify: {
prod: {
files: {
"prod_static/js/app.min.js": JS_SOURCES,
"prod_static/js/login.min.js": LOGIN_JS
}
}
},
watch: {
jswatch: {
files: ALL_JS_SOURCES,
tasks: ["karma:unit:run", "jshint"]
}
}
},
});

grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask("default", ["jshint", "karma:unit:start", "watch"]);
grunt.registerTask("prod", ["uglify:prod", "karma:produnit"])
};
19 changes: 9 additions & 10 deletions scripts/travis/travis.karma.config.js → ci-karma.config.js
Expand Up @@ -14,16 +14,15 @@ module.exports = function(config) {

// list of files / patterns to load in the browser
files: [
'../../static/js/vendor/jquery-1.9.1.min.js',
'../../static/js/foundation.min.js',
'../../static/js/vendor/statusmsg.js',
'../../tests/jstests/testinit.js', // initialize the statusmsg stuff.
'../../static/js/vendor/angular.min.js',
'../../tests/jstests/angular-mocks.js',
'../../static/js/develop/**/*.js',
'../../projecto/apiv1/**/static/js/*.js',
'../../projecto/apiv1/**/jstests/*.js',
'../../tests/jstests/others/**/*.js'
'static/js/vendor/jquery-1.9.1.min.js',
'static/js/foundation.min.js',
'static/js/vendor/statusmsg.js',
'tests/jstests/testinit.js', // initialize the statusmsg stuff.
'static/js/vendor/angular.min.js',
'tests/jstests/angular-mocks.js',
"prod_static/js/app.min.js",
'projecto/apiv1/**/jstests/*.js',
'tests/jstests/others/**/*.js'
],


Expand Down
16 changes: 8 additions & 8 deletions package.json
Expand Up @@ -2,18 +2,18 @@
"name": "projecto-dev",
"version": "0.0.0",
"dependencies": {
"karma-cli": "0.0.4",
"grunt-cli": "^0.1.13",
"grunt": "^0.4.4",
"grunt-contrib-uglify": "^0.4.0",
"karma": "^0.12.16",
"grunt-contrib-watch": "^0.6.1",
"grunt-cli": "^0.1.13",
"grunt-contrib-cssmin": "^0.9.0",
"grunt-contrib-jshint": "^0.10.0",
"karma-jasmine": "^0.1.5",
"grunt-contrib-uglify": "^0.4.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-karma": "^0.8.3",
"karma": "^0.12.16",
"karma-chrome-launcher": "^0.1.3",
"karma-cli": "0.0.4",
"karma-firefox-launcher": "^0.1.3",
"karma-phantomjs-launcher": "^0.1.4",
"grunt-karma": "^0.8.3"
"karma-jasmine": "^0.1.5",
"karma-phantomjs-launcher": "^0.1.4"
}
}
2 changes: 1 addition & 1 deletion scripts/travis/test.sh
Expand Up @@ -7,7 +7,7 @@ if [ $? -ne 0 ]; then
fi

echo "Running client side tests..."
karma start scripts/travis/travis.karma.config.js
grunt prod
if [ $? -ne 0 ]; then
exit 1;
fi
Expand Down

0 comments on commit 8b54acf

Please sign in to comment.