Skip to content

Commit

Permalink
chore: refactor plugins into yarn workspace - a single command to pub…
Browse files Browse the repository at this point in the history
…lish all base plugins
  • Loading branch information
louis-jan committed Sep 28, 2023
1 parent d2be2b0 commit 918c7e3
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"init"
],
"scripts": {
"build": "tsc",
"package": "rimraf ./data-plugin*.tgz && tsc -b . && webpack --config webpack.config.js && npm pack"
"build": "tsc -b .",
"build:package": "rimraf ./data-plugin*.tgz && npm run build && webpack --config webpack.config.js && npm pack",
"build:publish": "yarn build:package && cpx *.tgz ../../pre-install"
},
"exports": {
".": "./dist/index.js",
Expand All @@ -22,7 +23,8 @@
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
"webpack-cli": "^5.1.4",
"cpx": "^1.5.0"
},
"bundledDependencies": [
"sql.js",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"init"
],
"scripts": {
"prepare": "webpack --config webpack.config.js",
"package": "rimraf ./*.tgz && cpx \"module.js\" \"dist\" && npm pack"
"build": "webpack --config webpack.config.js",
"build:package": "rimraf ./*.tgz && npm run build && cpx \"module.js\" \"dist\" && npm pack",
"build:publish": "yarn build:package && cpx *.tgz ../../pre-install"
},
"devDependencies": {
"cpx": "^1.5.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"init"
],
"scripts": {
"prepare": "webpack --config webpack.config.js",
"package": "rimraf ./*.tgz && cpx \"module.js\" \"dist\" && npm pack"
"build": "webpack --config webpack.config.js",
"build:package": "rimraf ./*.tgz && npm run build && cpx \"module.js\" \"dist\" && npm pack",
"build:publish": "yarn build:package && cpx *.tgz ../../pre-install"
},
"devDependencies": {
"cpx": "^1.5.0",
Expand Down
17 changes: 17 additions & 0 deletions electron/core/plugins/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "jan-plugins",
"private": true,
"workspaces": {
"packages": [
"*"
],
"nohoist": [
"**"
]
},
"scripts": {
"build": "yarn workspaces -pt run build",
"build:package": "yarn build && yarn workspaces -pt run build:package",
"build:publish": "yarn build:package && yarn workspaces -pt run build:publish"
}
}
Empty file.
Binary file removed electron/core/pre-install/data-plugin.tgz
Binary file not shown.
Binary file removed electron/core/pre-install/inference-plugin.tgz
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion electron/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"noEmitOnError": true,
"allowJs": true,
"typeRoots": ["node_modules/@types"]
}
},
"exclude": ["core", "build", "node_modules"]
}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
],
"nohoist": [
"electron",
"electron/plugins",
"electron/plugins/**",
"electron/**",
"web",
"web/**"
Expand All @@ -29,6 +27,5 @@
"cpx": "^1.5.0",
"wait-on": "^7.0.1"
},
"dependencies": {},
"version": "0.0.0"
}

0 comments on commit 918c7e3

Please sign in to comment.