Skip to content
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

feat: tsconfig & other config #474

Merged
merged 21 commits into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Desktop.ini
*.d.ts
*.js
!/*.js
dist
build

# Dependencies
node_modules
Expand Down
2 changes: 1 addition & 1 deletion cloud/lab/zx-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"build": "chmod -v +x *.js"
},
"dependencies": {
"@alwatr/logger": "^0.25.0",
"@alwatr/logger": "~0.25.0",
"tslib": "~2.4.1",
"zx": "~7.1.1"
}
Expand Down
6 changes: 3 additions & 3 deletions cloud/lab/zx-example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"extends": "../../../tsconfig.json",
"extends": "../../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},
// files, include and exclude from the inheriting config are always overwritten.

"include": ["src/**/*"],
"exclude": [],
"references": [{"path": "../../core/logger"}]
"references": []
}
2 changes: 1 addition & 1 deletion core/fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"url": "https://github.com/AliMD/alwatr/issues"
},
"dependencies": {
"@alwatr/logger": "^0.25.0",
"@alwatr/logger": "~0.25.0",
"tslib": "~2.4.1"
}
}
8 changes: 5 additions & 3 deletions core/fetch/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},
// files, include and exclude from the inheriting config are always overwritten.

"include": ["src/**/*"],
"exclude": [],
"references": [{"path": "../logger"}]
"references": [
{"path": "../logger"}
]
}
6 changes: 3 additions & 3 deletions core/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"url": "https://github.com/AliMD/alwatr/issues"
},
"dependencies": {
"@alwatr/fetch": "^0.25.0",
"@alwatr/logger": "^0.25.0",
"@alwatr/signal": "^0.25.0",
"@alwatr/fetch": "~0.25.0",
"@alwatr/logger": "~0.25.0",
"@alwatr/signal": "~0.25.0",
"tslib": "~2.4.1"
}
}
11 changes: 8 additions & 3 deletions core/i18n/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},
// files, include and exclude from the inheriting config are always overwritten.

"include": ["src/**/*"],
"exclude": [],
"references": [{"path": "../logger"}, {"path": "../signal"}, {"path": "../fetch"}]
"references": [
{"path": "../logger"},
{"path": "../signal"},
{"path": "../fetch"}
]
}

7 changes: 3 additions & 4 deletions core/logger/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},
// files, include and exclude from the inheriting config are always overwritten.

"include": ["src/**/*"],
"exclude": [],
"references": [
]
"references": []
}
7 changes: 3 additions & 4 deletions core/math/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},
// files, include and exclude from the inheriting config are always overwritten.

"include": ["src/**/*"],
"exclude": [],
"references": [
]
"references": []
}
6 changes: 3 additions & 3 deletions core/nano-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"url": "https://github.com/AliMD/alwatr/issues"
},
"dependencies": {
"@alwatr/fetch": "^0.25.0",
"@alwatr/logger": "^0.25.0",
"@alwatr/math": "^0.25.0",
"@alwatr/fetch": "~0.25.0",
"@alwatr/logger": "~0.25.0",
"@alwatr/math": "~0.25.0",
"tslib": "~2.4.1"
}
}
9 changes: 6 additions & 3 deletions core/nano-server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},
// files, include and exclude from the inheriting config are always overwritten.

"include": ["src/**/*"],
"exclude": [],
"references": [{"path": "../logger"}, {"path": "../fetch"}]
"references": [
{"path": "../logger"},
{"path": "../fetch"}
]
}
4 changes: 2 additions & 2 deletions core/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"url": "https://github.com/AliMD/alwatr/issues"
},
"dependencies": {
"@alwatr/logger": "^0.25.0",
"@alwatr/signal": "^0.25.0",
"@alwatr/logger": "~0.25.0",
"@alwatr/signal": "~0.25.0",
"tslib": "~2.4.1"
}
}
9 changes: 6 additions & 3 deletions core/router/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},
// files, include and exclude from the inheriting config are always overwritten.

"include": ["src/**/*"],
"exclude": [],
"references": [{"path": "../logger"}, {"path": "../signal"}]
"references": [
{"path": "../logger"},
{"path": "../signal"}
]
}
2 changes: 1 addition & 1 deletion core/signal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"url": "https://github.com/AliMD/alwatr/issues"
},
"dependencies": {
"@alwatr/logger": "^0.25.0",
"@alwatr/logger": "~0.25.0",
"tslib": "~2.4.1"
}
}
8 changes: 5 additions & 3 deletions core/signal/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},
// files, include and exclude from the inheriting config are always overwritten.

"include": ["src/**/*"],
"exclude": [],
"references": [{"path": "../logger"}]
"references": [
{"path": "../logger"}
]
}
6 changes: 3 additions & 3 deletions core/storage-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"url": "https://github.com/AliMD/alwatr/issues"
},
"dependencies": {
"@alwatr/fetch": "^0.25.0",
"@alwatr/logger": "^0.25.0",
"@alwatr/storage-engine": "^0.25.0",
"@alwatr/fetch": "~0.25.0",
"@alwatr/logger": "~0.25.0",
"@alwatr/storage-engine": "~0.25.0",
"tslib": "~2.4.1"
}
}
12 changes: 8 additions & 4 deletions core/storage-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},
// files, include and exclude from the inheriting config are always overwritten.
"include": ["src/**/*.ts"],

"include": ["src/**/*"],
"exclude": [],
"references": [{"path": "../logger"}, {"path": "../fetch"}, {"path": "../storage-engine"}]
"references": [
{"path": "../logger"},
{"path": "../fetch"},
{"path": "../storage-engine"}
]
}
4 changes: 2 additions & 2 deletions core/storage-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"url": "https://github.com/AliMD/alwatr/issues"
},
"dependencies": {
"@alwatr/fetch": "^0.25.0",
"@alwatr/logger": "^0.25.0",
"@alwatr/fetch": "~0.25.0",
"@alwatr/logger": "~0.25.0",
"exit-hook": "~3.1.2",
"tslib": "~2.4.1"
}
Expand Down
11 changes: 7 additions & 4 deletions core/storage-engine/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},
// files, include and exclude from the inheriting config are always overwritten.
"include": ["src/**/*.ts"],

"include": ["src/**/*"],
"exclude": [],
"references": [{"path": "../logger"}, {"path": "../fetch"}]
"references": [
{"path": "../logger"},
{"path": "../fetch"}
]
}
4 changes: 2 additions & 2 deletions core/token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"url": "https://github.com/AliMD/alwatr/issues"
},
"dependencies": {
"@alwatr/logger": "^0.25.0",
"@alwatr/math": "^0.25.0",
"@alwatr/logger": "~0.25.0",
"@alwatr/math": "~0.25.0",
"tslib": "~2.4.1"
}
}
9 changes: 6 additions & 3 deletions core/token/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},
// files, include and exclude from the inheriting config are always overwritten.

"include": ["src/**/*"],
"exclude": [],
"references": [{"path": "../logger"}, {"path": "../math"}]
"references": [
{"path": "../logger"},
{"path": "../math"},
]
}
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"MohammadMahdi Zamanian <[email protected]>"
],
"dependencies": {
"@alwatr/logger": "^0.25.0",
"@alwatr/logger": "~0.25.0",
"tslib": "~2.4.1"
}
}
9 changes: 5 additions & 4 deletions demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"extends": "../tsconfig.json",
"extends": "../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": ".",
"outDir": ".",
"tsBuildInfoFile": ".tsbuildinfo"
"outDir": "."
},

"include": ["**/*.ts"],
"exclude": ["*.d.ts", "node_modules"],
"references": [
{"path": "../core/logger"},
{"path": "../core/fetch"},
Expand All @@ -20,5 +22,4 @@
{"path": "../core/storage-client"},
{"path": "../core/token"}
],
"exclude": ["*.d.ts", "node_modules"]
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"core/*",
"services/*",
"ui-kit/*",
"uniquely/*",
"pwa/*",
"demo"
],
"scripts": {
Expand Down Expand Up @@ -60,9 +62,9 @@
"lerna": "~6.1.0",
"lit-analyzer": "~1.2.1",
"npm-run-all": "~4.1.5",
"prettier": "~2.8.0",
"prettier": "~2.8.1",
"rimraf": "~3.0.2",
"ts-lit-plugin": "~1.2.1",
"typescript": "~4.9.3"
"typescript": "~4.9.4"
}
}
5 changes: 2 additions & 3 deletions pwa/flight-finder/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=2, user-scalable=yes, viewport-fit=cover"
/>
<base href="/">
<base href="/" />

<title>Flight Finder</title>
<meta name="description" content="An Flight Finder Progressive Web Application!" />
Expand Down Expand Up @@ -62,8 +62,7 @@
</ion-app>

<script type="text/javascript" src="./config.js"></script>
<!-- <script type="module" src="build/alwatr-pwa.esm.js"></script> -->
<script type="module" src="src/alwatr-pwa.js"></script>
<script type="module" src="build/alwatr-pwa.js"></script>

<noscript>
<div class="noscript">
Expand Down
Loading