diff options
author | Chris Rebert <code@chrisrebert.com> | 2016-03-24 09:56:46 +0300 |
---|---|---|
committer | Chris Rebert <code@chrisrebert.com> | 2016-03-24 10:12:10 +0300 |
commit | 0af30aa65ea26c7b99075d2723851265cbc529db (patch) | |
tree | 73f3bf5efd80b1ae1100d0ccb737f7d1b4c9bb3b /Gruntfile.js | |
parent | 1a906a8a1919215b0aa677983a87c98ddde80c1f (diff) |
Use vanilla npm shrinkwrap instead of uber/npm-shrinkwrap; fixes #18559
Ports #19604 to v3.
Special thanks to @kikinteractive, @azer, and @npm.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 689b186423..018cdf266a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -17,7 +17,6 @@ module.exports = function (grunt) { var fs = require('fs'); var path = require('path'); - var npmShrinkwrap = require('npm-shrinkwrap'); var generateGlyphiconsData = require('./grunt/bs-glyphicons-data-generator.js'); var BsLessdocParser = require('./grunt/bs-lessdoc-parser.js'); var getLessVarsData = function () { @@ -493,20 +492,4 @@ module.exports = function (grunt) { grunt.registerTask('docs-github', ['jekyll:github', 'htmlmin']); grunt.registerTask('prep-release', ['dist', 'docs', 'docs-github', 'compress']); - - // Task for updating the cached npm packages used by the Travis build (which are controlled by test-infra/npm-shrinkwrap.json). - // This task should be run and the updated file should be committed whenever Bootstrap's dependencies change. - grunt.registerTask('update-shrinkwrap', ['exec:npmUpdate', '_update-shrinkwrap']); - grunt.registerTask('_update-shrinkwrap', function () { - var done = this.async(); - npmShrinkwrap({ dev: true, dirname: __dirname }, function (err) { - if (err) { - grunt.fail.warn(err); - } - var dest = 'grunt/npm-shrinkwrap.json'; - fs.renameSync('npm-shrinkwrap.json', dest); - grunt.log.writeln('File ' + dest.cyan + ' updated.'); - done(); - }); - }); }; |