forked from chairemobilite/transition
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial migration of the code from transition-legacy
This code was in a private repository, where other applications were developped as separate branches or directories. This commit contains the part of that other repository to open source with the Transition application. The code from the legacy repo was contributed by the following contributors, ordered by total number of commits. Co-authored-by: Pierre-Léo Bourbonnais <[email protected]> Co-authored-by: Geneviève Bastien <[email protected]> Co-authored-by: Alexis Viallard <[email protected]> Co-authored-by: Julien Faucher <[email protected]> Co-authored-by: Vincent Chabin <[email protected]> Co-authored-by: khadidjaSeridi <[email protected]> Co-authored-by: Yannick Brosseau <[email protected]> Co-authored-by: Alexis Martin <[email protected]> Co-authored-by: Yasmine Moumou <[email protected]> Co-authored-by: Ian Letourneau <[email protected]>
- Loading branch information
1 parent
bfccad2
commit 48b1ee0
Showing
1,148 changed files
with
262,826 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
*/node_modules/ | ||
jspm_packages/ | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# macos | ||
.DS_Store | ||
**/.DS_Store | ||
|
||
# react-boilerplate | ||
build | ||
stats.json | ||
.idea | ||
|
||
# rust | ||
**/*.rs.bk | ||
libraries/json2capnp/target | ||
libraries/json2capnp/testData | ||
services/json2capnp/target | ||
services/json2capnp/testData | ||
|
||
# vscode | ||
.vscode/launch.json | ||
.vscode/restore-terminals.json | ||
|
||
# custom | ||
packages/**/lib | ||
packages/**/node_modules | ||
packages/transition/backend/file/ | ||
|
||
#example apps | ||
examples/**/runtime |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
lib/ | ||
node_modules/ | ||
**/__tests__ |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../../../configs/base.eslintrc.json" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
lib/ | ||
node_modules/ |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* Copyright 2022, Polytechnique Montreal and contributors | ||
* | ||
* This file is licensed under the MIT License. | ||
* License text available at https://opensource.org/licenses/MIT | ||
*/ | ||
module.exports = { | ||
...require('../../../configs/base.prettierrc') | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright 2022, Polytechnique Montreal and contributors | ||
* | ||
* This file is licensed under the MIT License. | ||
* License text available at https://opensource.org/licenses/MIT | ||
*/ | ||
/* eslint-disable node/no-unpublished-require */ | ||
const baseConfig = require('../../../jest.config.base'); | ||
|
||
// Ignore db.queries.test files | ||
module.exports = { | ||
...baseConfig, | ||
'testPathIgnorePatterns': ['(/__tests__/.*(db\\.test)\\.(jsx?|tsx?))$', '(/__tests__/.*(integration\\.test)\\.(jsx?|tsx?))$'], | ||
}; | ||
|
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright 2022, Polytechnique Montreal and contributors | ||
* | ||
* This file is licensed under the MIT License. | ||
* License text available at https://opensource.org/licenses/MIT | ||
*/ | ||
/* eslint-disable node/no-unpublished-require */ | ||
const baseConfig = require('../../../jest.config.base'); | ||
|
||
// Run the db and integration tests | ||
module.exports = { | ||
...baseConfig, | ||
'testRegex': ['(/__tests__/.*(db\\.test)\\.(jsx?|tsx?))$','(/__tests__/.*(integration\\.test)\\.(jsx?|tsx?))$'] | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,112 @@ | ||
{ | ||
"engines": { | ||
"node": ">=12.9.0" | ||
}, | ||
"name": "chaire-lib-backend", | ||
"version": "0.2.2", | ||
"description": "Backend library for chaire mobilite's applications", | ||
"repository": "github.com/chairemobilite/transition", | ||
"license": "MIT", | ||
"scripts": { | ||
"clean": "rimraf lib/", | ||
"compile": "tsc && yarn copy-files", | ||
"compile:dev": "yarn copy-files && tsc -w", | ||
"copy-files": "copyfiles -u 1 -V ./src/utils/processManagers/osrmProfiles/* ./src/utils/processManagers/osrmProfiles/**/* ./lib/", | ||
"create-user": "yarn babel-node lib/scripts/config/createUser.task.js", | ||
"migrate": "knex migrate:latest", | ||
"migrate-test": "cross-env NODE_ENV=test knex migrate:latest", | ||
"setup": "yarn babel-node lib/scripts/config/setup.task.js", | ||
"setup-test": "cross-env NODE_ENV=test yarn babel-node lib/scripts/config/setup.task.js", | ||
"test": "cross-env NODE_ENV=test jest --config=jest.config.js", | ||
"test:unit": "cross-env NODE_ENV=test jest --config=jest.config.js", | ||
"test:sequential": "cross-env NODE_ENV=test jest --config=jest.sequential.config.js --runInBand", | ||
"test:ui": "echo 'no tests to run for this workspace'", | ||
"lint": "eslint .", | ||
"format": "prettier-eslint $PWD/'src/**/*.{ts,tsx}' --write && eslint --fix ." | ||
}, | ||
"dependencies": { | ||
"@casl/ability": "^5.4.3", | ||
"@zeit/fetch-retry": "^5.0.1", | ||
"bcryptjs": "^2.4.3", | ||
"bookshelf": "^1.2.0", | ||
"bookshelf-json-columns": "^3.0.0", | ||
"bytes": "^3.1.2", | ||
"capnp-ts": "^0.4.0", | ||
"chaire-lib-common": "^0.2.2", | ||
"dotenv": "^8.2.0", | ||
"express": "^4.17.1", | ||
"express-session": "^1.17.1", | ||
"fs-extra": "^9.0.1", | ||
"geojson": "^0.5.0", | ||
"glob": "^7.2.3", | ||
"i18next": "^20.2.2", | ||
"i18next-fs-backend": "^1.1.1", | ||
"inquirer": "^7.3.3", | ||
"inquirer-file-tree-selection-prompt": "^1.0.7", | ||
"inspector-api": "^1.1.0", | ||
"knex": "^0.21.19", | ||
"lodash.camelcase": "^4.3.0", | ||
"lodash.clonedeep": "^4.5.0", | ||
"lodash.flatten": "^4.4.0", | ||
"lodash.get": "^4.4.2", | ||
"lodash.merge": "^4.6.2", | ||
"lodash.set": "^4.3.2", | ||
"moment": "^2.29.4", | ||
"node-fetch": "^2.6.7", | ||
"nodemailer": "^6.6.1", | ||
"p-queue": "^6.6.2", | ||
"passport": "^0.4.1", | ||
"passport-auth-token": "^1.0.1", | ||
"passport-facebook": "^3.0.0", | ||
"passport-google-oauth": "^2.0.0", | ||
"passport-local": "^1.0.0", | ||
"passport-magic-login": "^1.0.9", | ||
"prompt": "^1.3.0", | ||
"socket.io": "^2.4.0", | ||
"socket.io-file": "^2.0.31", | ||
"stream-chain": "^2.2.4", | ||
"stream-json": "^1.7.3", | ||
"typescript": "^4.4.4", | ||
"uuid": "^8.3.2", | ||
"validator": "^13.7.0", | ||
"winston": "^3.7.2", | ||
"yargs": "^17.5.1" | ||
}, | ||
"devDependencies": { | ||
"@types/bcryptjs": "^2.4.2", | ||
"@types/bookshelf": "^1.2.1", | ||
"@types/express": "^4.17.11", | ||
"@types/express-session": "^1.17.3", | ||
"@types/fs-extra": "^9.0.6", | ||
"@types/geojson": "^7946.0.7", | ||
"@types/i18next": "^13.0.0", | ||
"@types/i18next-fs-backend": "^1.0.0", | ||
"@types/jest": "^26.0.3", | ||
"@types/jest-each": "^24.3.0", | ||
"@types/knex": "^0.16.1", | ||
"@types/node": "^17.0.38", | ||
"@types/nodemailer": "^6.4.1", | ||
"@types/passport": "^1.0.6", | ||
"@types/passport-local": "^1.0.33", | ||
"@types/prompt": "^1.1.0", | ||
"@types/socket.io": "^2.1.13", | ||
"@types/socket.io-file": "^2.0.4", | ||
"@types/stream-chain": "^2.0.1", | ||
"@types/stream-json": "^1.7.1", | ||
"@types/validator": "^13.6.6", | ||
"@typescript-eslint/eslint-plugin": "^5.4.0", | ||
"@typescript-eslint/parser": "^5.4.0", | ||
"cross-env": "^7.0.2", | ||
"eslint": "^7.32.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"jest": "^27.3.1", | ||
"jest-each": "^27.3.1", | ||
"jest-fetch-mock": "^3.0.3", | ||
"mock-knex": "^0.4.9", | ||
"nodemailer-mock": "^1.5.8", | ||
"prettier-eslint-cli": "^5.0.1", | ||
"supertest": "^6.1.3", | ||
"supertest-session": "^4.1.0", | ||
"ts-jest": "^27.0.7" | ||
} | ||
} |
Oops, something went wrong.