Added sprites build to build:prod task
@@ -89,7 +89,7 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
clean: {
|
clean: {
|
||||||
build: ['website/build'],
|
build: ['website/build'],
|
||||||
sprites: ['common/dist/sprites']
|
sprite: ['common/dist/sprites']
|
||||||
},
|
},
|
||||||
|
|
||||||
sprite: sprite,
|
sprite: sprite,
|
||||||
@@ -212,7 +212,7 @@ module.exports = function(grunt) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Register tasks.
|
// Register tasks.
|
||||||
grunt.registerTask('build:prod', ['loadManifestFiles', 'clean:build', 'browserify', 'uglify', 'stylus', 'cssmin', 'copy:build', 'hashres']);
|
grunt.registerTask('build:prod', ['loadManifestFiles', 'clean:build', 'clean:sprite', 'sprite', 'browserify', 'uglify', 'stylus', 'cssmin', 'copy:build', 'hashres']);
|
||||||
grunt.registerTask('build:dev', ['browserify', 'stylus']);
|
grunt.registerTask('build:dev', ['browserify', 'stylus']);
|
||||||
|
|
||||||
grunt.registerTask('run:dev', [ 'build:dev', 'concurrent' ]);
|
grunt.registerTask('run:dev', [ 'build:dev', 'concurrent' ]);
|
||||||
|
|||||||
14282
common/dist/scripts/habitrpg-shared.js
vendored
1
common/dist/sprites/habitrpg-shared.css
vendored
4081
common/dist/sprites/spritesmith0.css
vendored
BIN
common/dist/sprites/spritesmith0.png
vendored
|
Before Width: | Height: | Size: 230 KiB After Width: | Height: | Size: 222 KiB |
4429
common/dist/sprites/spritesmith1.css
vendored
BIN
common/dist/sprites/spritesmith1.png
vendored
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 76 KiB |
2719
common/dist/sprites/spritesmith2.css
vendored
BIN
common/dist/sprites/spritesmith2.png
vendored
|
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 184 KiB |
2227
common/dist/sprites/spritesmith3.css
vendored
BIN
common/dist/sprites/spritesmith3.png
vendored
|
Before Width: | Height: | Size: 479 KiB After Width: | Height: | Size: 470 KiB |
2215
common/dist/sprites/spritesmith4.css
vendored
BIN
common/dist/sprites/spritesmith4.png
vendored
|
Before Width: | Height: | Size: 328 KiB After Width: | Height: | Size: 320 KiB |
2215
common/dist/sprites/spritesmith5.css
vendored
BIN
common/dist/sprites/spritesmith5.png
vendored
|
Before Width: | Height: | Size: 287 KiB After Width: | Height: | Size: 279 KiB |
@@ -71,7 +71,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./test/run_tests.sh",
|
"test": "./test/run_tests.sh",
|
||||||
"start": "grunt run:dev",
|
"start": "grunt run:dev",
|
||||||
"postinstall": "./node_modules/bower/bin/bower --config.interactive=false install -f",
|
"postinstall": "grunt build:prod; ./node_modules/bower/bin/bower --config.interactive=false install -f",
|
||||||
"coverage": "COVERAGE=true mocha --require register-handlers.js --reporter html-cov > coverage.html; open coverage.html"
|
"coverage": "COVERAGE=true mocha --require register-handlers.js --reporter html-cov > coverage.html; open coverage.html"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||