Building zip for itch with grunt
parent
73613b1a0b
commit
0dfd566b0b
@ -0,0 +1,34 @@
|
||||
module.exports = function(grunt) {
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
sed: {
|
||||
relativePaths: {
|
||||
path: './build/index.html',
|
||||
pattern: '="/',
|
||||
replacement: '="./'
|
||||
}
|
||||
},
|
||||
compress: {
|
||||
main: {
|
||||
createEmptyArchive: false,
|
||||
options: {
|
||||
archive: 'DrowningAmongStars_<%= pkg.version %>.zip'
|
||||
},
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: './build/',
|
||||
src: [
|
||||
'./index.html',
|
||||
'./static/**'
|
||||
],
|
||||
dest: '/'
|
||||
}]
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
grunt.loadNpmTasks('grunt-sed')
|
||||
grunt.loadNpmTasks('grunt-contrib-compress')
|
||||
|
||||
grunt.registerTask('default', ['sed', 'compress'])
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue