-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65c2024
commit 078ac95
Showing
377 changed files
with
3,579 additions
and
16,748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
const base = require('@iot-app-kit/eslint-config'); | ||
|
||
module.exports = { | ||
...base, | ||
root: true, | ||
extends: ['iot-app-kit'], | ||
settings: { | ||
...base.settings, | ||
'import/resolver': { | ||
...base.settings['import/resolver'], | ||
typescript: { | ||
...base.settings['import/resolver'].typescript, | ||
project: ['apps/dev-env/tsconfig.json'], | ||
}, | ||
node: { | ||
project: ['apps/dev-env/tsconfig.json'], | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { definePackageConfig } from '@iot-app-kit/vite-config/definePackageConfig'; | ||
import react from '@vitejs/plugin-react'; | ||
import { defineConfig } from 'vite'; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
export default definePackageConfig({ | ||
iotAppKitPackage: { dirname: __dirname }, | ||
plugins: [react()], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const base = require('@iot-app-kit/eslint-config'); | ||
|
||
module.exports = { | ||
...base, | ||
root: true, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "@iot-app-kit/packaging", | ||
"version": "12.2.1", | ||
"private": true, | ||
"files": [ | ||
"dist" | ||
], | ||
"type": "module", | ||
"exports": { | ||
".": "./src/prepack.cts" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf .cache .turbo", | ||
"clean:nuke": "npm run clean && rimraf node_modules" | ||
}, | ||
"devDependencies": { | ||
"@iot-app-kit/eslint-config": "*", | ||
"@iot-app-kit/ts-config": "*", | ||
"@types/node": "^18.16.18", | ||
"fs-extra": "^11.2.0", | ||
"lodash-es": "^4.17.21", | ||
"rimraf": "^5.0.1", | ||
"rollup-plugin-copy": "^3.5.0", | ||
"typescript": "^5.5.4", | ||
"vite": "^5.4.11", | ||
"vite-plugin-dts": "^4.3.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env -S npx tsx | ||
import * as fse from 'fs-extra'; | ||
|
||
function postpack() { | ||
const sharedDependencies = process.argv.slice(2); | ||
|
||
revertSharedPackageVersions(sharedDependencies); | ||
} | ||
|
||
function revertSharedPackageVersions(sharedDependencies: string[]) { | ||
const packageJsonPath = './package.json'; | ||
const packageJson = fse.readJSONSync(packageJsonPath); | ||
|
||
sharedDependencies.forEach((dep) => { | ||
packageJson.dependencies[`@iot-app-kit/${dep}`] = '*'; | ||
}); | ||
|
||
fse.writeJSONSync(packageJsonPath, packageJson, { spaces: 2 }); | ||
} | ||
|
||
postpack(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env -S npx tsx | ||
import * as fse from 'fs-extra'; | ||
|
||
function prepack() { | ||
const sharedDependencies = process.argv.slice(2); | ||
|
||
setSharedPackageVersions(sharedDependencies); | ||
} | ||
|
||
function setSharedPackageVersions(sharedDependencies: string[]) { | ||
const packageJsonPath = './package.json'; | ||
const packageJson = fse.readJSONSync(packageJsonPath); | ||
console.log(packageJson); | ||
|
||
sharedDependencies.forEach((dep) => { | ||
packageJson.dependencies[`@iot-app-kit/${dep}`] = `file:./dist/${dep}`; | ||
}); | ||
|
||
fse.writeJSONSync(packageJsonPath, packageJson, { spaces: 2 }); | ||
} | ||
|
||
prepack(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"extends": "@iot-app-kit/ts-config/tsconfig.base.json", | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const base = require('@iot-app-kit/eslint-config'); | ||
|
||
module.exports = { | ||
...base, | ||
root: true, | ||
settings: { | ||
...base.settings, | ||
'import/resolver': { | ||
...base.settings['import/resolver'], | ||
typescript: { | ||
...base.settings['import/resolver'].typescript, | ||
project: ['configuration/vite-config/tsconfig.json'], | ||
}, | ||
node: { | ||
project: ['configuration/vite-config/tsconfig.json'], | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "@iot-app-kit/vite-config", | ||
"private": true, | ||
"type": "module", | ||
"exports": { | ||
"./definePackageConfig": "./src/definePackageConfig.ts" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf .cache .turbo", | ||
"clean:nuke": "npm run clean && rimraf node_modules", | ||
"lint": "eslint . --max-warnings=0 --cache --cache-location .cache/eslint/", | ||
"fix": "eslint --fix . --cache --cache-location ./cache/eslint/", | ||
"test:typescript": "tsc --noEmit" | ||
}, | ||
"devDependencies": { | ||
"@iot-app-kit/eslint-config": "*", | ||
"@iot-app-kit/ts-config": "*", | ||
"@types/node": "^18.16.18", | ||
"rimraf": "^5.0.1" | ||
}, | ||
"dependencies": { | ||
"fs-extra": "^11.2.0", | ||
"lodash-es": "^4.17.21", | ||
"rollup-plugin-copy": "^3.5.0", | ||
"tiny-invariant": "^1.3.1", | ||
"typescript": "^5.5.4", | ||
"vite": "^5.4.11", | ||
"vite-plugin-dts": "^4.3.0" | ||
} | ||
} |
Oops, something went wrong.