Skip to content

Commit

Permalink
JSPM inside the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Crisci committed Feb 13, 2015
1 parent 0d6dcfe commit 83349b2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = function (grunt) {
}

// Default task
grunt.registerTask('default', ['clean', 'validate', 'compile', 'test', 'analyse']);
grunt.registerTask('default', ['clean', 'validate', 'prepare', 'compile', 'test', 'analyse']);

/**
* Validate tasks
Expand Down Expand Up @@ -102,6 +102,10 @@ module.exports = function (grunt) {
'compile:conf'
]);

grunt.registerTask('prepare', ['jspm']);

grunt.registerTask('jspm', ['shell:jspmFaciaTool']);

/**
* compile:js:<requiretask> tasks. Generate one for each require task
*/
Expand Down
2 changes: 1 addition & 1 deletion dist-root-tc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o xtrace
set -o nounset
set -o errexit

./grunt-tc clean validate:sass validate:js test:unit compile emitAbTestInfo
./grunt-tc clean validate:sass validate:js prepare test:unit compile emitAbTestInfo
./sbt-tc "project root" compile test dist

echo "Disting everything."
Expand Down
2 changes: 1 addition & 1 deletion facia-tool/public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
},
"configFile": "js/jspm-config.js",
"dependencies": {
"EventEmitter": "npm:wolfy87-eventemitter@4.2.11",
"css": "^0.1.0",
"eventEmitter": "npm:wolfy87-eventemitter@4.2.11",
"font-awesome": "4.2.0",
"jquery": "2.1.3",
"jquery-mockjax": "npm:jquery-mockjax@^1.6.1",
Expand Down
9 changes: 9 additions & 0 deletions grunt-configs/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ module.exports = function(grunt, options) {
command: 'node tools/ab-test-info/ab-test-info.js ' +
'static/src/javascripts/modules/experiments/tests ' +
'static/abtests.json'
},

jspmFaciaTool: {
command: 'jspm install',
options: {
execOptions: {
cwd: 'facia-tool/public'
}
}
}
};
};
2 changes: 1 addition & 1 deletion test-root-tc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o nounset
set -o errexit


./grunt-tc clean validate test:unit compile
./grunt-tc clean validate prepare test:unit compile
./sbt-tc "project root" test

echo "Tested everything."

0 comments on commit 83349b2

Please sign in to comment.