forked from apache/incubator-kie-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KOGITO-7159: Remove Yarn for installing packages and running scripts (a…
…pache#996) * Remove yarn from top-level scripts * Remove yarn usage in all places except for dashbuilder * Rollback to --yarn option on vsce usage * Test if bringing back Yarn on powershell commands is enough
- Loading branch information
1 parent
2ecbb7b
commit 772f484
Showing
107 changed files
with
363 additions
and
379 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ runs: | |
echo "STEP: Setup Yarn and Lerna" | ||
cd ${{ inputs.path }} | ||
npm install -g [email protected] [email protected] | ||
yarn config set network-timeout 1000000 | ||
pnpm config set network-timeout 1000000 | ||
- name: "Setup default Maven args" | ||
shell: bash | ||
|
@@ -62,7 +62,7 @@ runs: | |
run: | | ||
echo "STEP: Bootstrap" | ||
cd ${{ inputs.path }} | ||
yarn bootstrap --frozen-lockfile | ||
pnpm bootstrap --frozen-lockfile | ||
- name: "Check dependencies mismatches" | ||
shell: bash | ||
|
@@ -76,7 +76,7 @@ runs: | |
run: | | ||
echo "STEP: Check format" | ||
cd ${{ inputs.path }} | ||
yarn format:check | ||
pnpm format:check | ||
- name: "Start Xvfb (Ubuntu only)" | ||
shell: bash | ||
|
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn pretty-quick --staged | ||
pnpm pretty-quick --staged |
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 |
---|---|---|
|
@@ -23,7 +23,6 @@ This repository contains all the tooling artifacts of the Kogito project. | |
To start building the KIE Tools project, you're going to need: | ||
|
||
- Node `>= 16.13.2` _(To install, follow these instructions: https://nodejs.org/en/download/package-manager/)_ | ||
- Yarn `1.22.10` _(To install, run `npm install -g [email protected]`)_ | ||
- pnpm `7.0.0` _(To install, follow these instructions: https://pnpm.io/installation)_ | ||
- Maven `3.8.1` | ||
- Java `11` | ||
|
@@ -40,7 +39,7 @@ Users of Fedora or RHEL will also need to add an additional repository: | |
|
||
After installing the tools above, you'll need to download the dependencies and link the packages locally. Simply run: | ||
|
||
- `yarn bootstrap` | ||
- `pnpm bootstrap` | ||
|
||
To build it, you'll have two choices. Note that you always need to specify which package you want to build, so replace `[pkg-name]` with the name of the desired package. | ||
|
||
|
@@ -65,28 +64,28 @@ The KIE Tools project contains several applications. To develop each one of them | |
#### Chrome Extension | ||
|
||
1. After you've successfully built the project following the instructions above, open the `packages/chrome-extension-pack-kogito-kie-editors` folder on your favourite IDE. You can import the entire repo as well if you want to make changes to other packages. | ||
2. Run `yarn build:dev` on `packages/chrome-extension-pack-kogito-kie-editors`. This will create a version of the Chrome Extension that fetches the envelope locally. | ||
3. Open a terminal and run `yarn start` on `packages/chrome-extension-pack-kogito-kie-editors`. This will start a `webpack serve` instance with the editors and their envelope. We use that because we don't pack the Chrome Extension bundle with the editors inside. Instead, we fetch them from GitHub pages. | ||
2. Run `pnpm build:dev` on `packages/chrome-extension-pack-kogito-kie-editors`. This will create a version of the Chrome Extension that fetches the envelope locally. | ||
3. Open a terminal and run `pnpm start` on `packages/chrome-extension-pack-kogito-kie-editors`. This will start a `webpack serve` instance with the editors and their envelope. We use that because we don't pack the Chrome Extension bundle with the editors inside. Instead, we fetch them from GitHub pages. | ||
4. You also have to enable invalid certificates for resources loaded from localhost in your browser. To do that, go to `chrome://flags/#allow-insecure-localhost` in your Chrome browser and enable this flag. Alternativelly, you can go to `https://localhost:9001` and add an exception. | ||
5. Open Chrome and go to `chrome://extensions`. Enable "Developer mode" in the top-right corner and click on "Load unpacked". Choose the `packages/chrome-extension-pack-kogito-kie-editors/dist` folder. | ||
6. From now on you can use the development version of the extension. **Remember!** After each change, you have to rebuild the changed modules and hit the "Refresh" button of the extension card. | ||
|
||
#### Online Editor | ||
|
||
1. After you've successfully built the project following the instructions above, go to `packages/online-editor`. | ||
2. Open a terminal and run `yarn start`. This will start a `webpack serve` instance with the Online Editor resources. | ||
2. Open a terminal and run `pnpm start`. This will start a `webpack serve` instance with the Online Editor resources. | ||
3. From now on you can use the development version of the Online Editor by accessing `https://localhost:9001`. | ||
|
||
#### Desktop | ||
|
||
1. After you've successfully built the project following the instructions above, go to `packages/desktop`. | ||
2. To start the application in development mode, you can run `yarn start`. If you make changes and want to reload the app, run `yarn run build:dev && yarn start`. This will recompile the module and restart the Electron app. Remember: if you make changes to other modules, you have to build them too! | ||
3. To build and package the application for production (i.e. generating an executable), you can run `yarn run build:prod`. This will pack the application for the current OS. If you want to pack the application for a different OS, run `yarn run pack:linux`, for example. See `package.json` for more details. | ||
2. To start the application in development mode, you can run `pnpm start`. If you make changes and want to reload the app, run `pnpm build:dev && pnpm start`. This will recompile the module and restart the Electron app. Remember: if you make changes to other modules, you have to build them too! | ||
3. To build and package the application for production (i.e. generating an executable), you can run `pnpm build:prod`. This will pack the application for the current OS. If you want to pack the application for a different OS, run `pnpm pack:linux`, for example. See `package.json` for more details. | ||
|
||
#### Standalone Editors | ||
|
||
1. After you've successfully built the project following the instructions above, go to `packages/kie-editors-standalone`. | ||
2. Open a terminal and run `yarn start`. This will start a `webpack serve` instance with the Standalone Editors test page. | ||
2. Open a terminal and run `pnpm start`. This will start a `webpack serve` instance with the Standalone Editors test page. | ||
3. From now on you can use the development version of the Standalone DMN Editor by accessing `https://localhost:9001/resources/dmn` and the Standalone BPMN Editor by accessing `https://localhost:9001/resources/bpmn`. | ||
|
||
## Libraries | ||
|
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
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
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
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,6 +1,6 @@ | ||
{ | ||
"version": "0.0.0", | ||
"packages": ["packages/*", "examples/*"], | ||
"npmClient": "yarn", | ||
"npmClient": "pnpm", | ||
"useWorkspaces": true | ||
} |
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
Oops, something went wrong.