Skip to content

Commit

Permalink
Bump eslint and node version
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff committed Jan 29, 2023
1 parent 82d79b8 commit 1d88050
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [12, 14, 16]
node: [14, 16, 18]
os: [ubuntu-latest, windows-latest]

steps:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG
@@ -1,3 +1,8 @@
v1.6.0
date: 2023-01-28
changes:
- Requires node.js 14+.
-
v1.5.3
date: 2022-04-23
changes:
Expand Down
16 changes: 8 additions & 8 deletions Gruntfile.js
Expand Up @@ -15,18 +15,18 @@ module.exports = function(grunt) {
}
},
eslint: {
gruntfile_tasks: ['Gruntfile.js', 'internal-tasks/*.js'],
libs_n_tests: ['lib/**/*.js', '<%= nodeunit.all %>'],
gruntfileTasks: ['Gruntfile.js', 'internal-tasks/*.js'],
libsAndTests: ['lib/**/*.js', '<%= nodeunit.all %>'],
subgrunt: ['<%= subgrunt.all %>']
},
watch: {
gruntfile_tasks: {
files: ['<%= eslint.gruntfile_tasks %>'],
tasks: ['eslint:gruntfile_tasks']
gruntfileTasks: {
files: ['<%= eslint.gruntfileTasks %>'],
tasks: ['eslint:gruntfileTasks']
},
libs_n_tests: {
files: ['<%= eslint.libs_n_tests %>'],
tasks: ['eslint:libs_n_tests', 'nodeunit']
libsAndTests: {
files: ['<%= eslint.libsAndTests %>'],
tasks: ['eslint:libsAndTests', 'nodeunit']
},
subgrunt: {
files: ['<%= subgrunt.all %>'],
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -7,7 +7,7 @@
"repository": "https://github.com/gruntjs/grunt.git",
"license": "MIT",
"engines": {
"node": ">=8"
"node": ">=14"
},
"scripts": {
"test": "node bin/grunt test",
Expand Down Expand Up @@ -55,10 +55,10 @@
},
"devDependencies": {
"difflet": "~1.0.1",
"eslint-config-grunt": "~1.0.1",
"eslint-config-grunt": "~2.0.1",
"grunt-contrib-nodeunit": "~4.0.0",
"grunt-contrib-watch": "~1.1.0",
"grunt-eslint": "~18.1.0",
"grunt-eslint": "~24.0.1",
"temporary": "~0.0.4",
"through2": "~4.0.2"
},
Expand Down
62 changes: 31 additions & 31 deletions test/gruntfile/multi-task-files.js
Expand Up @@ -59,7 +59,7 @@ module.exports = function(grunt) {
]
},
// File mapping options can be specified in these 2 formats.
built_mapping: {
builtMapping: {
options: {a: 6, c: 66},
expand: true,
cwd: '<%= mappings.cwd %>',
Expand All @@ -68,7 +68,7 @@ module.exports = function(grunt) {
rename: '<%= mappings.rename %>',
extra: 123
},
long3_mapping: {
long3Mapping: {
options: {a: 7, c: 77},
files: [
{
Expand All @@ -81,22 +81,22 @@ module.exports = function(grunt) {
}
]
},
long4_mapping: {
long4Mapping: {
options: {a: 8, c: 88},
files: [
'<%= run.long3_mapping.files %>'
'<%= run.long3Mapping.files %>'
]
},
long5_mapping: {
long5Mapping: {
options: {a: 9, c: 99},
files: [
'<%= run.long3_mapping.files %>',
'<%= run.long4_mapping.files %>'
'<%= run.long3Mapping.files %>',
'<%= run.long4Mapping.files %>'
]
},
// Need to ensure the task function is run if no files or options were
// specified!
no_files_or_options: {},
noFilesOrOptions: {},
},
});

Expand Down Expand Up @@ -124,7 +124,7 @@ module.exports = function(grunt) {
});

var expecteds = {
'run:no_files_or_options': {
'run:noFilesOrOptions': {
options: {a: 1, b: 11, d: 9},
files: [],
},
Expand Down Expand Up @@ -236,7 +236,7 @@ module.exports = function(grunt) {
},
],
},
'run:built_mapping': {
'run:builtMapping': {
options: {a: 6, b: 11, c: 66, d: 9},
files: [
{
Expand All @@ -248,7 +248,7 @@ module.exports = function(grunt) {
cwd: grunt.config.get('mappings.cwd'),
src: ['*1.js', '*2.js'],
dest: grunt.config.get('mappings.dest'),
rename: grunt.config.get('run.built_mapping.rename'),
rename: grunt.config.get('run.builtMapping.rename'),
extra: 123,
},
},
Expand All @@ -258,16 +258,16 @@ module.exports = function(grunt) {
extra: 123,
orig: {
expand: true,
cwd: grunt.config.get('run.built_mapping.cwd'),
cwd: grunt.config.get('run.builtMapping.cwd'),
src: ['*1.js', '*2.js'],
dest: grunt.config.get('run.built_mapping.dest'),
rename: grunt.config.get('run.built_mapping.rename'),
dest: grunt.config.get('run.builtMapping.dest'),
rename: grunt.config.get('run.builtMapping.rename'),
extra: 123,
},
},
],
},
'run:long3_mapping': {
'run:long3Mapping': {
options: {a: 7, b: 11, c: 77, d: 9},
files: [
{
Expand All @@ -292,13 +292,13 @@ module.exports = function(grunt) {
cwd: grunt.config.get('mappings.cwd'),
src: ['*1.js', '*2.js'],
dest: grunt.config.get('mappings.dest'),
rename: grunt.config.get('run.built_mapping.rename'),
rename: grunt.config.get('run.builtMapping.rename'),
extra: 123,
},
},
],
},
'run:long4_mapping': {
'run:long4Mapping': {
options: {a: 8, b: 11, c: 88, d: 9},
files: [
{
Expand All @@ -323,13 +323,13 @@ module.exports = function(grunt) {
cwd: grunt.config.get('mappings.cwd'),
src: ['*1.js', '*2.js'],
dest: grunt.config.get('mappings.dest'),
rename: grunt.config.get('run.built_mapping.rename'),
rename: grunt.config.get('run.builtMapping.rename'),
extra: 123,
},
},
],
},
'run:long5_mapping': {
'run:long5Mapping': {
options: {a: 9, b: 11, c: 99, d: 9},
files: [
{
Expand All @@ -354,7 +354,7 @@ module.exports = function(grunt) {
cwd: grunt.config.get('mappings.cwd'),
src: ['*1.js', '*2.js'],
dest: grunt.config.get('mappings.dest'),
rename: grunt.config.get('run.built_mapping.rename'),
rename: grunt.config.get('run.builtMapping.rename'),
extra: 123,
},
},
Expand All @@ -380,7 +380,7 @@ module.exports = function(grunt) {
cwd: grunt.config.get('mappings.cwd'),
src: ['*1.js', '*2.js'],
dest: grunt.config.get('mappings.dest'),
rename: grunt.config.get('run.built_mapping.rename'),
rename: grunt.config.get('run.builtMapping.rename'),
extra: 123,
},
},
Expand Down Expand Up @@ -427,8 +427,8 @@ module.exports = function(grunt) {
});

grunt.registerTask('default', [
'run:no_files_or_options',
'test:no_files_or_options',
'run:noFilesOrOptions',
'test:noFilesOrOptions',
'run:dist/built.js',
'test:dist/built.js',
'run:dist/built1.js',
Expand All @@ -441,14 +441,14 @@ module.exports = function(grunt) {
'test:long2',
'run:long3',
'test:long3',
'run:built_mapping',
'test:built_mapping',
'run:long3_mapping',
'test:long3_mapping',
'run:long4_mapping',
'test:long4_mapping',
'run:long5_mapping',
'test:long5_mapping',
'run:builtMapping',
'test:builtMapping',
'run:long3Mapping',
'test:long3Mapping',
'run:long4Mapping',
'test:long4Mapping',
'run:long5Mapping',
'test:long5Mapping',
'run',
'test:all',
'test:counters',
Expand Down

0 comments on commit 1d88050

Please sign in to comment.