Skip to content

Commit

Permalink
Remove almost everything from the root package.json and create the `@…
Browse files Browse the repository at this point in the history
…kie-tools-scripts` scope (apache#1209)

* Create @kie-tools-build scope

* Fix sparse-checkout dependencies

* Fix sparse-checkout/run.sh

* Improve repo/graph.dot

* Remove dependencies to build-env and run-script-if

* Rename scopes of run-script-if and build-env

* Make everyone depend on root

* Improve bootstrap

* Improve install

* Remove comment

* Reorganize env

* Remove wrong dependency from scripts package

* Remove dependency to kie-tools-root

* Fix

* Removing extra dependencies on some packages

* Rename root-en

* Reduce the number of root dependencies

* Bulding dmn-dev-sandbox-form-webapp well

* build:dev working

* Fix

* Try and fix bootstrap on windows

* Fix bootstrap

* Try and fix bootstrap on windows again

* Adding missing typescript dependencies

* Lockfile

* Rename to @kie-tools-scripts

* Remove env dir from sparse checkout

* Lockfile

* Lockfile again

* Fix Standalone Editor tests

* Move eslint out of the root scope

* Remove eslint from package root

* Make some packages private

* Oops. Fix eslint

* Bump telemetry-action to 1.8.3

* Move maven-config-setup-helper out of scripts

* Remove tsconfig files from root dir

* Fix dependencies and CodeQL suggestion

* Oops. Fix lockfile

* Revert ESLint changes as the code suggested by CodeQL doesn't work on Windows
  • Loading branch information
tiagobento authored Aug 31, 2022
1 parent a40fba4 commit 2915a1e
Show file tree
Hide file tree
Showing 377 changed files with 4,987 additions and 1,743 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_code_formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
- name: "Check code formatting"
shell: bash
run: |
pnpm install-dependencies -F .
pnpm bootstrap:root
pnpm format:check
2 changes: 1 addition & 1 deletion .github/workflows/check_dependencies_consistency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
- name: "Check dependencies mismatches"
shell: bash
run: |
pnpm install-dependencies -F .
pnpm bootstrap:root
npx --yes [email protected] list-mismatches
2 changes: 1 addition & 1 deletion .github/workflows/monorepo_pr_ci_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: "Start telemetry service (`main` only)"
if: steps.check_diff_paths.outputs.should_run == 'true' && !github.event.pull_request
uses: runforesight/workflow-telemetry-action@f5b7d16a7dd7bbf8c615334fa354a548dadda915
uses: runforesight/workflow-telemetry-action@7af88337f61e495d20c0ffa970cf7691532af740

- name: "Setup environment"
if: steps.check_diff_paths.outputs.should_run == 'true'
Expand Down
4 changes: 2 additions & 2 deletions examples/base64png-editor-chrome-extension/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

const { varsWithName, composeEnv } = require("@kie-tools/build-env");
const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/build-env/env")], {
module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({}),
get env() {
return {
Expand Down
11 changes: 9 additions & 2 deletions examples/base64png-editor-chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@
"@kie-tools-examples/base64png-editor": "workspace:*"
},
"devDependencies": {
"@kie-tools-core/run-script-if": "workspace:*",
"@kie-tools-core/webpack-base": "workspace:*",
"@kie-tools/build-env": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@types/chrome": "^0.0.193",
"copy-webpack-plugin": "^8.1.1",
"rimraf": "^3.0.2",
"typescript": "^4.4.2",
"webpack": "^5.36.2",
"webpack-cli": "^4.7.0",
"webpack-dev-server": "^4.7.3",
"webpack-merge": "^5.7.3",
"zip-webpack-plugin": "^4.0.1"
},
"babel": {
Expand Down
2 changes: 1 addition & 1 deletion examples/base64png-editor-chrome-extension/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "@kie-tools/tsconfig/tsconfig.json",
"compilerOptions": {
"declaration": false,
"declarationMap": false
Expand Down
4 changes: 2 additions & 2 deletions examples/base64png-editor-vscode-extension/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

const { varsWithName, composeEnv } = require("@kie-tools/build-env");
const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/build-env/env")], {
module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({}),
get env() {
return {};
Expand Down
12 changes: 9 additions & 3 deletions examples/base64png-editor-vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@
"@kie-tools-examples/base64png-editor": "workspace:*"
},
"devDependencies": {
"@kie-tools-core/run-script-if": "workspace:*",
"@kie-tools-core/webpack-base": "workspace:*",
"@kie-tools/build-env": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@types/vscode": "^1.66.0",
"vsce": "^2.6.5"
"rimraf": "^3.0.2",
"typescript": "^4.4.2",
"vsce": "^2.6.5",
"webpack": "^5.36.2",
"webpack-cli": "^4.7.0",
"webpack-dev-server": "^4.7.3",
"webpack-merge": "^5.7.3"
},
"engines": {
"vscode": "^1.66.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/base64png-editor-vscode-extension/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "@kie-tools/tsconfig/tsconfig.json",
"compilerOptions": {
"declaration": false,
"declarationMap": false
Expand Down
4 changes: 2 additions & 2 deletions examples/base64png-editor/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

const { varsWithName, composeEnv } = require("@kie-tools/build-env");
const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/build-env/env")], {
module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({}),
get env() {
return {};
Expand Down
9 changes: 7 additions & 2 deletions examples/base64png-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"@kie-tools-core/run-script-if": "workspace:*",
"@kie-tools/build-env": "workspace:*"
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"copyfiles": "^2.4.1",
"rimraf": "^3.0.2",
"typescript": "^4.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/base64png-editor/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "@kie-tools/tsconfig/tsconfig.json",
"compilerOptions": {
"outDir": "dist"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/dashbuilder/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

const { varsWithName, composeEnv } = require("@kie-tools/build-env");
const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/build-env/env")], {
module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({}),
get env() {
return {};
Expand Down
4 changes: 2 additions & 2 deletions examples/ping-pong-view-angular/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

const { varsWithName, composeEnv } = require("@kie-tools/build-env");
const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/build-env/env")], {
module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({}),
get env() {
return {};
Expand Down
6 changes: 4 additions & 2 deletions examples/ping-pong-view-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
"@angular-devkit/build-angular": "^13.1.2",
"@angular/cli": "^13.1.2",
"@angular/compiler-cli": "^13.1.1",
"@kie-tools-core/run-script-if": "workspace:*",
"@kie-tools/build-env": "workspace:*"
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"rimraf": "^3.0.2",
"typescript": "^4.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/ping-pong-view-angular/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "@kie-tools/tsconfig/tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"moduleResolution": "node"
Expand Down
4 changes: 2 additions & 2 deletions examples/ping-pong-view-react/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

const { varsWithName, composeEnv } = require("@kie-tools/build-env");
const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/build-env/env")], {
module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({}),
get env() {
return {};
Expand Down
9 changes: 7 additions & 2 deletions examples/ping-pong-view-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"@kie-tools-core/run-script-if": "workspace:*",
"@kie-tools/build-env": "workspace:*"
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"copyfiles": "^2.4.1",
"rimraf": "^3.0.2",
"typescript": "^4.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/ping-pong-view-react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "@kie-tools/tsconfig/tsconfig.json",
"compilerOptions": {
"outDir": "dist"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/ping-pong-view/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

const { varsWithName, composeEnv } = require("@kie-tools/build-env");
const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/build-env/env")], {
module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({}),
get env() {
return {};
Expand Down
8 changes: 6 additions & 2 deletions examples/ping-pong-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"@kie-tools-core/run-script-if": "workspace:*",
"@kie-tools/build-env": "workspace:*"
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"rimraf": "^3.0.2",
"typescript": "^4.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/ping-pong-view/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "@kie-tools/tsconfig/tsconfig.json",
"compilerOptions": {
"outDir": "dist"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/todo-list-view-vscode-extension/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

const { varsWithName, composeEnv } = require("@kie-tools/build-env");
const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/build-env/env")], {
module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({}),
get env() {
return {};
Expand Down
12 changes: 9 additions & 3 deletions examples/todo-list-view-vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
},
"devDependencies": {
"@kie-tools-core/patternfly-base": "workspace:*",
"@kie-tools-core/run-script-if": "workspace:*",
"@kie-tools-core/webpack-base": "workspace:*",
"@kie-tools/build-env": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@types/vscode": "^1.66.0",
"vsce": "^2.6.5"
"rimraf": "^3.0.2",
"typescript": "^4.4.2",
"vsce": "^2.6.5",
"webpack": "^5.36.2",
"webpack-cli": "^4.7.0",
"webpack-dev-server": "^4.7.3",
"webpack-merge": "^5.7.3"
},
"engines": {
"vscode": "^1.66.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/todo-list-view-vscode-extension/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "@kie-tools/tsconfig/tsconfig.json",
"compilerOptions": {
"declaration": false,
"declarationMap": false
Expand Down
4 changes: 2 additions & 2 deletions examples/todo-list-view/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

const { varsWithName, composeEnv } = require("@kie-tools/build-env");
const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/build-env/env")], {
module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({}),
get env() {
return {};
Expand Down
11 changes: 8 additions & 3 deletions examples/todo-list-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"@kie-tools-core/run-script-if": "workspace:*",
"@kie-tools/build-env": "workspace:*",
"@types/vscode": "^1.66.0"
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@types/vscode": "^1.66.0",
"copyfiles": "^2.4.1",
"rimraf": "^3.0.2",
"typescript": "^4.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/todo-list-view/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "@kie-tools/tsconfig/tsconfig.json",
"compilerOptions": {
"outDir": "dist"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/webapp/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

const { varsWithName, composeEnv } = require("@kie-tools/build-env");
const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/build-env/env")], {
module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({}),
get env() {
return {
Expand Down
16 changes: 13 additions & 3 deletions examples/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,21 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"@kie-tools-core/run-script-if": "workspace:*",
"@kie-tools-core/webpack-base": "workspace:*",
"@kie-tools/build-env": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/stunner-editors": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@types/react-router": "^5.1.14",
"@types/react-router-dom": "^5.1.7",
"react-router-dom": "^5.2.1"
"copy-webpack-plugin": "^8.1.1",
"react-router-dom": "^5.2.1",
"rimraf": "^3.0.2",
"typescript": "^4.4.2",
"webpack": "^5.36.2",
"webpack-cli": "^4.7.0",
"webpack-dev-server": "^4.7.3",
"webpack-merge": "^5.7.3"
}
}
2 changes: 1 addition & 1 deletion examples/webapp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "@kie-tools/tsconfig/tsconfig.json",
"compilerOptions": {
"declaration": false,
"declarationMap": false
Expand Down
Loading

0 comments on commit 2915a1e

Please sign in to comment.