-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates @twilio/cli-core to version 7 (#35)
* Updates @twilio/cli-core to version 7 Switches out @oclif/command and @oclif/config for @oclif/core. Updates ./bin/run and commands/watch.js to use @oclif/core. Adds new ./bin/dev script for debug running locally. Adds src/index.js and main property in package.json * Removes moment dependency
- Loading branch information
Showing
7 changed files
with
1,045 additions
and
2,134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env node | ||
|
||
const oclif = require('@oclif/core'); | ||
|
||
// In dev mode -> use ts-node and dev plugins | ||
process.env.NODE_ENV = 'development'; | ||
|
||
// In dev mode, always show stack traces | ||
oclif.settings.debug = true; | ||
|
||
// Configure the Twilio CLI environment | ||
require('@twilio/cli-core').configureEnv(); | ||
|
||
// Start the CLI | ||
oclif.run().then(oclif.flush).catch(oclif.Errors.handle); |
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,3 @@ | ||
@echo off | ||
|
||
node "%~dp0\dev" %* |
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,9 +1,12 @@ | ||
#!/usr/bin/env node | ||
// Load up the command module *first* so that we're the parent rather than | ||
// some other dependency. | ||
const command = require('@oclif/command'); | ||
|
||
require('@twilio/cli-core').configureEnv(); | ||
command.run() | ||
.then(require('@oclif/command/flush')) | ||
.catch(require('@oclif/errors/handle')); | ||
const oclif = require("@oclif/core"); | ||
|
||
require("@twilio/cli-core").configureEnv(); | ||
|
||
oclif | ||
.run() | ||
.then(require("@oclif/core/flush")) | ||
.catch(require("@oclif/core/handle")); |
Oops, something went wrong.