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']
|
||||
|
||||
+1
-4
@@ -39,13 +39,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"backbone": "^1.1.2",
|
||||
"chai": "^1.10.0",
|
||||
"crafting-guide-common": "git://github.com/andrewminer/crafting-guide-common",
|
||||
"jade": "^1.8.2",
|
||||
"jquery": "^2.1.3",
|
||||
"markdown": "^0.5.0",
|
||||
"mocha": "^2.0.1",
|
||||
"sinon": "^1.12.2",
|
||||
"sinon-chai": "^2.6.0",
|
||||
"underscore": "^1.7.0",
|
||||
"when": "^3.6.4"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user