Skip to content

Commit

Permalink
Prepeare for automatic testing of optimized version
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyksv committed Sep 27, 2013
1 parent bce150c commit 53c6791
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ screenshot_err.png
snapshots
chromedriver.log
sauce_connect.log*
build*
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

7 changes: 5 additions & 2 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#! /bin/sh
npm install

BUILD_FOLDER="build_$(date +%m%d_%H%M)"
#BUILD_FOLDER="build_$(date +%m%d_%H%M)"
BUILD_FOLDER="build"

rm -rf #BUILD_FOLDER

mkdir $BUILD_FOLDER

Expand Down Expand Up @@ -31,7 +34,7 @@ cd $BUILD_FOLDER

mv grun.js Gruntfile.js

grunt
../node_modules/.bin/grunt

rm Gruntfile.js
rm compile.sh
2 changes: 1 addition & 1 deletion grun.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,5 +238,5 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-smushit');
grunt.loadNpmTasks('grunt-pngmin');

grunt.registerTask('default', ['requirejs','buildapp','uglify','cutmustache','htmlcompressor','smushit', 'pngmin']);
grunt.registerTask('default', ['requirejs','buildapp','uglify','cutmustache','htmlcompressor','smushit']);
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
, "grunt-smushit" : "0.4.x"
}
, "scripts": {
"test":"node test"
"test":"./test.sh",
"build":"./compile.sh"
}
}
4 changes: 4 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /bin/sh
./compile.sh
cd build
node test

0 comments on commit 53c6791

Please sign in to comment.