diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..902d99d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build and Test + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + app: [nextjs, vite] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: yarn install + + - name: Build ${{ matrix.app }} app + run: npm run build --workspace=apps/${{ matrix.app }} \ No newline at end of file diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..5660f81 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmjs.org/ \ No newline at end of file diff --git a/.yarnrc b/.yarnrc new file mode 100644 index 0000000..6dfe0a3 --- /dev/null +++ b/.yarnrc @@ -0,0 +1 @@ +registry "https://registry.npmjs.org/" \ No newline at end of file diff --git a/apps/vite/package.json b/apps/vite/package.json index ecd97c2..17694c5 100644 --- a/apps/vite/package.json +++ b/apps/vite/package.json @@ -19,6 +19,6 @@ "eslint-plugin-react-refresh": "^0.4.14", "globals": "^15.11.0", "vite": "^5.4.10", - "vite-plugin-node-polyfills": "^0.22.0" + "vite-plugin-node-polyfills": "^0.17.0" } } diff --git a/package.json b/package.json index d3dc286..d4d1d1d 100644 --- a/package.json +++ b/package.json @@ -20,14 +20,14 @@ "@ariakit/react": "0.4.5", "@box/blueprint-web": "^7.30.1", "@box/blueprint-web-assets": "^4.21.0", - "@box/box-ai-content-answers": "^0.57.1", + "@box/box-ai-content-answers": "0.57.1", "@box/cldr-data": ">=34.2.0", - "@box/metadata-editor": "^0.65.0", + "@box/metadata-editor": "0.65.0", "@box/react-virtualized": "9.22.3-rc-box.9", "@hapi/address": "^2.1.4", "axios": "^0.25.0", "box-annotations": "^4.1.1-beta.5", - "box-ui-elements": "^22.0.0", + "box-ui-elements": "22.0.0", "classnames": "^2.5.1", "color": "^3.1.2", "draft-js": "^0.11.7", @@ -42,6 +42,7 @@ "jsuri": "^1.3.1", "lodash": "^4.17.5", "message-accumulator": "^2.1.1", + "moment": "^2.30.1", "mousetrap": "^1.6.3", "pikaday": "^1.8.2", "prettier": "^3.3.3", diff --git a/turbo.json b/turbo.json index 0b6feb1..6a2e677 100644 --- a/turbo.json +++ b/turbo.json @@ -7,13 +7,16 @@ }, "build": { "dependsOn": ["^build"], - "outputs": ["dist/**"] + "outputs": ["dist/**",".next/**"] }, "dev": { "cache": false }, "install": { "cache": false + }, + "preview": { + "cache": false } } } diff --git a/yarn.lock b/yarn.lock index 0f0a5ca..0cc0bb2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -233,20 +233,20 @@ tabbable "^4.0.0" type-fest "^3.2.0" -"@box/box-ai-content-answers@^0.57.1": - version "0.57.8" - resolved "https://registry.npmjs.org/@box/box-ai-content-answers/-/box-ai-content-answers-0.57.8.tgz#09db88d3038c7c460c3aeb9e510aca681cff56ff" - integrity sha512-uFZ5QnN2muM4qqrgyxdJXYiJ4SHIa+5J84JNaYjaJgjva6c/+LTFR6yP07nCBm43dbr5aOUKLS0+RSojANr5fQ== +"@box/box-ai-content-answers@0.57.1": + version "0.57.1" + resolved "https://registry.npmjs.org/@box/box-ai-content-answers/-/box-ai-content-answers-0.57.1.tgz#a2a8d75c5319be2b6636acdcfdcfb4f439f45997" + integrity sha512-N1X12UwHif5gp9mF8GutGJsSUS8tVRgME2KU826lZbdKM/qkGx+/9pfaYpATuEX9Jzi4ekH9ZvPrzD6yfa+jUg== "@box/cldr-data@>=34.2.0": version "45.0.0" resolved "https://registry.npmjs.org/@box/cldr-data/-/cldr-data-45.0.0.tgz#21d12d4b7664d251f052cd7838c4f51118e715e1" integrity sha512-oXI6deN72bd9pK32VGzEl1QEuqB5BKkn0dbqemyYRjLT7L3O91CmmN3LQ/qsHMwxQ1QD7XX5U3SzVmR13ZqwJQ== -"@box/metadata-editor@^0.65.0": - version "0.65.2" - resolved "https://registry.npmjs.org/@box/metadata-editor/-/metadata-editor-0.65.2.tgz#c36192694cd723d49eecfeed0e2f16d0a0e63eef" - integrity sha512-1VdH2+0G65C+8FE9/imydXg5N693nx+/EmKNgLRSB0Pf/UQFXB4BZGxuPi06alwu5hGYv1O718o1hpZrxu9qCQ== +"@box/metadata-editor@0.65.0": + version "0.65.0" + resolved "https://registry.npmjs.org/@box/metadata-editor/-/metadata-editor-0.65.0.tgz#ebacdf249d1106a250431d2b55cd670b9cf6adbd" + integrity sha512-MjYmCWUdqpjkpYZvOAmIKJ0gAtJ0DZ3U5yLS2IYCm1vtWoTtfji77PQ+4UeHHK/dmalDWn61FC3daicQx6Buxw== "@box/react-virtualized@9.22.3-rc-box.9": version "9.22.3-rc-box.9" @@ -3056,7 +3056,7 @@ box-annotations@^4.1.1-beta.5: resolved "https://registry.npmjs.org/box-annotations/-/box-annotations-4.1.1-beta.5.tgz#c174ead77f870c45fbad0d63fc688594d1780fbf" integrity sha512-LkIzoFfbU58JzJ0j+7w71ScfyvuuYEejYp2midy7w/qaD9bRVeEWDQf0wgYkg203nDuz++GVUEzsFOe+yHskJQ== -box-ui-elements@^22.0.0: +box-ui-elements@22.0.0: version "22.0.0" resolved "https://registry.npmjs.org/box-ui-elements/-/box-ui-elements-22.0.0.tgz#497ecd771a435295491f32a80d295d494fb4283f" integrity sha512-UrIHU4wdCrwnSWWu9VVkqo4oJ+Jvw9ro5RXgg8mZFiAFxKUfSRJZn69b2Uxjx4/4Nc0IlKURShS+5PL21zroCw== @@ -3168,6 +3168,14 @@ browserslist@^4.24.0: node-releases "^2.0.18" update-browserslist-db "^1.1.1" +"buffer-polyfill@npm:buffer@^6.0.3": + version "6.0.3" + resolved "https://box.jfrog.io/box/api/npm/boxnpm/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" + integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.2.1" + buffer-xor@^1.0.3: version "1.0.3" resolved "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" @@ -4576,7 +4584,7 @@ hyphenate-style-name@^1.0.0: resolved "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.1.0.tgz#1797bf50369588b47b72ca6d5e65374607cf4436" integrity sha512-WDC/ui2VVRrz3jOVi+XtjqkDjiVjTtFaAGiW37k6b+ohyQ5wYDOGkvCZa8+H0nx3gyvv0+BST9xuOgIyGQ00gw== -ieee754@^1.1.13: +ieee754@^1.1.13, ieee754@^1.2.1: version "1.2.1" resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== @@ -5167,6 +5175,11 @@ minimist@^1.2.0, minimist@^1.2.6: resolved "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707" integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw== +moment@^2.30.1: + version "2.30.1" + resolved "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz#f8c91c07b7a786e30c59926df530b4eac96974ae" + integrity sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how== + mousetrap@^1.6.3: version "1.6.5" resolved "https://registry.npmjs.org/mousetrap/-/mousetrap-1.6.5.tgz#8a766d8c272b08393d5f56074e0b5ec183485bf9" @@ -5528,7 +5541,7 @@ prelude-ls@^1.2.1: prettier@^3.3.3: version "3.3.3" - resolved "https://box.jfrog.io/box/api/npm/boxnpm/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105" + resolved "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105" integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew== process-nextick-args@~2.0.0: @@ -6760,13 +6773,15 @@ value-equal@^1.0.1: resolved "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c" integrity sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw== -vite-plugin-node-polyfills@^0.22.0: - version "0.22.0" - resolved "https://registry.npmjs.org/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.22.0.tgz#d0afcf82eb985fc02244620d7cec1ddd1c6e0864" - integrity sha512-F+G3LjiGbG8QpbH9bZ//GSBr9i1InSTkaulfUHFa9jkLqVGORFBoqc2A/Yu5Mmh1kNAbiAeKeK+6aaQUf3x0JA== +vite-plugin-node-polyfills@^0.17.0: + version "0.17.0" + resolved "https://box.jfrog.io/box/api/npm/boxnpm/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.17.0.tgz#1044a4955174ddaeedbc3679b179e1efac9da006" + integrity sha512-iPmPn7376e5u6QvoTSJa16hf5Q0DFwHFXJk2uYpsNlmI3JdPms7hWyh55o+OysJ5jo9J5XPhLC9sMOYifwFd1w== dependencies: "@rollup/plugin-inject" "^5.0.5" + buffer-polyfill "npm:buffer@^6.0.3" node-stdlib-browser "^1.2.0" + process "^0.11.10" vite@^5.4.10: version "5.4.11"