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

Init project #1

Merged
merged 6 commits into from
Oct 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
first init
  • Loading branch information
Felx-B committed Oct 15, 2020
commit 9a0ed8dd9871a4fb62df71b82ea6b53d7d4b0f44
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ dist

# TernJS port file
.tern-port

vscode
dist
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

41 changes: 41 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

vscodeVersion='1.49.0'

# git clone https://github.com/microsoft/vscode.git

cd vscode
git checkout -q $vscodeVersion
yarn

# Use simple workbench
cp ../workbench.ts src/vs/code/browser/workbench/workbench.ts

# Adapt compilation to web
gulpfile='./build/gulpfile.vscode.js'

text1ToReplace='vs\/workbench\/workbench.desktop.main';
text1='vs\/workbench\/workbench.web.api';

text2ToReplace='buildfile.workbenchDesktop';
text2='buildfile.workbenchWeb,buildfile.keyboardMaps';

sed -i -e "s/$text1ToReplace/$text1/g" $gulpfile
sed -i -e "s/$text2ToReplace/$text2/g" $gulpfile

# Compile
yarn gulp compile-build
yarn gulp optimize-vscode
yarn compile-web

# Minify
#yarn gulp minify-vscode

# Remove maps
find out-vscode -type f -name '*.js.map' -delete

# Extract compiled files
rsync -av out-vscode ../dist
rsync -av extensions ../dist --exclude 'extensions/**/node_modules'



22 changes: 22 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "amd",
"moduleResolution": "node",
"experimentalDecorators": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"allowUnreachableCode": false,
"strict": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"vs/*": [
"./vscode/src/vs/*"
]
},
"lib": [
"ES2015"
]
},
"include": ["workbench.ts"]
}
6 changes: 6 additions & 0 deletions workbench.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { create } from 'vs/workbench/workbench.web.api';

(function () {
// create workbench
create(document.body, {});
})();