-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pack command. * Removed cwd. * Rework components. * Polish.
- Loading branch information
Showing
19 changed files
with
208 additions
and
115 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
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 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 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 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 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 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 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,16 +1,11 @@ | ||
import { Arg, Command, Config, GlobalOptions } from '@boost/cli'; | ||
import { Command, Config, GlobalOptions } from '@boost/cli'; | ||
import Packemon from '../Packemon'; | ||
|
||
export type CleanParams = [string]; | ||
|
||
@Config('clean', 'Clean build artifacts from packages') | ||
export class CleanCommand extends Command<GlobalOptions, CleanParams> { | ||
@Arg.Params<CleanParams>({ | ||
description: 'Project root that contains a `package.json`', | ||
label: 'cwd', | ||
type: 'string', | ||
}) | ||
async run(cwd: string = process.cwd()) { | ||
await new Packemon(cwd).clean(); | ||
async run() { | ||
await new Packemon().clean(); | ||
} | ||
} |
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,23 @@ | ||
import React from 'react'; | ||
import { Config } from '@boost/cli'; | ||
import Pack from '../components/Pack'; | ||
import Packemon from '../Packemon'; | ||
import { BuildCommand } from './Build'; | ||
|
||
@Config('pack', 'Clean, build, and validate packages for distribution') | ||
export class PackCommand extends BuildCommand { | ||
run() { | ||
return ( | ||
<Pack | ||
packemon={new Packemon()} | ||
addEngines={this.addEngines} | ||
addExports={this.addExports} | ||
analyzeBundle={this.analyze} | ||
concurrency={this.concurrency} | ||
generateDeclaration={this.generateDeclaration} | ||
skipPrivate={this.skipPrivate} | ||
timeout={this.timeout} | ||
/> | ||
); | ||
} | ||
} |
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 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
Oops, something went wrong.