Skip to content

Commit

Permalink
rename saber eject to saber eject-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Aug 19, 2019
1 parent 597f760 commit 5eac002
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/saber/lib/cli-commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { setNodeEnv, handleError } = require('./utils')
module.exports = function(cli) {
cli
.command(
'build [app]',
'build [app-path]',
'Compile the application and generate static HTML files'
)
.alias('generate')
Expand Down
2 changes: 1 addition & 1 deletion packages/saber/lib/cli-commands/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { setNodeEnv, handleError } = require('./utils')

module.exports = function(cli) {
cli
.command('[app]', 'Run the application in dev mode', {
.command('[app-path]', 'Run the application in dev mode', {
ignoreOptionDefaultValue: true
})
.alias('dev')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const downloadRepo = (url, dest, opts) =>
module.exports = function(cli) {
cli
.command(
'eject [app]',
'eject-theme [app-path]',
`Copy the currently used theme's source code to a local folder.`
)
.option(
Expand Down
2 changes: 1 addition & 1 deletion packages/saber/lib/cli-commands/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const commands = ['dev', 'build', 'serve', 'eject']
const commands = ['dev', 'build', 'serve', 'eject-theme']

module.exports = function(cli) {
commands.forEach(command => require(`./${command}`)(cli))
Expand Down
2 changes: 1 addition & 1 deletion packages/saber/lib/cli-commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { setNodeEnv, handleError } = require('./utils')

module.exports = function(cli) {
cli
.command('serve [app]', 'Serve the output directory')
.command('serve [app-path]', 'Serve the output directory')
.option('--host <host>', 'Server host', { default: '0.0.0.0' })
.option('--port <port>', 'Server port', { default: 3000 })
.action((cwd = '.', options) => {
Expand Down
2 changes: 1 addition & 1 deletion website/pages/docs/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ We are also working on adding a page on this site to showcase all the themes.
If you are using a theme from npm and wish to modify it to better suit your needs, you might want to eject it. This will copy over its source code to `./theme`, allowing you to edit it.

```bash
saber eject
saber eject-theme
```

The above command will use the files from `node_modules`, but if you want the source code from the repository instead, add the `--git` flag. This will clone the theme's Git repository as a submodule, which adds the benefits of easier upgradability, contribution to the upstream code and better version control management.

0 comments on commit 5eac002

Please sign in to comment.