Skip to content

Commit

Permalink
fix(packer-help): Fixed help table rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hayes committed Dec 8, 2020
1 parent e7e1b3a commit 0656149
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules/
/config.js
/yarn-error.log
/config.json
/.github/.token
29 changes: 8 additions & 21 deletions cli/commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@ module.exports = () => {
'Compiles your local theme files into a dist directory, uploads these \n' +
'files to your remote Shopify store and finally boots up a local Express\n' +
'server that will serve most of your CSS and JavaScript.',
`--env=my-custom-env-name
--skipPrompts
--skipFirstDeploy`,
`--env=my-custom-env-name\n--skipPrompts\n--skipFirstDeploy,`,
]);
commands.push([
chalk.greenBright.bold('watch'),
'Runs start command with skip first deploy flag.',
`--env=my-custom-env-name
--skipPrompts
`,
`--env=my-custom-env-name\n--skipPrompts\n`,
]);
commands.push([
chalk.greenBright.bold('build'),
Expand All @@ -52,25 +48,19 @@ module.exports = () => {
chalk.greenBright.bold('lint'),
'Lints the theme code according to the rules declared in the .eslintrc and .stylelintrc files.\n' +
'By default, it uses ESLint to lint JS files, Stylelint to lint CSS files',
`--scripts
--styles
--locales`,
`--scripts\n--styles\n--locales\n`,
]);
commands.push([
chalk.greenBright.bold('format'),
'Formats the theme code according to the rules declared in the .eslintrc and .stylelintrc files.\n' +
'By default, it uses ESLint Fix to format JS files, Stylelint Fix to format CSS files\n' +
'and Prettier to format JSON files.',
`--scripts
--styles
--locales`,
`--scripts\n--styles\n--locales`,
]);
commands.push([
chalk.greenBright.bold('deploy'),
'Uploads the dist folder to the Shopify store.',
`--env=my-custom-env-name
--skipPrompts
--nodelete`,
`--env=my-custom-env-name,\n--skipPrompts,\n--nodelete`,
]);
commands.push([
chalk.greenBright.bold('zip'),
Expand All @@ -85,20 +75,17 @@ module.exports = () => {
commands.push([
chalk.greenBright.bold('theme:create'),
'Create a new theme using credentials in packer.config.json, it will add the store id to your config',
`--env=my-custom-env-name
--name=my-theme-name
--deploy`,
`--env=my-custom-env-name\n--name=my-theme-name\n--deploy\n`,
]);
commands.push([
chalk.greenBright.bold('theme:remove'),
'Completely deletes the theme using the id set in packer.config.json or by providing a id flag',
'--env=my-custom-env-name\n',
'--id=1234456789\n',
`--env=my-custom-env-name\n--id=1234456789\n`,
]);
commands.push([
chalk.greenBright.bold('theme:download'),
'Download theme files from shopify',
'--settings\n',
'--settings',
]);
commands.push([
chalk.greenBright.bold('--version | -v'),
Expand Down

0 comments on commit 0656149

Please sign in to comment.