Skip to content

Commit

Permalink
test build
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann-S committed Apr 26, 2017
1 parent 7480538 commit 40d1d7f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ module.exports = function (grunt) {

// Project configuration.
grunt.initConfig({
connect: {
server: {
options: {
port: 3000,
base: '.'
}
}
},
'saucelabs-qunit': {
all: {
options: {
Expand All @@ -25,5 +33,7 @@ module.exports = function (grunt) {
}
})

grunt.loadNpmTasks('grunt-contrib-connect')
grunt.loadNpmTasks('grunt-saucelabs')
grunt.registerTask('saucelabs', ['connect', 'saucelabs-qunit'])
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"js-minify": "uglifyjs --compress warnings=false --mangle --comments '/^!/' --output dist/js/bootstrap.min.js dist/js/bootstrap.js",
"js-minify-docs": "uglifyjs --compress warnings=false --mangle --comments '/^!/' --output docs/assets/js/docs.min.js docs/assets/js/vendor/anchor.min.js docs/assets/js/vendor/clipboard.min.js docs/assets/js/vendor/holder.min.js docs/assets/js/src/application.js",
"js-test": "phantomjs ./node_modules/qunit-phantomjs-runner/runner.js js/tests/index.html 60",
"js-test-cloud": "ruby -run -ehttpd . -p3000 > /dev/null & grunt saucelabs-qunit",
"js-test-cloud": "grunt saucelabs",
"docs": "npm-run-all docs-compile docs-lint",
"docs-lint": "htmlhint --config docs/.htmlhintrc _gh_pages/ js/tests/visual/ && htmllint --rc docs/.htmllintrc _gh_pages/*.html _gh_pages/**/*.html js/tests/visual/*.html",
"docs-clean": "shx rm -r docs/dist/* && shx cp -r dist/* docs/dist/",
Expand Down Expand Up @@ -77,6 +77,7 @@
"clean-css-cli": "^4.0.12",
"eslint": "^3.19.0",
"grunt": "^1.0.1",
"grunt-contrib-connect": "^1.0.2",
"grunt-saucelabs": "^9.0.0",
"htmlhint": "^0.9.13",
"htmllint-cli": "^0.0.6",
Expand Down

0 comments on commit 40d1d7f

Please sign in to comment.