Skip to content

Commit 3bfcd59

Browse files
undo: the old approach
1 parent e696014 commit 3bfcd59

File tree

8 files changed

+1
-97
lines changed

8 files changed

+1
-97
lines changed

charts/legend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"types": "./dist/types/index.d.ts",
88
"license": "Apache-2.0",
99
"scripts": {
10-
"build": "lg-build bundle && lg-build minify",
10+
"build": "lg-build bundle",
1111
"tsc": "lg-build tsc",
1212
"docs": "lg-build docs"
1313
},

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/build/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"rollup-plugin-bundle-stats": "^4.18.2",
4949
"rollup-plugin-node-externals": "7.1.1",
5050
"rollup-plugin-polyfill-node": "0.13.0",
51-
"terser": "^5.43.1",
5251
"typescript": "~5.8.0"
5352
},
5453
"peerDependencies": {

tools/build/src/cli-commands.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Command } from 'commander';
33
import { buildPackage } from './rollup/build-package';
44
import { buildTSDoc } from './tsdoc/build-tsdoc';
55
import { buildTypescript } from './typescript/build-ts';
6-
import { minifyPackage } from './minify';
76

87
export function registerBundleCommand(command: Command) {
98
command
@@ -37,15 +36,3 @@ export function registerBuildDocsCommand(command: Command) {
3736
.option('-v, --verbose', 'Enable verbose logging', false)
3837
.action(buildTSDoc);
3938
}
40-
41-
export function registerMinifyCommand(command: Command) {
42-
command
43-
.description('Minify built JavaScript bundles')
44-
.option(
45-
'-p, --glob <glob>',
46-
'Glob pattern to match javascript files to minify, prefixed with ! to exclude',
47-
['dist/**/*.*js', '!dist/**/*-min.*js'],
48-
)
49-
.option('-v, --verbose', 'Enable verbose logging', false)
50-
.action(minifyPackage);
51-
}

tools/build/src/cli.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
registerBuildDocsCommand,
55
registerBuildTSCommand,
66
registerBundleCommand,
7-
registerMinifyCommand,
87
} from './cli-commands';
98

109
const build = new Command('lg-build');
@@ -13,6 +12,5 @@ build.description('Build LeafyGreen packages');
1312
registerBundleCommand(build.command('bundle'));
1413
registerBuildTSCommand(build.command('tsc'));
1514
registerBuildDocsCommand(build.command('docs'));
16-
registerMinifyCommand(build.command('minify'));
1715

1816
build.parse(process.argv);

tools/build/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ export {
33
registerBuildDocsCommand,
44
registerBuildTSCommand,
55
registerBundleCommand,
6-
registerMinifyCommand,
76
} from './cli-commands';
8-
export { minifyPackage } from './minify';
97
export { buildPackage } from './rollup/build-package';
108
export { buildTSDoc } from './tsdoc/build-tsdoc';
119
export { parseTSDoc } from './tsdoc/tsdocParser';

tools/build/src/minify.ts

Lines changed: 0 additions & 73 deletions
This file was deleted.

tools/cli/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {
22
registerBuildDocsCommand,
33
registerBuildTSCommand,
44
registerBundleCommand,
5-
registerMinifyCommand,
65
} from '@lg-tools/build';
76
import { migrator } from '@lg-tools/codemods';
87
import { createPackage } from '@lg-tools/create';
@@ -245,7 +244,6 @@ cli
245244
registerBundleCommand(cli.command('build-package'));
246245
registerBuildTSCommand(cli.command('build-ts'));
247246
registerBuildDocsCommand(cli.command('build-tsdoc'));
248-
registerMinifyCommand(cli.command('build-minify'));
249247

250248
/** Merge editor settings */
251249
cli

0 commit comments

Comments
 (0)