mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* add migrations for versioning datasources and dataqueries * eslint migrations folder * update ormconfig to use app context in migrations * make app to make use versioned data sources and queries in editor * app import should honor data source and query versioning * register ts-node path on running migrations * load data queries when finding versions * update e2e tests * handle for invalid oauth2 datasources * update e2e tests * introduce db migrations access lock to handle concurrent backfill * scope migrations by missing version id * fix import export without data source/query versions * fix import * fix spec * handle invalid data on migration * fix import * remove console logs * handle new app imports * fix version check * fix async creation * explicitly add timestamps on version import
47 lines
1.6 KiB
JSON
47 lines
1.6 KiB
JSON
{
|
|
"engines": {
|
|
"node": "14.17.3",
|
|
"npm": "7.20.0"
|
|
},
|
|
"lint-staged": {
|
|
"./frontend/src/**/*.{js,jsx}": [
|
|
"eslint --fix"
|
|
],
|
|
"./server/{src,test,plugins,scripts,migrations}/**/*.ts": [
|
|
"eslint --fix"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@4tw/cypress-drag-drop": "^1.8.0",
|
|
"@babel/core": "^7.4.3",
|
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
"@babel/preset-env": "^7.4.3",
|
|
"@babel/preset-react": "^7.0.0",
|
|
"babel-loader": "^8.0.5",
|
|
"html-webpack-plugin": "^5.3.2",
|
|
"husky": "^7.0.2",
|
|
"lint-staged": "^11.2.3",
|
|
"path": "^0.12.7",
|
|
"webpack": "^5.55.1",
|
|
"webpack-cli": "^4.8.0"
|
|
},
|
|
"dependencies": {
|
|
"@nestjs/cli": "^8.1.0",
|
|
"eslint": "^7.25.0",
|
|
"ts-node": "^10.1.0"
|
|
},
|
|
"scripts": {
|
|
"build": "npm --prefix frontend install && NODE_ENV=production npm --prefix frontend run build && npm --prefix server install && NODE_ENV=production npm --prefix server run build",
|
|
"start:prod": "npm --prefix server run start:prod",
|
|
"db:create": "npm --prefix server run db:create",
|
|
"db:migrate": "npm --prefix server run db:migrate",
|
|
"db:reset": "npm --prefix server run db:reset",
|
|
"db:drop": "npm --prefix server run db:drop",
|
|
"deploy": "cp -a frontend/build/. public/",
|
|
"heroku-postbuild": "./heroku-postdeploy.sh",
|
|
"heroku-prebuild": "npm --prefix frontend install && npm --prefix server install",
|
|
"cy:run": "cypress run --env db.name=$TEST_PG_DB,db.user=$TEST_PG_USERNAME,db.password=$TEST_PG_PASSWORD",
|
|
"cy:open": "cypress open --env db.name=$TEST_PG_DB,db.user=$TEST_PG_USERNAME,db.password=$TEST_PG_PASSWORD",
|
|
"prepare": "husky install"
|
|
}
|
|
}
|