Changeset 43826
- Timestamp:
- 10/25/2018 03:22:12 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/Gruntfile.js
r43824 r43826 2 2 /* globals Set */ 3 3 var webpackConfig = require( './webpack.config' ); 4 const { execSync } = require( 'child_process' );4 var execSync = require( 'child_process' ).execSync; 5 5 6 6 module.exports = function(grunt) { … … 13 13 autoprefixer = require( 'autoprefixer' ); 14 14 15 constpackageJson = grunt.file.readJSON( 'package.json' );15 var packageJson = grunt.file.readJSON( 'package.json' ); 16 16 17 17 // Load tasks. … … 789 789 790 790 grunt.registerTask( 'download-packages', function() { 791 constdirectory = 'packages';792 constversion = packageJson.wordpress.packagesVersion;791 var directory = 'packages'; 792 var version = packageJson.wordpress.packagesVersion; 793 793 794 794 if ( ! grunt.file.exists( directory ) ) { 795 795 // Clone gutenberg 796 execSync( `git clone https://github.com/WordPress/gutenberg.git ${ directory }`, { stdio: 'inherit' } );796 execSync( 'git clone https://github.com/WordPress/gutenberg.git ' + directory, { stdio: 'inherit' } ); 797 797 } 798 798 … … 800 800 801 801 // Make sure we are on the correct version of Gutenberg. 802 execSync( `git reset --hard ${ version }`, { cwd: directory, stdio: 'inherit' } );802 execSync( 'git reset --hard ' + version, { cwd: directory, stdio: 'inherit' } ); 803 803 804 804 // Install Gutenberg dependencies and build the packages.
Note: See TracChangeset
for help on using the changeset viewer.