Fix problems with Gruntfile and local dependencies
This commit is contained in:
+3
-4
@@ -43,7 +43,6 @@ module.exports = (grunt)->
|
||||
|
||||
clean:
|
||||
dist: ['./dist']
|
||||
deps: ['./node_modules/crafting-guide-common']
|
||||
|
||||
copy:
|
||||
jquery_ui_images:
|
||||
@@ -159,13 +158,13 @@ module.exports = (grunt)->
|
||||
|
||||
grunt.registerTask 'build', [ 'rsync:non_html', 'copy', 'sass:build', 'jade', 'browserify', 'exorcise' ]
|
||||
|
||||
grunt.registerTask 'dist', ['test', 'clean:dist', 'build', 'rsync:static', 'sass:dist', 'uglify']
|
||||
grunt.registerTask 'dist', ['test', 'clean', 'build', 'rsync:static', 'sass:dist', 'uglify']
|
||||
|
||||
grunt.registerTask 'clean-watch', ['clean:dist', 'build', 'watch']
|
||||
grunt.registerTask 'clean-watch', ['clean', 'build', 'watch']
|
||||
|
||||
grunt.registerTask 'use-local-deps', ->
|
||||
grunt.file.mkdir './node_modules'
|
||||
grunt.file.delete './node_modules/crafting-guide-common'
|
||||
grunt.file.delete './node_modules/crafting-guide-common', force:true
|
||||
fs.symlinkSync '../../crafting-guide-common/', './node_modules/crafting-guide-common'
|
||||
|
||||
grunt.registerTask 'test', ['mochaTest']
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ if [[ "$TARGET" == "new" ]]; then
|
||||
if grunt dist; then
|
||||
echo "Preparing to upload to S3..."
|
||||
s3cmd sync -r --delete-removed --add-header="cache-control:max-age=1800" "$ROOT/" "s3://new.$SITE/"
|
||||
grunt clean build
|
||||
grunt clean:dist build
|
||||
else
|
||||
echo "Aborting deployment"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user