Skip to content

Commit

Permalink
chore: use typescript composite build
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Oct 13, 2021
1 parent 771fa39 commit b5b4e9d
Show file tree
Hide file tree
Showing 82 changed files with 5,148 additions and 6,758 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
"tsconfigRootDir": null,
"project": ["./tsconfig.eslint.json"]
},
"extends": ["eslint:recommended", "standard", "prettier", "plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint", "unused-imports"],
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ packages/*

# JetBrains IDEs
.idea/

# tsc build info
tsconfig.tsbuildinfo
2 changes: 1 addition & 1 deletion examples/servients/coap-servient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"repository": "https://github.com/eclipse/thingweb.node-wot/tree/master/examples/servients",
"main": "coap-servient.js",
"scripts": {
"build": "tsc",
"build": "tsc -b",
"start": "node dist/my-cli.js"
},
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions examples/servients/coap-servient/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["es2015", "dom"],
"target": "ES2016",
"lib": ["es2016", "dom"],
"module": "commonjs",
"outDir": "dist",
"alwaysStrict": true,
Expand Down
7 changes: 5 additions & 2 deletions examples/servients/mbus-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@
"wot-typescript-definitions": "^0.8.0-SNAPSHOT.18"
},
"dependencies": {
"@node-wot/core": "0.8.0",
"@node-wot/binding-mbus": "0.8.0",
"@node-wot/binding-file": "0.8.0",
"@node-wot/binding-http": "0.8.0",
"fs": "0.0.1-security",
"node-mbus": "^1.2.2",
"path": "^0.12.7",
"typescript": "4.1.3"
},
"scripts": {
"postinstall": "npm link @node-wot/core && npm link @node-wot/binding-mbus && npm link @node-wot/binding-file && npm link @node-wot/binding-http",
"build": "tsc",
"build": "tsc -b",
"start": "ts-node src/mbus-cli.ts",
"codestyle": "standard --pretty"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/servients/mbus-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["es2015", "dom"],
"target": "ES2016",
"lib": ["ES2016", "dom"],
"module": "commonjs",
"outDir": "dist",
"alwaysStrict": true,
Expand Down
7 changes: 5 additions & 2 deletions examples/servients/modbus-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@
"wot-typescript-definitions": "^0.8.0-SNAPSHOT.18"
},
"dependencies": {
"@node-wot/core": "0.8.0",
"@node-wot/binding-modbus": "0.8.0",
"@node-wot/binding-file": "0.8.0",
"@node-wot/binding-http": "0.8.0",
"fs": "0.0.1-security",
"modbus-serial": "^8.0.3",
"path": "^0.12.7",
"typescript": "4.1.3"
},
"scripts": {
"postinstall": "npm link @node-wot/core && npm link @node-wot/binding-modbus && npm link @node-wot/binding-file && npm link @node-wot/binding-http",
"build": "tsc",
"build": "tsc -b",
"start": "ts-node src/modbus-cli.ts",
"codestyle": "standard --pretty",
"server": "ts-node src/test-modbus-server.ts"
Expand Down
4 changes: 2 additions & 2 deletions examples/servients/modbus-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["es2015", "dom"],
"target": "ES2016",
"lib": ["ES2016", "dom"],
"module": "commonjs",
"outDir": "dist",
"alwaysStrict": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/servients/netconf-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@node-wot/binding-file": "0.8.0"
},
"scripts": {
"build": "tsc",
"build": "tsc -b",
"start": "ts-node src/netconf-cli.ts"
}
}
4 changes: 2 additions & 2 deletions examples/servients/netconf-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["es2015", "dom"],
"target": "ES2016",
"lib": ["ES2016", "dom"],
"module": "commonjs",
"outDir": "dist",
"alwaysStrict": true,
Expand Down
Loading

0 comments on commit b5b4e9d

Please sign in to comment.