Skip to content

Commit a5f26c5

Browse files
authored
Merge pull request #1213 from microsoft/dev
Sync from dev
2 parents 23a444f + 9fe5dca commit a5f26c5

33 files changed

Lines changed: 80 additions & 29 deletions

File tree

src/client/src/containers/AppServiceModal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const backendFrameworkNameToAppServiceRuntimeStack: Map<
9494
[WIZARD_CONTENT_INTERNAL_NAMES.NODE, WIZARD_CONTENT_INTERNAL_NAMES.NODE],
9595
[
9696
WIZARD_CONTENT_INTERNAL_NAMES.MOLECULER,
97-
WIZARD_CONTENT_INTERNAL_NAMES.MOLECULER
97+
WIZARD_CONTENT_INTERNAL_NAMES.NODE
9898
],
9999
[WIZARD_CONTENT_INTERNAL_NAMES.FLASK, WIZARD_CONTENT_INTERNAL_NAMES.PYTHON]
100100
]);

src/client/src/mockData/mockVsCodeApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const mockVsCodeApi = () => ({
197197
platforms: ["Web"],
198198
languages: ["Any"],
199199
tags: {
200-
version: "0.13.10",
200+
version: "0.13.11",
201201
preview: false
202202
}
203203
},

src/extension/src/azure/utils/settings.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export namespace Settings {
88
fsPath,
99
CONSTANTS.APP_SERVICE_DEPLOYMENT.DOT_VSCODE_FOLDER
1010
);
11-
await fse.mkdir(dotVSCodeFolder);
11+
let vsCodeFolderExists = await fse.pathExists(dotVSCodeFolder);
12+
if (!vsCodeFolderExists) {
13+
await fse.mkdir(dotVSCodeFolder);
14+
}
1215
const settingPath = path.join(
1316
dotVSCodeFolder,
1417
CONSTANTS.APP_SERVICE_DEPLOYMENT.SETTINGS_FILE_NAME

templates/Web/Projects/MoleculerDefault/.template.config/template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"manualInstructions": [],
6565
"actionId": "CB387AC0-16D0-4E07-B41A-F1EA616A7CA9",
6666
"args": {
67-
"dict": "{'moleculer': '^0.13.10', 'moleculer-web': '0.9.0-beta6'}",
67+
"dict": "{'moleculer': '^0.13.11', 'moleculer-web': '0.9.0-beta6'}",
6868
"key": "dependencies",
6969
"jsonPath": "package.json"
7070
},

templates/Web/Projects/MoleculerDefault/README_postaction.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ The front-end is served on http://localhost:3000/ and the back-end on http://loc
88
```
99
.
1010
//{[{
11-
├── services/ - Moleculer services that provides API routes and serves front-end with data
12-
│ └── api.service.js - HTTP gateway service
13-
│ ├── pages.service.js - Service that serves the data
14-
│ ├── pages.actions.js - Contains the actual handlers for the API calls
11+
├── server/ Directory with everything backend-related
12+
│ ├── moleculer.config.js - Moleculer Service Broker configuration file. More info: https://moleculer.services/docs/0.13/broker.html
13+
│ ├── services/ - Moleculer services that provides API routes and serves front-end with data
14+
│ │ ├── api.service.js - HTTP gateway service
15+
│ │ └── pages.service.js - Service that serves the data and contains the actual handlers for the API calls
1516
//}]}
1617
└── README.md
1718
```

templates/Web/Projects/MoleculerDefault/moleculer.config.js renamed to templates/Web/Projects/MoleculerDefault/server/moleculer.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
// Namespace of nodes to segment your nodes on the same network.
2020
namespace: "",
2121
// Unique node identifier. Must be unique in a namespace.
22-
nodeID: null,
22+
nodeID: "webTS",
2323

2424
// Enable/disable logging or use custom logger. More info: https://moleculer.services/docs/0.13/logging.html
2525
logger: true,
@@ -30,6 +30,10 @@ module.exports = {
3030
// Custom object & array printer for built-in console logger.
3131
logObjectPrinter: null,
3232

33+
// Define transporter.
34+
// More info: https://moleculer.services/docs/0.14/networking.html
35+
transporter: null,
36+
3337
// Define a serializer.
3438
// Available values: "JSON", "Avro", "ProtoBuf", "MsgPack", "Notepack", "Thrift".
3539
// More info: https://moleculer.services/docs/0.13/networking.html
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "WebTemplateStudioMoleculer",
3+
"version": "0.0.0",
4+
"private": true,
5+
"dependencies": {
6+
"moleculer": "^0.13.11",
7+
"moleculer-web": "0.9.0-beta6"
8+
},
9+
"engines": {
10+
"node": ">=10.14.1"
11+
}
12+
}

templates/Web/Projects/MoleculerDefault/services/api.service.js renamed to templates/Web/Projects/MoleculerDefault/server/services/api.service.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use strict";
22

33
const ApiGateway = require("moleculer-web");
4+
const path = require("path");
45

56
module.exports = {
67
name: "api",
@@ -29,9 +30,9 @@ module.exports = {
2930
}
3031
],
3132

32-
// Serve assets from "server/build" folder
33+
// Serve assets from "build" folder
3334
assets: {
34-
folder: "server/build"
35+
folder: path.resolve(__dirname, "..", "build")
3536
}
3637
}
3738
};

templates/Web/Projects/MoleculerDefault/services/pages.service.js renamed to templates/Web/Projects/MoleculerDefault/server/services/pages.service.js

File renamed without changes.

templates/Web/_composition/MoleculerJS/Page.Moleculer.AddSampleData.ForAllExceptList/README_postaction.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44

55
### Sample Data
66

7-
Replace the sample data stored in /server/sampleData.js.
8-
Replace the default images stored in /src/images.
7+
Replace the sample data stored in `server/data/sampleData.js`.
98
//}]}
109

1110
### Deployment
1211

1312
.
14-
├── services/ - Moleculer services that provides API routes and serves front-end with data
15-
│ └── api.service.js - HTTP gateway service
16-
│ ├── pages.service.js - Service that serves the data
17-
│ ├── pages.actions.js - Contains the actual handlers for the API calls
13+
├── server/ Directory with everything backend-related
14+
│ ├── moleculer.config.js - Moleculer Service Broker configuration file. More info: https://moleculer.services/docs/0.13/broker.html
15+
│ ├── services/ - Moleculer services that provides API routes and serves front-end with data
16+
│ │ ├── api.service.js - HTTP gateway service
17+
│ │ └── pages.service.js - Service that serves the data and contains the actual handlers for the API calls
1818
//{[{
19-
│ ├── sampleData.js - Contains all sample text data required to generate pages
19+
│ ├── data/ - Folder containing data samples
20+
│ └── sampleData.js - Contains all sample text data required to generate pages
2021
//}]}

0 commit comments

Comments
 (0)