Skip to content

Commit 1b0b105

Browse files
authored
Merge pull request filamentgroup#295 from rasenplanscher/master
switch to node-based server
2 parents 195c58d + 8ef903b commit 1b0b105

18 files changed

Lines changed: 499 additions & 60 deletions

.jshintrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,12 @@
1212
"unused": true,
1313
"node": true,
1414
"loopfunc": true,
15-
"predef": [ "window", "document", "define", "shoestring", "XMLHttpRequest", "ActiveXObject", "Window", "localStorage" ]
15+
16+
"browser": true,
17+
"qunit": true,
18+
19+
"globals": {
20+
"loadCSS": false,
21+
"onloadCSS": false
22+
}
1623
}

Gruntfile.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
/* global module:false */
22
module.exports = function(grunt) {
33

4-
require( 'matchdep' ).filterDev( 'grunt-*' ).forEach( grunt.loadNpmTasks );
4+
require( 'matchdep' ).filterDev( ['grunt-*', '!grunt-cli'] ).forEach( grunt.loadNpmTasks );
55

6-
// Project configuration.
6+
// Project configuration.
77
grunt.initConfig({
8-
jshint: {
8+
jshint: {
99
all: {
1010
options: {
1111
jshintrc: ".jshintrc"
1212
},
1313

14-
src: ['Gruntfile.js', '*.js']
14+
src: [
15+
'*.js',
16+
'test/**/*.js',
17+
'src/**/*.js',
18+
]
1519
}
1620
},
1721
concat: {
@@ -24,7 +28,7 @@ module.exports = function(grunt) {
2428
}
2529
},
2630
uglify: {
27-
options: {
31+
options: {
2832
preserveComments: /^\!/
2933
},
3034
dist: {
@@ -38,9 +42,8 @@ module.exports = function(grunt) {
3842
qunit: {
3943
files: ['test/qunit/**/*.html']
4044
}
41-
});
45+
});
4246

4347
grunt.registerTask('default', ['jshint', 'qunit', 'concat', 'uglify']);
4448
grunt.registerTask('stage', ['default']);
45-
4649
};

0 commit comments

Comments
 (0)