2020-02-24 19:14:46 +03:00
|
|
|
{
|
|
|
|
"name": "scaffolder",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"description": "A service to generate Hasura action scaffolds",
|
|
|
|
"main": "src/server.js",
|
|
|
|
"scripts": {
|
2021-05-24 09:04:53 +03:00
|
|
|
"get-shared-modules": "rm -rf src/shared && cp -r ../console/src/shared ./src/shared",
|
2020-02-24 19:14:46 +03:00
|
|
|
"pretranspile": "npm run get-shared-modules",
|
2020-06-02 17:11:56 +03:00
|
|
|
"transpile": "rm -rf build/* && babel --extensions '.ts,.js' ./src ./tests --out-dir build",
|
2020-02-24 19:14:46 +03:00
|
|
|
"prebuild": "npm run transpile",
|
2020-04-16 11:10:47 +03:00
|
|
|
"build": "rm -rf ./bin/* && pkg ./build/command.js --output ./bin/cli-ext-hasura -t node12-linux-x64,node12-macos-x64,node12-win-x64",
|
2020-02-24 19:14:46 +03:00
|
|
|
"pretest": "npm run transpile && babel ./tests --out-dir _tmptests",
|
|
|
|
"posttest": "rm -rf _tmptests",
|
2020-05-19 14:01:46 +03:00
|
|
|
"test": "node ./_tmptests/index.js",
|
2020-06-02 17:11:56 +03:00
|
|
|
"lint": "eslint 'src/**/*.{js,ts}' --fix",
|
|
|
|
"format": "prettier-eslint $PWD'src/**/*.{js,ts,json}' --write && npm run lint"
|
2020-05-19 14:01:46 +03:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"**/*.js": [
|
|
|
|
"eslint --fix",
|
|
|
|
"prettier-eslint --write",
|
|
|
|
"git add"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
2020-02-24 19:14:46 +03:00
|
|
|
},
|
|
|
|
"author": "wawhal",
|
|
|
|
"license": "ISC",
|
|
|
|
"dependencies": {
|
|
|
|
"@graphql-codegen/core": "^1.9.0",
|
|
|
|
"@graphql-codegen/typescript": "^1.9.0",
|
|
|
|
"graphql": "^14.5.8",
|
|
|
|
"inflection": "^1.12.0",
|
|
|
|
"node-fetch": "^2.6.0",
|
|
|
|
"regenerator-runtime": "^0.13.3"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@babel/cli": "^7.0.0",
|
|
|
|
"@babel/core": "^7.0.0",
|
|
|
|
"@babel/plugin-transform-async-to-generator": "^7.7.4",
|
2020-05-19 14:01:46 +03:00
|
|
|
"@babel/preset-env": "^7.7.6",
|
2020-06-02 17:11:56 +03:00
|
|
|
"@babel/preset-typescript": "^7.9.0",
|
|
|
|
"@types/graphql": "^14.5.0",
|
|
|
|
"@types/inflection": "^1.5.28",
|
|
|
|
"@types/node-fetch": "^2.5.7",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
|
|
"@typescript-eslint/parser": "^2.34.0",
|
2020-05-19 14:01:46 +03:00
|
|
|
"eslint": "^6.8.0",
|
|
|
|
"eslint-config-airbnb-base": "^14.1.0",
|
|
|
|
"eslint-plugin-import": "^2.20.2",
|
|
|
|
"eslint-plugin-promise": "^4.2.1",
|
|
|
|
"husky": "^4.2.5",
|
|
|
|
"lint-staged": "^10.1.5",
|
2021-02-08 11:02:58 +03:00
|
|
|
"pkg": "^4.4.9",
|
2020-06-02 17:11:56 +03:00
|
|
|
"prettier-eslint-cli": "^5.0.0",
|
|
|
|
"typescript": "^3.9.2"
|
2020-02-24 19:14:46 +03:00
|
|
|
}
|
2021-02-08 11:02:58 +03:00
|
|
|
}
|