forked from Temmermans/iot-device-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add grunt, cluster support and documentatipon for node inspector
- Loading branch information
1 parent
5591591
commit f904d9d
Showing
14 changed files
with
315 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
module.exports = function(grunt){ | ||
// load plugins | ||
[ | ||
'grunt-contrib-less', | ||
'grunt-mocha-test', | ||
'grunt-contrib-uglify', | ||
'grunt-contrib-cssmin', | ||
'grunt-hashres' | ||
].forEach(function(task){ | ||
grunt.loadNpmTasks(task); | ||
}); | ||
|
||
// configure plugins | ||
grunt.initConfig({ | ||
// Configure a mochaTest task | ||
mochaTest: { | ||
test: { | ||
options: { | ||
reporter: 'spec', | ||
captureFile: 'results.txt', // Optionally capture the reporter output to a file | ||
quiet: false, // Optionally suppress output to standard out (defaults to false) | ||
clearRequireCache: false // Optionally clear the require cache before running tests (defaults to false) | ||
}, | ||
src: ['test/**/*.js'] | ||
} | ||
}, | ||
less: { | ||
development: { | ||
files: { | ||
'public/styles/css/styles.css': 'public/styles/less/styles.less', | ||
} | ||
} | ||
}, | ||
uglify: { | ||
all: { | ||
files: { | ||
'public/js/bundle.min.js': ['public/js/**/*.js'] | ||
} | ||
} | ||
}, | ||
cssmin: { | ||
combine: { | ||
files: { | ||
'public/styles/css/bundle.css': ['public/styles/css/**/*.css', | ||
'!public/styles/css/bundle*.css'] | ||
} | ||
}, | ||
minify: { | ||
src: 'public/styles/css/bundle.css', | ||
dest: 'public/css/bundle.min.css', | ||
} | ||
}, | ||
hashres: { | ||
options: { | ||
fileNameFormat: '${name}.${hash}.${ext}' | ||
}, | ||
all: { | ||
src: [ | ||
'public/js/bundle.min.js', | ||
'public/css/bundle.min.css', | ||
], | ||
dest: [ | ||
'views/layouts/layout.pug', | ||
] | ||
}, | ||
} | ||
}); | ||
|
||
// register tasks | ||
grunt.registerTask('test', ['mochaTest']); | ||
grunt.registerTask('bunminify', ['uglify', 'less', 'cssmin', 'hashres']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
p{font-size:10px} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
p{font-size:10px} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* Custom styles go here */ | ||
p { | ||
font-size: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* Custom styles go here */ | ||
p { | ||
font-size: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.