diff --git a/.github/workflows/build-host.yml b/.github/workflows/build-host.yml index 1b9af30119..1d1adcb4e0 100644 --- a/.github/workflows/build-host.yml +++ b/.github/workflows/build-host.yml @@ -47,6 +47,10 @@ jobs: run: pnpm build working-directory: packages/boxel-ui/addon + - name: Build boxel-motion + run: pnpm build + working-directory: packages/boxel-motion/addon + - name: Build host run: pnpm deploy:boxel-host build-only --verbose diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9a971b28e6..a297a20a56 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,6 +52,19 @@ jobs: if: always() run: pnpm run lint working-directory: packages/boxel-ui/test-app + - name: Lint Boxel Motion + if: always() + run: pnpm run lint + working-directory: packages/boxel-motion/addon + - name: Build Boxel Motion + # To faciliate linting of projects that depend on Boxel Motion + if: always() + run: pnpm run build + working-directory: packages/boxel-motion/addon + - name: Lint Boxel Motion Test App + if: always() + run: pnpm run lint + working-directory: packages/boxel-motion/test-app - name: Lint Host if: always() run: pnpm run lint @@ -122,6 +135,9 @@ jobs: - name: Build boxel-ui run: pnpm build working-directory: packages/boxel-ui/addon + - name: Build boxel-motion + run: pnpm build + working-directory: packages/boxel-motion/addon - name: Build host dist/ for fastboot run: pnpm build env: @@ -159,6 +175,9 @@ jobs: - name: Build boxel-ui run: pnpm build working-directory: packages/boxel-ui/addon + - name: Build boxel-motion + run: pnpm build + working-directory: packages/boxel-motion/addon - name: Build host dist/ for fastboot run: pnpm build env: @@ -192,6 +211,9 @@ jobs: - name: Build boxel-ui run: pnpm build working-directory: packages/boxel-ui/addon + - name: Build boxel-motion + run: pnpm build + working-directory: packages/boxel-motion/addon - name: Build host dist/ for fastboot run: pnpm build env: @@ -222,6 +244,9 @@ jobs: - name: Build boxel-ui run: pnpm build working-directory: packages/boxel-ui/addon + - name: Build boxel-motion + run: pnpm build + working-directory: packages/boxel-ui/motion - name: Build host dist/ for fastboot run: pnpm build env: diff --git a/QUICKSTART.md b/QUICKSTART.md index fb89937cab..239dcf63e5 100644 --- a/QUICKSTART.md +++ b/QUICKSTART.md @@ -21,12 +21,14 @@ To build the entire repository and run the application, follow these steps: pnpm install ``` -4. Build the boxel-ui: +4. Build the boxel-ui and boxl-motion addons: ```zsh cd ./packages/boxel-ui/addon pnpm rebuild:icons pnpm build + cd ../../boxel-motion/addon + pnpm build ``` 5. Build the host: diff --git a/README.md b/README.md index c8c3d0ddbf..87d88fecd6 100644 --- a/README.md +++ b/README.md @@ -45,8 +45,9 @@ Make sure that you have created a matrix user for the base realm, drafts realm, In order to run the ember-cli hosted app: 1. `pnpm build` in the boxel-ui/addon workspace to build the boxel-ui addon. -2. `pnpm start` in the host/ workspace to serve the ember app. Note that this script includes the environment variable `OWN_REALM_URL=http://localhost:4201/draft/` which configures the host to point to the draft realm's cards realm by default. -3. `pnpm start:all` in the realm-server/ to serve the base realm, draft realm and published realm -- this will also allow you to switch between the app and the tests without having to restart servers) +2. `pnpm build` in the boxel-motion/addon workspace to build the boxel-motion addon. +3. `pnpm start` in the host/ workspace to serve the ember app. Note that this script includes the environment variable `OWN_REALM_URL=http://localhost:4201/draft/` which configures the host to point to the draft realm's cards realm by default. +4. `pnpm start:all` in the realm-server/ to serve the base realm, draft realm and published realm -- this will also allow you to switch between the app and the tests without having to restart servers) The app is available at http://localhost:4200. It will serve the draft realm (configurable with OWN_REALM_URL, as mentioned above). You can open the base and draft cards workspace directly by entering http://localhost:4201/base or http://localhost:4201/draft in the browser (and additionally the published realm by entering http://localhost:4201/published). diff --git a/package.json b/package.json index 3b1e15483e..f101cb0334 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,12 @@ "url": "https://github.com/cardstack/boxel" }, "scripts": { - "build:boxel-host": "cd packages/boxel-ui/addon && pnpm build && cd ../../host && NODE_OPTIONS='--max_old_space_size=8192' pnpm build:production", + "build:boxel-host": "pnpm run build:addons && cd packages/host && NODE_OPTIONS='--max_old_space_size=8192' pnpm build:production", + "build:addons": "cd packages/boxel-ui/addon && pnpm build && cd ../../.. && cd packages/boxel-motion/addon && pnpm build && cd ../../..", "clear-caches": "find . -name 'node_modules' -type d -prune -exec rm -rf {} \\; && rm -rf $TMPDIR/embroider", - "deploy:boxel-host": "cd packages/boxel-ui/addon && pnpm build && cd ../../host && BASE_REALM_HOSTING_DISABLED=true NODE_OPTIONS='--max_old_space_size=8192' pnpm exec ember deploy", - "deploy:boxel-host:preview-staging": "cd packages/boxel-ui/addon && pnpm build && cd ../../host && BASE_REALM_HOSTING_DISABLED=true NODE_OPTIONS='--max_old_space_size=8192' pnpm exec ember deploy s3-preview-staging --verbose", - "deploy:boxel-host:preview-production": "cd packages/boxel-ui/addon && pnpm build && cd ../../host && BASE_REALM_HOSTING_DISABLED=true NODE_OPTIONS='--max_old_space_size=8192' pnpm exec ember deploy s3-preview-production --verbose", + "deploy:boxel-host": "pnpm run build:addons && cd packages/host && BASE_REALM_HOSTING_DISABLED=true NODE_OPTIONS='--max_old_space_size=8192' pnpm exec ember deploy", + "deploy:boxel-host:preview-staging": "pnpm run build:addons && cd packages/host && BASE_REALM_HOSTING_DISABLED=true NODE_OPTIONS='--max_old_space_size=8192' pnpm exec ember deploy s3-preview-staging --verbose", + "deploy:boxel-host:preview-production": "pnpm run build:addons && cd packages/host && BASE_REALM_HOSTING_DISABLED=true NODE_OPTIONS='--max_old_space_size=8192' pnpm exec ember deploy s3-preview-production --verbose", "lint": "pnpm run --filter './packages/**' --if-present -r lint", "lint:fix": "pnpm run --filter './packages/**' --if-present -r lint:fix" },