diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 594d684c..c32cc701 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -24,8 +24,10 @@ Private integration testing packages: At the root level you can launch following commands: -- `npm run build`: Builds all sub projects -- `npm run dev`: Launches dev command in all sub projects +- `npm run build`: Builds all packages projects +- `npm run build:app`: Builds all apps projects +- `npm run dev`: Launches dev command in apps projects +- `npm run start`: Launches start command in apps projects - `npm run lint`: Lints everything - `npm run lint:root`: Lints everything but the `apps` folder - `npm run lint:fix`: Lints and fix everything but the `apps` folder @@ -89,8 +91,8 @@ To create a changeset: 2. This will create a changeset file in the `.changeset` folder you can review 3. Commit the changeset file -## Publishing +## Release -When a PR containing changesets is merged into `main` it will automatically create a release PR. +When a PR containing changesets is merged into `*.x` branch it will automatically create a release PR. -Then when that release PR is merged into `main`, it will automatically create a release and publish the packages on `npm`. +Then when that release PR is merged into the `*.x` branch, it will automatically create a release and publish the packages on `npm`. diff --git a/apps/next/package.json b/apps/next/package.json index 2ec9d5c0..05224538 100644 --- a/apps/next/package.json +++ b/apps/next/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build", + "build:app": "next build", "start": "next start", "lint": "next lint" }, diff --git a/package.json b/package.json index c2395dfa..7b81a0d5 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "scripts": { "prepare": "husky install", "build": "turbo run build", + "build:app": "turbo run build:app", "dev": "turbo run dev", "lint": "turbo run lint && npm run lint:root", "lint:root": "DEBUG=eslint:cli-engine eslint --max-warnings=0 --ignore-path <(cat .gitignore .eslintignore) . && tsc --noEmit", diff --git a/packages/react-front-kit-shared/src/helpers/utilites.test.ts b/packages/react-front-kit-shared/src/helpers/utilities.test.ts similarity index 100% rename from packages/react-front-kit-shared/src/helpers/utilites.test.ts rename to packages/react-front-kit-shared/src/helpers/utilities.test.ts diff --git a/turbo.json b/turbo.json index 8b1f08dd..1dcef465 100644 --- a/turbo.json +++ b/turbo.json @@ -4,7 +4,11 @@ "pipeline": { "build": { "dependsOn": ["^build"], - "outputs": [".next/**", "!.next/cache/**", "dist"] + "outputs": ["dist"] + }, + "build:app": { + "dependsOn": ["build"], + "outputs": [".next/**", "!.next/cache/**"] }, "dev": { "cache": false,