Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gruntjs/grunt-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 89ab5d71259c33c10af366f2293d970f65af0d42
Choose a base ref
...
head repository: gruntjs/grunt-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2293dc5071794beb4c049dbdc5a755c18e26b0b4
Choose a head ref
  • 9 commits
  • 7 files changed
  • 3 contributors

Commits on Aug 19, 2018

  1. 1
    Copy the full SHA
    89e264b View commit details
  2. v1.3.1

    shama committed Aug 19, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    352a258 View commit details

Commits on Sep 26, 2018

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b1dd2ee View commit details

Commits on Nov 4, 2018

  1. v1.3.2

    vladikoff committed Nov 4, 2018
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3254a1f View commit details

Commits on Oct 5, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    84ebcb8 View commit details

Commits on Mar 13, 2021

  1. Update deps, switch to actions (#141)

    * Update deps, switch to actions
    
    * Fix actions dir
    
    * Use npm i for actions
    vladikoff authored Mar 13, 2021
    Copy the full SHA
    c271173 View commit details

Commits on Mar 25, 2021

  1. Ignore package-lock

    vladikoff committed Mar 25, 2021
    Copy the full SHA
    3fa5bf6 View commit details
  2. Update changelog

    vladikoff committed Mar 25, 2021
    Copy the full SHA
    bbc4400 View commit details
  3. 1.4.0

    vladikoff committed Mar 25, 2021
    Copy the full SHA
    2293dc5 View commit details
Showing with 81 additions and 69 deletions.
  1. +39 −0 .github/workflows/test.yml
  2. +1 −0 .gitignore
  3. +0 −6 .travis.yml
  4. +13 −0 CHANGELOG.md
  5. +0 −37 appveyor.yml
  6. +21 −19 bin/grunt
  7. +7 −7 package.json
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

on: [push, pull_request]

env:
FORCE_COLOR: 2

jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [10, 12, 14]
os: [ubuntu-latest, windows-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install npm dependencies
run: npm i

- name: Run tests
run: npm test

# We test multiple Windows shells because of prior stdout buffering issues
# filed against Grunt. https://github.com/joyent/node/issues/3584
- name: Run PowerShell tests
run: "npm test # PowerShell" # Pass comment to PS for easier debugging
shell: powershell
if: startsWith(matrix.os, 'windows')
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
npm-debug.log
tmp
package-lock.json
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
- v1.4.0:
- date: 2021-03-25
- changes:
- updated dependencies
- Requires node >= 10
- v1.3.2:
- date: 2018-11-04
- changes:
- bump v8 flags dependency
- v1.3.1:
- date: 2018-08-18
- changes:
- cwd option fix
- v1.3.0:
- date: 2018-08-15
- changes:
37 changes: 0 additions & 37 deletions appveyor.yml

This file was deleted.

40 changes: 21 additions & 19 deletions bin/grunt
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

process.title = 'grunt';

var Liftoff = require('liftoff');
var Liftup = require('liftup');
var v8flags = require('v8flags');
var extensions = require('interpret').jsVariants;
var nopt = require('nopt');
@@ -35,35 +35,37 @@ if ('completion' in options) {
}

v8flags(function (err, v8flags) {
var Grunt = new Liftoff({
var Grunt = new Liftup({
name: 'grunt',
configName: 'Gruntfile',
// Support a number of languages based on file extension
extensions: extensions,
// Flags that are v8 flags will be loaded into node instead of Gruntfile
v8flags: v8flags
});
Grunt.launch({
cwd: options.cwd,
Grunt.prepare({
cwd: options.base,
configPath: options.gruntfile,
require: options.require,
verbose: options.verbose
}, function (env) {
var tasks = options.argv.remain;
delete options.argv;
// No grunt install found!
if (!env.modulePath) {
if (options.version) {
process.exit();
Grunt.execute(env, function(env) {
var tasks = options.argv.remain;
delete options.argv;
// No grunt install found!
if (!env.modulePath) {
if (options.version) {
process.exit();
}
if (options.help) {
info.help();
}
info.fatal('Unable to find local grunt.', 99);
} else {
options.gruntfile = env.configPath;
var grunt = require(env.modulePath);
grunt.tasks(tasks, options);
}
if (options.help) {
info.help();
}
info.fatal('Unable to find local grunt.', 99);
} else {
options.gruntfile = env.configPath;
var grunt = require(env.modulePath);
grunt.tasks(tasks, options);
}
});
});
});
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "grunt-cli",
"description": "The grunt command line interface",
"version": "1.3.0",
"version": "1.4.0",
"author": "Grunt Development Team (http://gruntjs.com/development-team)",
"repository": "gruntjs/grunt-cli",
"license": "MIT",
"engines": {
"node": ">=4"
"node": ">=10"
},
"scripts": {
"test": "node bin/grunt test"
@@ -15,15 +15,15 @@
"grunt": "bin/grunt"
},
"dependencies": {
"grunt-known-options": "~1.1.0",
"grunt-known-options": "~1.1.1",
"interpret": "~1.1.0",
"liftoff": "~2.5.0",
"liftup": "~3.0.1",
"nopt": "~4.0.1",
"v8flags": "~3.0.2"
"v8flags": "~3.2.0"
},
"devDependencies": {
"grunt": "~1.0.2",
"grunt-contrib-jshint": "~1.1.0"
"grunt": "~1.3.0",
"grunt-contrib-jshint": "~3.0.0"
},
"files": [
"bin",