From d75ee61fbe65628f756cd170b8c707f9c8e00c7f Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Wed, 25 Mar 2015 15:12:37 -0700 Subject: [PATCH] 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. --- Gruntfile.coffee | 9 +++++---- package.json | 5 +---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index af26bf594..18cf7afa6 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -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'] diff --git a/package.json b/package.json index 0568393cc..b358927b3 100644 --- a/package.json +++ b/package.json @@ -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" }