-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: modernize * refactor: modernize sscce * feat: add docker images * build: update ci * refactor: remove .idea * refactor: update tsconfig/gitignore * build: use node 14 * build: disable linter on sscce file * docs: document the need to install pg-hstore if using DataTypes.HSTORE * docs: update documentation * feat: run against Sequelize 6 & 7 on node 10 to 16 * fix: make start:x scripts work in cjs * fix: ignore internal ts error * ci: dedupe CI runs * docs: update references to sscce.ts
- Loading branch information
Showing
46 changed files
with
843 additions
and
464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 10 | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:node/recommended" | ||
"@ephys/eslint-config-typescript", | ||
"@ephys/eslint-config-typescript/node" | ||
], | ||
"rules": { | ||
"no-unused-vars": "off", | ||
"node/no-unpublished-require": "off" | ||
} | ||
"unicorn/prefer-node-protocol": "off", | ||
"no-console": "off", | ||
"import/order": "off", | ||
"prefer-object-has-own": "off", | ||
"unicorn/prefer-at": "off", | ||
"@typescript-eslint/no-unused-expressions": "off", | ||
|
||
// we still have to support node 10 while Sequelize 6 remains alive | ||
"unicorn/prefer-module": "off", | ||
"unicorn/prefer-top-level-await": "off" | ||
}, | ||
"ignorePatterns": ["src/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
node_modules | ||
npm-debug.log | ||
ts-dist | ||
yarn.lock | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,57 @@ | ||
{ | ||
"name": "sequelize-sscce", | ||
"description": "SSCCE repository for Sequelize", | ||
"version": "0.0.0-development", | ||
"private": true, | ||
"engines": { | ||
"node": ">=10.0.0" | ||
}, | ||
"private": true, | ||
"type": "commonjs", | ||
"license": "MIT", | ||
"dependencies": { | ||
"chai": "^4", | ||
"chai-as-promised": "^7", | ||
"chai-datetime": "^1", | ||
"chalk": "^2", | ||
"cross-env": "^5", | ||
"fs-jetpack": "^2", | ||
"is-plain-object": "^3", | ||
"json-stringify-safe": "^5", | ||
"lodash.defaults": "^4", | ||
"chalk": "^4.1.2", | ||
"cross-env": "^7", | ||
"fs-jetpack": "^4", | ||
"sequelize": "^6", | ||
"sinon": "^9", | ||
"@sequelize/core": "^7.0.0-alpha.10", | ||
"sinon": "^13", | ||
"sinon-chai": "^3" | ||
}, | ||
"scripts": { | ||
"start": "cross-env LOCAL_SSCCE=true DIALECT=sqlite node setup/runner.js", | ||
"ts-prep": "del-cli ts-dist && tsc && node setup/ts-setup.js", | ||
"ts": "npm run ts-prep && cross-env LOCAL_TS_RUN=true npm start", | ||
"do-replace": "node setup/lib-replacements.js --do", | ||
"undo-replace": "node setup/lib-replacements.js --undo", | ||
"ci": "node setup/runner.js", | ||
"lint": "eslint ." | ||
"_test": "ts-node setup/runner.ts", | ||
"test:sqlite": "cross-env DIALECT=sqlite npm run _test", | ||
"test:postgres": "cross-env DIALECT=postgres npm run _test", | ||
"test:postgres-native": "cross-env DIALECT=postgres-native npm run _test", | ||
"test:mariadb": "cross-env DIALECT=mariadb npm run _test", | ||
"test:mysql": "cross-env DIALECT=mysql npm run _test", | ||
"test:mssql": "cross-env DIALECT=mssql npm run _test", | ||
"start:mariadb": "bash setup/mariadb/10.3/start.sh", | ||
"start:mysql": "bash setup/mysql/8.0/start.sh", | ||
"start:postgres": "bash setup/postgres/10/start.sh", | ||
"start:mssql": "bash setup/mssql/2019/start.sh", | ||
"stop:mariadb": "bash setup/mariadb/10.3/stop.sh", | ||
"stop:mysql": "bash setup/mysql/8.0/stop.sh", | ||
"stop:postgres": "bash setup/postgres/10/stop.sh", | ||
"stop:mssql": "bash setup/mssql/2019/stop.sh", | ||
"do-replace": "node setup/lib-replacements.ts --do", | ||
"undo-replace": "node setup/lib-replacements.ts --undo", | ||
"lint": "eslint . --fix" | ||
}, | ||
"devDependencies": { | ||
"@types/bluebird": "*", | ||
"@ephys/eslint-config-typescript": "^14.1.1", | ||
"@types/chai": "^4", | ||
"@types/chai-as-promised": "^7", | ||
"@types/chai-datetime": "^0.0.36", | ||
"@types/chai-datetime": "^0.0.37", | ||
"@types/lodash": "^4.14.178", | ||
"@types/node": "^10", | ||
"@types/sinon": "^9", | ||
"@types/sinon": "^10", | ||
"@types/sinon-chai": "^3", | ||
"@types/validator": "*", | ||
"@typescript-eslint/eslint-plugin": "2.16.0", | ||
"@typescript-eslint/parser": "2.16.0", | ||
"del-cli": "^3", | ||
"eslint": "^6", | ||
"eslint-plugin-node": "^10", | ||
"sqlite3": "^4", | ||
"typescript": "~4.1" | ||
"del-cli": "^4", | ||
"eslint": "^8", | ||
"lodash": "^4.17.21", | ||
"sqlite3": "^5", | ||
"ts-node": "^10.4.0", | ||
"typescript": "~4.5" | ||
} | ||
} |
Oops, something went wrong.