-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
831 additions
and
596 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict' | ||
|
||
const Core = require('panda-core') | ||
const Wasp = Core.Wasp | ||
const program = new Wasp.Command() | ||
const Hub = require('../src/hub') | ||
|
||
program | ||
.description('Run an Application and all Services') | ||
.argument('<app>', 'The App to run') | ||
.action(async function (app, opts, cmd) { | ||
this.debug('command: run') | ||
|
||
this.heading(`Running the ${app} app and all Services`) | ||
|
||
// check to make sure we are in a Project directory | ||
await this.confirmInProject() | ||
|
||
// run it... | ||
Hub.start(app) | ||
}) | ||
.parse(process.argv) |
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,27 @@ | ||
'use strict' | ||
|
||
const Core = require('panda-core') | ||
const Wasp = Core.Wasp | ||
const program = new Wasp.ScaffoldCommand() | ||
|
||
program | ||
.description('Create a new Command') | ||
.argument('[command]') | ||
.option('--command', 'The command that will get run') | ||
.action(async function (command, opts, cmd) { | ||
this.debug('command: command:create') | ||
|
||
this.heading('Creating a new Command', { subhead: 'Press Ctrl+C to cancel' }) | ||
|
||
// check to make sure we are in a Project, Panda, PandaCore, PandaDev or PrivateLabel directory | ||
await this.locationTest(['inProject', 'inPanda', 'inPandaCore', 'inPandaDev', 'inPrivateLabel'], { operator: 'OR' }) | ||
|
||
await this.parseScaffold('command', { interactiveMode: !command, mapping: { command } }) | ||
.then(() => { this.success('Panda command successfully created') }) | ||
.catch((err) => { | ||
this.exitError(err, 'Panda command creation failed') | ||
this.error('Command creation failed') | ||
this.debug(err) | ||
}) | ||
}) | ||
.parse(process.argv) |
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,26 @@ | ||
'use strict' | ||
|
||
const Core = require('panda-core') | ||
const Wasp = Core.Wasp | ||
const program = new Wasp.ScaffoldCommand() | ||
|
||
program | ||
.description('Create a new Component') | ||
.argument('[name]') | ||
.option('--name', 'The name of the component') | ||
.option('--slug', 'The slug and filename of the component being built') | ||
.action(async function (name, opts, cmd) { | ||
this.debug('command: component:create') | ||
|
||
this.heading('Creating a new Component') | ||
|
||
// check to make sure we are in a Project directory | ||
await this.confirmInProject() | ||
|
||
await this.parseScaffold('component', { interactiveMode: !name, mapping: { name } }) | ||
.then(() => { this.success('Component successfully created') }) | ||
.catch((err) => { | ||
this.exitError(err, 'Component creation failed') | ||
}) | ||
}) | ||
.parse(process.argv) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.