Skip to content

Commit

Permalink
Revert to master
Browse files Browse the repository at this point in the history
  • Loading branch information
xcv58 committed Jul 6, 2022
1 parent 5b4d65e commit 2d9e539
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 1,760 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ out
node_modules
.yalc
yalc.lock
.turbo
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"private": true,
"workspaces": [
"extensions/*"
],
"directories": {
"lib": "lib"
},
Expand All @@ -30,7 +26,6 @@
"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 @@ -42,7 +37,7 @@
"postinstall": "husky install && ./scripts/postinstall.sh",
"clean-build": "./scripts/clean-build.sh",
"clean": "./scripts/clean.sh",
"build": "turbo run compile && yarn webpack",
"build": "./scripts/build.sh",
"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: 17 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail

cd "$(dirname "${0}")/.."
APP_ROOT=$(pwd)

# execute all necessary tasks
function main() {
rm -rf "${APP_ROOT}/dist"
cd "${APP_ROOT}"
./scripts/build/build-github1s-extensions.sh
yarn webpack

echo "all build done!"
}

main "$@"
18 changes: 18 additions & 0 deletions scripts/build/build-github1s-extensions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail

cd "$(dirname "${0}")/../.."
APP_ROOT=$(pwd)

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

main "$@"
10 changes: 10 additions & 0 deletions scripts/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ 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: 0 additions & 10 deletions turbo.json

This file was deleted.

Loading

0 comments on commit 2d9e539

Please sign in to comment.