-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
executable file
·62 lines (60 loc) · 2.12 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
clean: ["SlideHub-darwin-x64", "SlideHub-win32-x64", "SlideHub.dmg"],
shell: {
build_mac: {
command: './node_modules/.bin/electron-packager . SlideHub --platform=darwin --arch=x64 --version=0.35.1 --icon=SlideHub.icns --overwrite'
},
build: {
command: './node_modules/.bin/electron-packager . SlideHub --platform=darwin,win32 --arch=x64 --version=0.35.1 --icon=SlideHub.icns --overwrite'
},
mac: {
command: 'hdiutil create -ov -srcfolder ./SlideHub-darwin-x64 -fs HFS+ -format UDZO -imagekey zlib-level=9 -volname "SlideHub" SlideHub.dmg'
},
build_linux: {
command: './node_modules/.bin/electron-packager . SlideHub --platform=linux --arch=x64 --version=0.35.1 --icon=SlideHub.icns --overwrite'
}
},
'plato': {
options: {
jshint: grunt.file.readJSON('.jshintrc')
},
report: {
files: {
'report': [
'Gruntfile.js',
'index.js',
'assets/js/*.js'
]
}
}
},
'open': {
file: {
path: './report/index.html'
}
},
'http-server': {
'dev': {
root: "./",
port: 8282,
host: "127.0.0.1",
cache: 1,
showDir : true,
autoIndex: true,
ext: "html",
runInBackground: false,
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-csslint');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-plato');
grunt.loadNpmTasks('grunt-open');
grunt.loadNpmTasks('grunt-http-server');
grunt.registerTask('default', ['watch']);
};