Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit 876d7f1

Browse files
authored
Monorepo (#8)
* mono repoify * fix build.yml
1 parent 58a03f5 commit 876d7f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+618
-72
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
name: build
88

99
env:
10-
AZURE_WEBAPP_PACKAGE_PATH: "./"
10+
AZURE_WEBAPP_PACKAGE_PATH: "./packages/gateway/"
1111
NODE_VERSION: "18.x"
1212

1313
jobs:

dev.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import dotenv from "dotenv"
22
const out = dotenv.config()
33
if (out.error)
44
throw out.error
5-
import("./dist/src/index.js")
5+
import("./packages/gateway/dist/src/index.js")

nx.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"tasksRunnerOptions": {
3+
"default": {
4+
"runner": "nx/tasks-runners/default",
5+
"options": {
6+
"cacheableOperations": []
7+
}
8+
}
9+
},
10+
"defaultBase": "main"
11+
}

package.json

Lines changed: 29 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,31 @@
11
{
2-
"name": "devicescript-gateway",
3-
"version": "0.1.0",
4-
"description": "Development Gateway infrastructure supporting DeviceScript.",
5-
"license": "MIT",
6-
"private": true,
7-
"files": [
8-
"dist/**"
9-
],
10-
"scripts": {
11-
"setup": "git submodule update --init --recursive && git pull && yarn install --frozen-lockfile",
12-
"connection": "cd infra && zx ./connection.mjs",
13-
"provision": "cd infra && zx ./provision.mjs",
14-
"unprovision": "cd infra && zx ./unprovision.mjs",
15-
"launch": "cd infra && zx ./launch.mjs",
16-
"debug": "cd infra && zx ./debug.mjs",
17-
"build": "tsc",
18-
"watch": "tsc -w",
19-
"start": "node dist/src/index.js",
20-
"local": "node dev.mjs",
21-
"dev": "yarn build && yarn local",
22-
"logs": "node infra/logs.mjs",
23-
"deploy": "node infra/zipdeploy.mjs"
24-
},
25-
"dependencies": {
26-
"@azure/data-tables": "^13.2.0",
27-
"@azure/event-hubs": "^5.8.0",
28-
"@azure/identity": "^3.1.3",
29-
"@azure/keyvault-secrets": "^4.6.0",
30-
"@azure/storage-blob": "^12.11.0",
31-
"@fastify/basic-auth": "^4.0.0",
32-
"@fastify/cors": "^8.1.0",
33-
"@fastify/static": "^6.5.0",
34-
"@fastify/websocket": "^7.1.0",
35-
"aedes": "^0.48.0",
36-
"applicationinsights": "^2.5.0",
37-
"fastify": "^4.9.2",
38-
"http-errors": "^2.0.0",
39-
"node-fetch": "^2.6.7",
40-
"openapi-types": "^12.1.0",
41-
"pino-pretty": "^9.1.1",
42-
"swagger-ui-dist": "^4.15.0"
43-
},
44-
"devDependencies": {
45-
"@octokit/core": "^4.2.0",
46-
"@types/http-errors": "^1.8.2",
47-
"@types/node": "16.x",
48-
"@types/ws": "^8.5.3",
49-
"archiver": "^5.3.1",
50-
"dotenv": "^16.0.3",
51-
"libsodium-wrappers": "^0.7.11",
52-
"open": "^8.4.2",
53-
"typescript": "^4.0.0",
54-
"xmlbuilder2": "^3.0.2",
55-
"zx": "^7.2.0"
56-
}
2+
"private": true,
3+
"workspaces": [
4+
"packages/*"
5+
],
6+
"devDependencies": {
7+
"nx": "15.8.6"
8+
},
9+
"tasksRunnerOptions": {
10+
"default": {
11+
"runner": "nx/tasks-runners/default",
12+
"options": {
13+
"cacheableOperations": [
14+
"build",
15+
"test",
16+
"lint"
17+
]
18+
}
19+
}
20+
},
21+
"targetDefaults": {
22+
"build": {
23+
"dependsOn": [
24+
"^build"
25+
]
26+
}
27+
},
28+
"scripts": {
29+
"build": "nx run-many --target=build"
30+
}
5731
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)