Make WordPress Core

Changeset 43826


Ignore:
Timestamp:
10/25/2018 03:22:12 PM (6 years ago)
Author:
atimmer
Message:

Build tools: Fix build after [43824].

Props omarreiss.
See #45145.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/Gruntfile.js

    r43824 r43826  
    22/* globals Set */
    33var webpackConfig = require( './webpack.config' );
    4 const { execSync } = require( 'child_process' );
     4var execSync = require( 'child_process' ).execSync;
    55
    66module.exports = function(grunt) {
     
    1313        autoprefixer = require( 'autoprefixer' );
    1414
    15     const packageJson = grunt.file.readJSON( 'package.json' );
     15    var packageJson = grunt.file.readJSON( 'package.json' );
    1616
    1717    // Load tasks.
     
    789789
    790790    grunt.registerTask( 'download-packages', function() {
    791         const directory = 'packages';
    792         const version = packageJson.wordpress.packagesVersion;
     791        var directory = 'packages';
     792        var version = packageJson.wordpress.packagesVersion;
    793793
    794794        if ( ! grunt.file.exists( directory  ) ) {
    795795            // 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' } );
    797797        }
    798798
     
    800800
    801801        // 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' } );
    803803
    804804        // Install Gutenberg dependencies and build the packages.
Note: See TracChangeset for help on using the changeset viewer.