Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert extensions/* to yarn workspaces and add Turborepo #417

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ out
node_modules
.yalc
yalc.lock
.turbo
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"private": true,
"workspaces": [
"extensions/*"
],
"directories": {
"lib": "lib"
},
Expand All @@ -26,6 +30,7 @@
"prettier": "^2.7.0",
"serve-handler": "^6.1.3",
"start-server-and-test": "^1.14.0",
"turbo": "^1.2.14",
"typescript": "^4.7.3",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0",
Expand All @@ -37,7 +42,7 @@
"postinstall": "husky install && ./scripts/postinstall.sh",
"clean-build": "./scripts/clean-build.sh",
"clean": "./scripts/clean.sh",
"build": "./scripts/build.sh",
"build": "turbo run compile && yarn webpack",
"yalc": "yalc publish vscode-web && yalc add -D @github1s/vscode-web",
"build:vscode": "cd vscode-web && yarn build",
"vercel-build": "USE_HASH_HTML=true yarn build && yarn hash && rm -rf public && mv dist public",
Expand Down
17 changes: 0 additions & 17 deletions scripts/build.sh

This file was deleted.

18 changes: 0 additions & 18 deletions scripts/build/build-github1s-extensions.sh

This file was deleted.

10 changes: 0 additions & 10 deletions scripts/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ cd "$(dirname "${0}")/.."
APP_ROOT=$(pwd)

function main() {
# install github1s extensions dependencies
for entry in "${APP_ROOT}/extensions"/*
do
if [ -f "$entry/package.json" ]
then
cd $entry
yarn --frozen-lockfile
fi
done

# install dependencies for the @github1s/vscode-web
cd "${APP_ROOT}/vscode-web"
yarn --frozen-lockfile
Expand Down
10 changes: 10 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://turborepo.org/schema.json",
"baseBranch": "origin/master",
"pipeline": {
"compile": {
"dependsOn": [],
"outputs": ["dist/**"]
}
}
}
Loading