Skip to content

Commit

Permalink
[BREAKING] Update dependencies and node version requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemelia committed Jun 4, 2023
1 parent 3322c2b commit 5918138
Show file tree
Hide file tree
Showing 5 changed files with 1,562 additions and 228 deletions.
43 changes: 39 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,48 @@
module.exports = {
root: true,
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
ecmaVersion: 2020,
sourceType: 'module',
requireConfigFile: false,
babelOptions: {
configFile: false,
// your babel options
presets: ["@babel/preset-env"],
},
},
extends: 'eslint:recommended',
plugins: [
],
extends: [
'eslint:recommended',
],
env: {
browser: true
},
rules: {
}
},
overrides: [
// node files
{
files: [
'.eslintrc.js',
'index.js',
'config/**/*.js',
'tests//config/**/*.js'
],
parserOptions: {
sourceType: 'script'
},
env: {
browser: false,
node: true
},
plugins: ['node'],
extends: ['plugin:node/recommended'],
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
// add your custom rules and overrides for node files here
'node/no-unpublished-require': 'off',
})
}
]
};
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Continuous Integration

on:
push:
pull_request:

jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install
- run: yarn test

test-floating:
name: Floating Dependencies
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: install dependencies
run: yarn install --no-lockfile
- name: test
run: yarn test
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@
},
"repository": "https://github.com/ember-cli-deploy/ember-cli-deploy-gzip",
"engines": {
"node": ">= 0.10.0"
"node": "14.x || 16.x || 18.x || >= 20.x"
},
"author": "Luke Melia and ember-cli-deploy team",
"license": "MIT",
"devDependencies": {
"chai": "^4.2.0",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"ember-cli": "^3.22.0",
"eslint": "^7.14.0",
"glob": "^7.1.6",
"ember-cli": "^3.28.6",
"eslint": "^8.42.0",
"eslint-plugin-node": "^11.1.0",
"glob": "^10.2.6",
"mocha": "^8.2.1",
"release-it": "14.11.8",
"release-it-lerna-changelog": "^3.1.0",
Expand All @@ -32,10 +33,12 @@
"ember-cli-deploy-plugin"
],
"dependencies": {
"@babel/eslint-parser": "^7.21.8",
"@babel/preset-env": "^7.22.4",
"chalk": "^4.1.0",
"core-object": "^3.1.5",
"ember-cli-deploy-plugin": "^0.2.6",
"minimatch": "^3.0.4",
"ember-cli-deploy-plugin": "^0.2.9",
"minimatch": "^3.1.2",
"rsvp": "^4.8.5"
},
"ember-addon": {
Expand Down
Loading

0 comments on commit 5918138

Please sign in to comment.