From 768486d4cde92b5688328be01e2b0fc5417f65fe Mon Sep 17 00:00:00 2001 From: "Ibrahim H." Date: Fri, 2 Feb 2024 22:21:30 +0000 Subject: [PATCH 1/2] Create 3 files --- .codesandbox/tasks.json | 73 +++++++++++++++++++++++++++++++++ .devcontainer/devcontainer.json | 22 ++++++++++ .github/dependabot.yml | 12 ++++++ 3 files changed, 107 insertions(+) create mode 100644 .codesandbox/tasks.json create mode 100644 .devcontainer/devcontainer.json create mode 100644 .github/dependabot.yml diff --git a/.codesandbox/tasks.json b/.codesandbox/tasks.json new file mode 100644 index 00000000000..fc9765a0098 --- /dev/null +++ b/.codesandbox/tasks.json @@ -0,0 +1,73 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "build": { + "name": "build", + "command": "yarn build" + }, + "build-force": { + "name": "build-force", + "command": "yarn build-force" + }, + "dev": { + "name": "dev", + "command": "yarn dev", + "runAtStart": true, + "preview": { + "port": 3000 + } + }, + "start": { + "name": "start", + "command": "yarn start" + }, + "start:windows": { + "name": "start:windows", + "command": "yarn start:windows" + }, + "start:default": { + "name": "start:default", + "command": "yarn start:default" + }, + "clean": { + "name": "clean", + "command": "yarn clean" + }, + "format": { + "name": "format", + "command": "yarn format" + }, + "test": { + "name": "test", + "command": "yarn test" + }, + "lint": { + "name": "lint", + "command": "yarn lint" + }, + "lint-fix": { + "name": "lint-fix", + "command": "yarn lint-fix" + }, + "quick": { + "name": "quick", + "command": "yarn quick" + }, + "postinstall": { + "name": "postinstall", + "command": "yarn postinstall" + }, + "migration:create": { + "name": "migration:create", + "command": "yarn migration:create" + } + } +} diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000000..666be2b07df --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node +{ + "name": "Node.js", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/javascript-node:1-20-bullseye" + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "yarn install", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000000..f33a02cd16e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for more information: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +# https://containers.dev/guide/dependabot + +version: 2 +updates: + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: weekly From bc20de15d3761c7d89bbec892cee53c6a1b5091f Mon Sep 17 00:00:00 2001 From: "Ibrahim H." Date: Sun, 20 Oct 2024 16:35:04 +0000 Subject: [PATCH 2/2] fix: default package manager --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 65442216edc..391c1a3a50d 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "turbo": "1.10.16", "typescript": "^5.4.5" }, + "packageManager": "pnpm@9.6.0", "pnpm": { "onlyBuiltDependencies": [ "faiss-node",