Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: integrate appinspector UI#72

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
skyrpex wants to merge15 commits intomain
base:main
Choose a base branch
Loading
fromintegrate-appinspector-ui
Draft
Show file tree
Hide file tree
Changes fromall 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
62 changes: 51 additions & 11 deletions.vscode/tasks.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,10 +2,11 @@
"version": "2.0.0",
"tasks": [
{
"label": "watch",
"label": "dev",
"dependsOn": [
"npm: watch:localstack-web-mock-server",
"npm: watch:esbuild"
"npm: dev:localstack-web-mock-server",
"npm: dev:extension",
"npm: dev:appinspector-webview"
],
"presentation": {
"reveal": "never"
Expand All@@ -17,7 +18,7 @@
},
{
"type": "npm",
"script": "watch:esbuild",
"script": "dev:extension",
"group": "build",
"problemMatcher": {
"severity": "error",
Expand All@@ -40,23 +41,23 @@
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "\\[watch\\] build started"
"regexp": "\\[dev\\] build started"
},
"endsPattern": {
"regexp": "\\[watch\\] build finished"
"regexp": "\\[dev\\] build finished"
}
}
},
"isBackground": true,
"label": "npm:watch:esbuild",
"label": "npm:dev:extension",
"presentation": {
"group": "watch",
"group": "dev",
"reveal": "never"
}
},
{
"type": "npm",
"script": "watch:localstack-web-mock-server",
"script": "dev:localstack-web-mock-server",
"group": "build",
"isBackground": true,
"problemMatcher": {
Expand DownExpand Up@@ -86,9 +87,48 @@
}
}
},
"label": "npm:watch:localstack-web-mock-server",
"label": "npm:dev:localstack-web-mock-server",
"presentation": {
"group": "watch",
"group": "dev",
"reveal": "never"
}
},
{
"type": "npm",
"script": "dev:appinspector-webview",
"group": "build",
"problemMatcher": {
"severity": "error",
"applyTo": "closedDocuments",
"source": "vite",
"fileLocation": "relative",
"pattern": [
{
"regexp": "^[✘▲] \\[([A-Z]+)\\] (.+)",
"severity": 1,
"message": 2
},
{
"regexp": "^(?:\\t| {4})(?!\\s)([^:]+)(?::([0-9]+))?(?::([0-9]+))?:$",
"file": 1,
"line": 2,
"column": 3
}
],
"background": {
// "activeOnStart": true,
"beginsPattern": {
"regexp": "build started..."
},
"endsPattern": {
"regexp": "built in"
}
}
},
"isBackground": true,
"label": "npm: dev:appinspector-webview",
"presentation": {
"group": "dev",
"reveal": "never"
}
}
Expand Down
10 changes: 5 additions & 5 deletionsbuild/extension.mjs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
import esbuild from "esbuild";

const production = process.argv.includes("--production");
constwatch = process.argv.includes("--watch");
constdev = process.argv.includes("--dev");

/**
* @type {import('esbuild').Plugin}
Expand All@@ -10,8 +10,7 @@ const esbuildProblemMatcherPlugin = {
name: "esbuild-problem-matcher",
setup(build) {
build.onStart(() => {
console.clear();
console.log("[watch] build started");
console.log("[dev] build started");
});
build.onEnd((result) => {
result.errors.forEach(({ text, location }) => {
Expand All@@ -20,7 +19,7 @@ const esbuildProblemMatcherPlugin = {
` ${location.file}:${location.line}:${location.column}:`,
);
});
console.log("[watch] build finished");
console.log("[dev] build finished");
});
},
};
Expand All@@ -47,13 +46,14 @@ async function main() {
"process.env.NODE_ENV": JSON.stringify(
process.env.NODE_ENV ?? "development",
),
"import.meta.dirname": "__dirname",
},
plugins: [
/* add to the end of plugins array */
esbuildProblemMatcherPlugin,
],
});
if (watch) {
if (dev) {
await ctx.watch();
} else {
await ctx.rebuild();
Expand Down
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp