Update package.json to properly specify deps
Update the `package.json` file to properly specify the dependency on `crafting-guide-common` by referring to it's GitHub repository. This should allow someone working on this package to have NPM donwload it like anything else (including CircleCI). Also change the `link-deps` Grunt command to `use-local-deps` and make it remove the NPM-downloaded version and replace it with a symlink to a local copy.
This commit is contained in:
+5
-4
@@ -43,6 +43,7 @@ module.exports = (grunt)->
|
||||
|
||||
clean:
|
||||
dist: ['./dist']
|
||||
deps: ['./node_modules/crafting-guide-common']
|
||||
|
||||
copy:
|
||||
jquery_ui_images:
|
||||
@@ -158,13 +159,13 @@ module.exports = (grunt)->
|
||||
|
||||
grunt.registerTask 'build', [ 'rsync:non_html', 'copy', 'sass:build', 'jade', 'browserify', 'exorcise' ]
|
||||
|
||||
grunt.registerTask 'dist', ['test', 'clean', 'build', 'rsync:static', 'sass:dist', 'uglify']
|
||||
grunt.registerTask 'dist', ['test', 'clean:dist', 'build', 'rsync:static', 'sass:dist', 'uglify']
|
||||
|
||||
grunt.registerTask 'clean-watch', ['clean', 'build', 'watch']
|
||||
grunt.registerTask 'clean-watch', ['clean:dist', 'build', 'watch']
|
||||
|
||||
grunt.registerTask 'link-deps', ->
|
||||
grunt.registerTask 'use-local-deps', ->
|
||||
grunt.file.mkdir './node_modules'
|
||||
fs.unlinkSync './node_modules/crafting-guide-common'
|
||||
grunt.file.delete './node_modules/crafting-guide-common'
|
||||
fs.symlinkSync '../../crafting-guide-common/', './node_modules/crafting-guide-common'
|
||||
|
||||
grunt.registerTask 'test', ['mochaTest']
|
||||
|
||||
Reference in New Issue
Block a user