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

[dev-tool] Add snippets extraction #31143

Merged
merged 20 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
333 changes: 295 additions & 38 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion common/tools/dev-tool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"fs-extra": "^11.2.0",
"minimist": "^1.2.8",
"prettier": "^3.3.3",
"rollup": "^4.0.0",
"rollup": "^4.22.0",
"rollup-plugin-polyfill-node": "^0.13.0",
"rollup-plugin-visualizer": "^5.9.3",
"semver": "^7.6.0",
Expand Down
5 changes: 4 additions & 1 deletion common/tools/dev-tool/src/commands/run/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ export default leafCommand(commandInfo, async (options) => {
input: path.join(basePath, "test", "**", "*.spec.js"),
preserveSymlinks: false,
plugins: [
multiEntry({ exports: false, exclude: ["**/test/**/node/**/*.js"] }),
multiEntry({
exports: false,
exclude: ["**/test/**/node/**/*.js", "**/test/snippets.spec.js"],
}),
nodeResolve({
mainFields: ["module", "browser"],
preferBuiltins: false,
Expand Down
1 change: 1 addition & 0 deletions common/tools/dev-tool/src/commands/run/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default subCommand(commandInfo, {
"build-test": () => import("./build-test"),
typecheck: () => import("./typecheck"),
"start-browser-relay": () => import("./startBrowserRelay"),
"update-snippets": () => import("./update-snippets"),

// "vendored" is a special command that passes through execution to dev-tool's own commands
vendored: () => import("./vendored"),
Expand Down
Loading
Loading