Skip to content

Commit

Permalink
Merge pull request #27 from wednesday-solutions/feat/upgrade-dependen…
Browse files Browse the repository at this point in the history
…cies

Feat/upgrade dependencies
  • Loading branch information
alichherawalla authored Aug 26, 2024
2 parents d727173 + d33b87f commit 7e18565
Show file tree
Hide file tree
Showing 13 changed files with 3,095 additions and 6,374 deletions.
31 changes: 0 additions & 31 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [13.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules/
yarn-error.log
*.tgz
output
schema.json
schema.json
bin
39 changes: 0 additions & 39 deletions bin/exec-child.js

This file was deleted.

25 changes: 0 additions & 25 deletions bin/graphql-testkit.js

This file was deleted.

39 changes: 0 additions & 39 deletions bin/graphql-testkit.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion bin/graphql-testkit.js.map

This file was deleted.

50 changes: 50 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import globals from 'globals';
import { includeIgnoreFile } from '@eslint/compat';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const gitignorePath = path.resolve(__dirname, '.gitignore');

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [
...compat.extends('prettier', 'prettier-standard'),
includeIgnoreFile(gitignorePath),
{
languageOptions: {
globals: {
...globals.browser,
...globals.amd,
GLOBAL: false,
it: false,
expect: false,
describe: false
}
},

rules: {
'prettier/prettier': [
'error',
{
printWidth: 120,
tabWidth: 2,
useTabs: false,
singleQuote: true,
trailingComma: 'none',
indent: 2
}
],

'import/no-webpack-loader-syntax': 0,
curly: ['error', 'all']
}
}
];
72 changes: 34 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,23 @@
"homepage": "https://github.com/wednesday-solutions/graphql-testkit",
"scripts": {
"lint": "npm run lint:js",
"lint:eslint": "eslint --ignore-path .gitignore",
"lint:eslint:fix": "eslint --ignore-path .gitignore --fix src/*.js",
"lint:eslint": "eslint",
"lint:eslint:fix": "eslint --fix src/*.js",
"lint:js": "npm run lint:eslint -- . ",
"lint:staged": "lint-staged",
"test:clean": "rimraf ./coverage",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"prettify": "prettier --write",
"webpack:prod": "webpack -p --mode=production --progress",
"webpack:prod": "webpack --mode=production --progress",
"prepublishOnly": "yarn webpack:prod",
"local": "webpack -p --mode=development && node bin/graphql-testkit"
"local": "webpack --mode=development && node bin/graphql-testkit"
},
"dependencies": {
"bluebird": "^3.7.2",
"cli-spinner": "^0.2.10",
"fs": "^0.0.1-security",
"get-graphql-schema": "^2.1.2",
"lodash": "^4.17.21",
"ora": "^5.4.0",
"uuid": "^8.3.2"
"ora": "^8.1.0",
"shell-quote": "^1.8.1",
"uuid": "^10.0.0"
},
"bin": {
"graphql-testkit": "bin/graphql-testkit.js"
Expand All @@ -55,34 +53,32 @@
},
"pre-commit": "lint:staged",
"devDependencies": {
"@babel/core": "^7.10.2",
"@babel/plugin-transform-runtime": "^7.14.3",
"@babel/preset-env": "^7.10.2",
"@babel/preset-react": "^7.10.1",
"babel-loader": "^8.1.0",
"babel-plugin-import": "^1.13.0",
"copy-webpack-plugin": "5.1.1",
"coveralls": "3.0.3",
"eslint": "5.16.0",
"eslint-config-prettier": "4.1.0",
"eslint-config-prettier-standard": "^3.0.1",
"eslint-config-standard": "^14.1.1",
"eslint-import-resolver-webpack": "0.11.1",
"eslint-plugin-import": "2.17.2",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "3.0.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"jest-cli": "24.7.1",
"lint-staged": "8.1.5",
"pre-commit": "1.2.2",
"prettier": "1.17.0",
"prettier-config-standard": "^1.0.1",
"rimraf": "2.6.3",
"shelljs": "^0.8.4",
"terser-webpack-plugin": "^3.0.1",
"webpack": "4.30.0",
"webpack-cli": "^3.3.10"
"@babel/core": "^7.25.2",
"@babel/plugin-transform-runtime": "^7.25.4",
"@babel/preset-env": "^7.25.4",
"@babel/preset-react": "^7.24.7",
"@eslint/compat": "^1.1.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.1",
"babel-loader": "^9.1.3",
"copy-webpack-plugin": "^12.0.2",
"coveralls": "^3.1.1",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-prettier-standard": "^4.0.1",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^7.1.0",
"globals": "^15.9.0",
"lint-staged": "^15.2.9",
"pre-commit": "^1.2.2",
"prettier": "^3.3.3",
"prettier-config-standard": "^7.0.0",
"shelljs": "^0.8.5",
"terser-webpack-plugin": "^5.3.10",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
}
}
3 changes: 2 additions & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import shell from 'shelljs';
import quote from 'shell-quote/quote';
import process from 'process';
import { generateOutput } from './index';

Expand Down Expand Up @@ -43,7 +44,7 @@ export function createConfig(config, args) {
if (!k.includes('--')) {
return shell.echo(`Invalid arg ${key}`);
}
newConfig[key] = value;
newConfig[key] = quote(Array.isArray(value) ? value : [value]);
}
config = { ...config, ...newConfig };
return config;
Expand Down
Loading

0 comments on commit 7e18565

Please sign in to comment.