diff options
author | Chris Rebert <code@chrisrebert.com> | 2016-03-24 08:37:43 +0300 |
---|---|---|
committer | Chris Rebert <code@chrisrebert.com> | 2016-03-24 09:20:38 +0300 |
commit | 768dac2e87efdeb250564e612671437974171983 (patch) | |
tree | c09dff764b8b4959d0cbee78dbd1e2481fc93d6e /Gruntfile.js | |
parent | d34a6436212629937cd62bfb8226bb9aff6fff45 (diff) |
Use vanilla npm shrinkwrap instead of uber/npm-shrinkwrap; fixes #18559
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 dd7391c19b..6861ceba4a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -18,7 +18,6 @@ module.exports = function (grunt) { var fs = require('fs'); var path = require('path'); var isTravis = require('is-travis'); - var npmShrinkwrap = require('npm-shrinkwrap'); var mq4HoverShim = require('mq4-hover-shim'); var autoprefixerSettings = require('./grunt/autoprefixer-settings.js'); var autoprefixer = require('autoprefixer')(autoprefixerSettings); @@ -490,20 +489,4 @@ module.exports = function (grunt) { // Publish to GitHub grunt.registerTask('publish', ['buildcontrol:pages']); - - // 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(); - }); - }); }; |