Skip to content

Commit

Permalink
refactor: rename runner to runner-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed Dec 16, 2023
1 parent bb86588 commit 99bc48d
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ packages/extension/sksl.vsix

packages/integration-test/build

packages/runner/dist
packages/runner-ui/dist
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "ts-node script test",
"format": "ts-node script format",
"package": "ts-node script package",
"dev:runner": "pnpm -F runner dev"
"dev:runner-ui": "pnpm -F runner-ui dev"
},
"devDependencies": {
"@types/jest": "^29.5.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function showRunner(context: vscode.ExtensionContext, uri: vscode.Uri | undefine
enableScripts: true,
})

const htmlPath = context.asAbsolutePath(path.join('build', 'runner', 'index.html'))
const htmlPath = context.asAbsolutePath(path.join('build', 'runner-ui', 'index.html'))
panel.webview.html = fs.readFileSync(htmlPath).toString()

if (uri) {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@workspace/runner",
"name": "@workspace/runner-ui",
"version": "1.0.0",
"private": true,
"scripts": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions script/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ function run(target: string) {
chdir('packages/wasm/c++')
exec('bash', 'build.sh')
exec('cp', 'build/src/sksl-wasm.js', '../src')
// runner
chdir('packages/runner')
// runner-ui
chdir('packages/runner-ui')
exec('rm', '-rf', 'dist')
exec('pnpm', 'build')
// extension
chdir('packages/extension')
exec('rm', '-rf', 'build')
pnpm_exec('rollup', '--config', '--configPlugin=typescript')
exec('cp', '../wasm/c++/build/src/sksl-wasm.wasm', 'build')
exec('cp', '-R', '../runner/dist', 'build/runner')
exec('cp', '-R', '../runner-ui/dist', 'build/runner-ui')
chdir('.')
exec('ts-node', 'script/syntax.ts', 'packages/extension/build')
break
Expand Down

0 comments on commit 99bc48d

Please sign in to comment.