Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Trying to integrate flow
Browse files Browse the repository at this point in the history
Basic config for flow. Not working for now.

Re: #31
  • Loading branch information
nitriques committed Dec 5, 2014
1 parent 44deae0 commit a96f169
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions workspace/assets/.flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# .flowconfig
[include]
.*/js

[libs]
.*/js/lib
6 changes: 5 additions & 1 deletion workspace/assets/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ module.exports = function (grunt) {
}
},

flow: {
options: {}
},

analyzecss: {
prod: {
sources: [
Expand Down Expand Up @@ -325,7 +329,7 @@ module.exports = function (grunt) {
});

// Default tasks.
grunt.registerTask('dev', ['jshint', 'complexity']);
grunt.registerTask('dev', ['jshint', 'complexity', 'flow']);
grunt.registerTask('js', ['concat:sources', 'uglify', 'concat:libs']);
grunt.registerTask('bundle', ['clean:bundle', 'concat:lessLibs', 'concat:lessCore']);
grunt.registerTask('css', ['bundle', 'less', 'usebanner', 'csslint', 'analyzecss']);
Expand Down
5 changes: 5 additions & 0 deletions workspace/assets/js/dev/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
$(window).trigger('resize');
});

function x(x) {
return x * 10;
}
x('allo');

})(jQuery, window);
3 changes: 2 additions & 1 deletion workspace/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-concat": "~0.4.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-csslint": "^0.2.0",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-less": "~0.12.0",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-csslint": "^0.2.0",
"grunt-flow": "0.0.3",
"matchdep": "~0.3.0"
}
}

0 comments on commit a96f169

Please sign in to comment.