Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 36587e8

Browse files
authored
feat: upgrade nodejs-loopback stack to the latest version of LoopBack (#738)
1 parent a3be05c commit 36587e8

File tree

16 files changed

+3685
-2445
lines changed

16 files changed

+3685
-2445
lines changed

incubator/nodejs-loopback/image/project/package-lock.json

Lines changed: 1843 additions & 1114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nodejs-loopback",
3-
"version": "0.2.3",
3+
"version": "0.3.0",
44
"description": "Node.js LoopBack 4 Stack",
55
"license": "Apache-2.0",
66
"repository": {
@@ -18,29 +18,29 @@
1818
"test": "lb-mocha --allow-console-logs \"dist/__tests__\""
1919
},
2020
"dependencies": {
21-
"@loopback/boot": "^1.5.12",
22-
"@loopback/context": "^1.24.0",
23-
"@loopback/core": "^1.11.0",
24-
"@loopback/extension-health": "^0.2.12",
25-
"@loopback/extension-metrics": "^0.1.1",
26-
"@loopback/openapi-v3": "^1.10.2",
27-
"@loopback/repository": "^1.15.5",
28-
"@loopback/rest": "^1.24.0",
29-
"@loopback/rest-explorer": "^1.4.5",
30-
"@loopback/service-proxy": "^1.3.12"
21+
"@loopback/boot": "^2.0.2",
22+
"@loopback/context": "^3.2.0",
23+
"@loopback/core": "^2.2.0",
24+
"@loopback/extension-health": "^0.3.2",
25+
"@loopback/extension-metrics": "^0.2.2",
26+
"@loopback/openapi-v3": "^3.1.1",
27+
"@loopback/repository": "^2.0.2",
28+
"@loopback/rest": "^3.1.0",
29+
"@loopback/rest-explorer": "^2.0.2",
30+
"@loopback/service-proxy": "^2.0.2"
3131
},
3232
"devDependencies": {
33-
"@loopback/build": "^2.1.0",
34-
"@loopback/eslint-config": "^4.1.5",
35-
"@loopback/testlab": "^1.9.5",
36-
"@types/node": "^10.17.5",
37-
"@typescript-eslint/eslint-plugin": "^2.9.0",
38-
"@typescript-eslint/parser": "^2.9.0",
39-
"eslint": "^6.7.1",
40-
"eslint-config-prettier": "^6.7.0",
41-
"eslint-plugin-eslint-plugin": "^2.1.0",
42-
"eslint-plugin-mocha": "^6.2.2",
33+
"@loopback/build": "^5.0.0",
34+
"@loopback/eslint-config": "^6.0.2",
35+
"@loopback/testlab": "^2.0.2",
36+
"@types/node": "^10.17.17",
37+
"@typescript-eslint/eslint-plugin": "^2.25.0",
38+
"@typescript-eslint/parser": "^2.25.0",
39+
"eslint": "^6.8.0",
40+
"eslint-config-prettier": "^6.10.1",
41+
"eslint-plugin-eslint-plugin": "^2.2.1",
42+
"eslint-plugin-mocha": "^6.3.0",
4343
"source-map-support": "^0.5.16",
44-
"typescript": "~3.7.2"
44+
"typescript": "~3.8.3"
4545
}
4646
}

incubator/nodejs-loopback/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: LoopBack 4
2-
version: 0.2.3
2+
version: 0.3.0
33
description: LoopBack 4 API Framework for Node.js
44
maintainers:
55
- name: Raymond Feng
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
module.exports = {
22
extends: '@loopback/eslint-config',
3-
parserOptions: {
4-
// See https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration
5-
createDefaultProgram: true,
6-
},
73
};

incubator/nodejs-loopback/templates/scaffold/.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"bracketSpacing": false,
33
"singleQuote": true,
44
"printWidth": 80,
5-
"trailingComma": "all"
5+
"trailingComma": "all",
6+
"arrowParens": "avoid"
67
}

incubator/nodejs-loopback/templates/scaffold/.vscode/settings.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"editor.tabSize": 2,
55
"editor.trimAutoWhitespace": true,
66
"editor.formatOnSave": true,
7+
"editor.codeActionsOnSave": {
8+
"source.organizeImports": true,
9+
"source.fixAll.eslint": true
10+
},
711

812
"files.exclude": {
913
"**/.DS_Store": true,
@@ -17,14 +21,12 @@
1721
"files.trimTrailingWhitespace": true,
1822

1923
"typescript.tsdk": "./node_modules/typescript/lib",
20-
"eslint.autoFixOnSave": true,
24+
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
25+
"typescript.preferences.quoteStyle": "single",
2126
"eslint.run": "onSave",
2227
"eslint.nodePath": "./node_modules",
2328
"eslint.validate": [
2429
"javascript",
25-
{
26-
"language": "typescript",
27-
"autoFix": true
28-
}
30+
"typescript"
2931
]
3032
}

incubator/nodejs-loopback/templates/scaffold/.vscode/tasks.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
24
"version": "2.0.0",
35
"tasks": [
46
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"@loopback/cli": {
3-
"version": "1.25.1"
3+
"version": "2.2.1"
44
}
55
}

incubator/nodejs-loopback/templates/scaffold/DEVELOPING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Install the following extensions:
2525

2626
### Other editors/IDEs
2727

28-
1. Open a new terminal window/tab and start the continous build process via
28+
1. Open a new terminal window/tab and start the continuous build process via
2929
`npm run build:watch`. It will run TypeScript compiler in watch mode,
3030
recompiling files as you change them. Any compilation errors will be printed
3131
to the terminal.

incubator/nodejs-loopback/templates/scaffold/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ This project is originally generated using `lb4` command from `@loopback/cli`. S
44

55
It has been slightly tailored as a template for `appsody`.
66

7-
[![LoopBack](<https://github.com/strongloop/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)-@2x.png>)](http://loopback.io/)
7+
[![LoopBack](https://github.com/strongloop/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)-@2x.png)](http://loopback.io/)

0 commit comments

Comments
 (0)