-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace webpack with esbuild, remove gradle (#66)
Signed-off-by: Ben Sherman <[email protected]>
- Loading branch information
1 parent
b594a12
commit c4d5466
Showing
19 changed files
with
1,349 additions
and
1,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
// See: https://go.microsoft.com/fwlink/?linkid=830387 | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": ["--extensionDevelopmentPath=${workspaceRoot}/build" ] | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceRoot}/build" | ||
], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// See: https://go.microsoft.com/fwlink/?LinkId=733558 | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "npm: compile", | ||
"type": "npm", | ||
"script": "compile", | ||
"presentation": { | ||
"reveal": "never" | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
.gitignore | ||
vsc-extension-quickstart.md | ||
.vscode | ||
node_modules | ||
src/** | ||
package-lock.json | ||
tsconfig.json | ||
esbuild.js | ||
**/*.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
all: clean server package | ||
|
||
clean: | ||
rm -rf build | ||
|
||
server: | ||
cd language-server ; ./gradlew build | ||
|
||
package: | ||
npm run package | ||
|
||
install: all | ||
code --install-extension build/nextflow.vsix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
const { build } = require('esbuild'); | ||
const { copy } = require('esbuild-plugin-copy'); | ||
|
||
const production = process.argv.includes('--production'); | ||
|
||
async function main() { | ||
const files = { | ||
'images/**': './images', | ||
'snippets/**': './snippets', | ||
'syntaxes/**': './syntaxes', | ||
'CHANGELOG.md': './CHANGELOG.md', | ||
'LICENSE.md': './LICENSE.md', | ||
'README.md': './README.md', | ||
'language-configuration.json': './language-configuration.json', | ||
'package.json': './package.json', | ||
'language-server/build/libs/language-server-all.jar': 'bin', | ||
'node_modules/mermaid/dist/mermaid.min.js': 'media', | ||
}; | ||
await build({ | ||
entryPoints: [ | ||
'src/extension.ts' | ||
], | ||
bundle: true, | ||
format: 'cjs', | ||
minify: production, | ||
sourcemap: !production, | ||
sourcesContent: false, | ||
platform: 'node', | ||
outfile: 'build/extension.js', | ||
external: ['vscode'], | ||
logLevel: 'silent', | ||
plugins: [ | ||
copy({ | ||
assets: Object.entries(files).map(([from, to]) => { | ||
return { from, to }; | ||
}), | ||
}), | ||
], | ||
}); | ||
} | ||
|
||
main().catch(e => { | ||
console.error(e); | ||
process.exit(1); | ||
}); |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.