-
Notifications
You must be signed in to change notification settings - Fork 63
Migrate codebase to Typescript #213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: modernize-repository
Are you sure you want to change the base?
Changes from all commits
befdda6
e4d49b0
0ce69b1
20b1199
7e7f87c
4d311e3
b360004
c07d7c7
64e1276
9a8d074
a0c7033
3761b82
8f84682
303aefc
5808520
90cdfba
dde4dcd
7de1b4d
1b72641
cfb6623
dba473d
171cdf9
97b2507
b06fdae
8a230b0
40d5d5d
7edb2d8
3210fae
4299d2c
f116ff2
af29b86
0cfc18f
bbd53a2
928c9a4
0e2b2d8
56460e9
9c6141e
2ae213f
19f0580
a73d281
bce6ec3
cb510bf
c2f92e6
faa5eb6
694e67b
9b60c04
4bcdf4e
068c6d8
95f45e2
6fef91d
fe99c3d
f61aa45
fbb55c2
4d3b2f9
b061087
9944f8b
f17139c
10ef4db
ba76ab7
9fdf4fe
6be6c55
5a47108
d881657
081494d
7769118
922627c
c892cbe
57fbadb
704b204
2c856fb
a759d19
a336404
19b3e0e
eed1f0a
12bb8bd
4f56569
d1f801c
ab3d461
5bcf109
8d63fb3
f75ec4b
6347857
927e6ef
325fec2
d571680
1aabf81
58556d8
2bf9d22
d6304a2
ff5ac92
469b540
1f7dbfb
07f9e9c
519d12e
e90736b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| node_modules | ||
| coverage | ||
| .nyc_output | ||
|
|
||
| # Compiled output for packages already converted to TypeScript | ||
| packages/*/**/*.js | ||
| packages/*/**/*.d.ts | ||
| !packages/*/test/** | ||
| !packages/preset-qpf/**/*.js | ||
| !packages/server/**/*.js |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,21 +5,33 @@ | |
| "packages/*" | ||
| ], | ||
| "engines": { | ||
| "node": ">=10.0" | ||
| "node": ">=20.0" | ||
|
jitsedesmet marked this conversation as resolved.
|
||
| }, | ||
| "devDependencies": { | ||
| "@types/lodash": "^4.17.24", | ||
| "@types/lru-cache": "^5.1.1", | ||
| "@types/mime": "^2.0.3", | ||
| "@types/node": "^22.20.1", | ||
| "@types/parse-cache-control": "^1.0.4", | ||
| "@types/q": "^1.5.8", | ||
| "@types/request": "^2.48.13", | ||
| "@typescript-eslint/eslint-plugin": "^5.62.0", | ||
| "@typescript-eslint/parser": "^5.62.0", | ||
| "chai": "^4.0.0", | ||
| "coveralls": "^3.0.9", | ||
| "eslint": "^7.0.0", | ||
| "eslint-plugin-import": "^2.22.0", | ||
| "lerna": "9.0.7", | ||
| "lerna": "^4.0.0", | ||
|
jitsedesmet marked this conversation as resolved.
|
||
| "manual-git-changelog": "^1.0.1", | ||
| "mocha": "^8.0.0", | ||
| "node-gyp": "^11.0.0", | ||
| "nyc": "^15.0.0", | ||
| "pre-commit": "^1.1.3", | ||
| "rdf-object": "^1.14.0", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need an additional dependency?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's a dependency of componentsjs. Pinned it because the older resolved version (1.8.0) had type errors in its own .d.ts files that broke the build once i enabled full lib-checking |
||
| "sinon": "^1.17.4", | ||
| "sinon-chai": "^2.14.0", | ||
| "supertest": "^6.0.0" | ||
| "supertest": "^6.0.0", | ||
| "typescript": "^5.9.3" | ||
| }, | ||
| "pre-commit": [ | ||
| "lint", | ||
|
|
@@ -31,12 +43,14 @@ | |
| "mocha": "mocha \"packages/*/test/**/*-test.js\" --recursive --require ./test/test-setup --timeout 500", | ||
| "test": "nyc npm run mocha", | ||
| "test-ci": "nyc --reporter=lcov npm run mocha", | ||
| "lint": "eslint packages/*/bin/* packages/*/lib packages/*/test", | ||
| "typecheck": "tsc -p tsconfig.json --noEmit", | ||
|
Michiel-VandeVelde marked this conversation as resolved.
|
||
| "build": "tsc -p tsconfig.json", | ||
| "lint": "eslint packages/*/bin/* packages/*/lib packages/*/test --ext .js,.ts", | ||
| "clean": "rm -rf ./node_modules && rm -rf ./packages/*/node_modules", | ||
| "dedupe": "npx yarn-deduplicate yarn.lock --scopes", | ||
| "publish": "lerna publish", | ||
| "publish-bare": "lerna exec -- npm publish --silent", | ||
| "postinstall": "lerna run prepare", | ||
| "postinstall": "lerna run prepare && yarn run build", | ||
| "version": "manual-git-changelog onversion" | ||
| } | ||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| /*! @license MIT ©2015-2016 Ruben Verborgh, Ghent University - imec */ | ||
| /* Exports of the components of this package */ | ||
|
|
||
| export * as controllers from './lib/controllers'; | ||
| export * as datasources from './lib/datasources'; | ||
| export * as routers from './lib/routers'; | ||
| export * as views from './lib/views'; | ||
| export { runCli, runCustom } from './lib/CliRunner'; | ||
| export { LinkedDataFragmentsServer } from './lib/LinkedDataFragmentsServer'; | ||
| export { LinkedDataFragmentsServerWorker } from './lib/LinkedDataFragmentsServerWorker'; | ||
| export { UrlData } from './lib/UrlData'; | ||
| export * as Util from './lib/Util'; | ||
| export * from './lib/types'; |
Uh oh!
There was an error while loading. Please reload this page.