Skip to content

Commit

Permalink
fix(packer-theme): theme:download command typo in ignored files
Browse files Browse the repository at this point in the history
Closes #18

Signed-off-by: Eric Hayes <eric@hayesmarketing.io>
  • Loading branch information
hayes0724 authored and Eric Hayes committed Dec 10, 2020
1 parent 0db7fe2 commit 4ff8eb6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [1.3.2](https://github.com/hayes0724/shopify-packer/compare/1.3.1...1.3.2) (2020-12-10)


### :bug: Bug Fixes

* **packer-theme:** theme:download command typo in ignored files ([060d803](https://github.com/hayes0724/shopify-packer/commit/060d803e9faa2c7b37649617981c99af9522c117)), closes [#18](https://github.com/hayes0724/shopify-packer/issues/18)



## [1.3.1](https://github.com/hayes0724/shopify-packer/compare/1.3.0...1.3.1) (2020-12-10)


Expand Down
2 changes: 1 addition & 1 deletion cli/commands/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = async (args) => {
await removeTheme(args);
}
if (args.download) {
downloadTheme()
await downloadTheme()
.then(() => {
console.log(chalk.green('Theme downloaded!'));
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hayes0724/shopify-packer",
"version": "1.3.1",
"version": "1.3.2",
"bin": {
"packer": "cli/index.js"
},
Expand Down
7 changes: 5 additions & 2 deletions src/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const chalk = require('chalk');
const ora = require('ora');

const PackerConfig = require('../config');
const config = new PackerConfig(require('../../packer.schema'));

const clearConsole = require('../utilities/clear-console');
const {
getEnvNameValue,
Expand All @@ -12,7 +14,6 @@ const {
getStoreValue,
getIgnoreFilesValue,
} = require('../env');
const config = new PackerConfig(require('../../packer.schema'));

const {list, create, remove} = require('./api');

Expand Down Expand Up @@ -90,17 +91,19 @@ const removeTheme = async (args) => {

const downloadTheme = async () => {
// @TODO: add warning message if directory is not empty
clearConsole();
await themeKit.command(
'download',
{
password: getPasswordValue(),
themeid: getThemeIdValue(),
store: getStoreValue(),
env: getEnvNameValue(),
ignoredFiles: getIgnoreFilesValue(),
ignoredFiles: getIgnoreFilesValue().split(':'),
},
{
cwd: config.get('theme.src.root'),
logLevel: 'silly',
}
);
};
Expand Down

0 comments on commit 4ff8eb6

Please sign in to comment.