-
Notifications
You must be signed in to change notification settings - Fork 363
Conversation
How about |
@@ -8,10 +8,8 @@ | |||
}, | |||
"devDependencies": { | |||
"@shopify/slate-tools": "^0.1.0", | |||
"archiver": "^1.1.0", | |||
"aws-sdk": "^2.6.12", | |||
"mime-types": "^2.1.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you switch these to use exact versions? Other than @shopify/slate-tools
. We'd want that one to get latest.
const DIST_DIR = 'upload'; | ||
const SRC_FILES = [ | ||
'config-sample.yml' | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing ;
|
||
const SRC_DIRS = [ | ||
'src' | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing ;
|
||
archive.pipe(output); | ||
|
||
for (var i in SRC_FILES) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i
should be const
archive.file(SRC_FILES[i]); | ||
} | ||
|
||
for (var i in SRC_DIRS) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i
should be const
] | ||
|
||
module.exports = (function() { | ||
let output = fs.createWriteStream('upload/slate-unbuilt.zip'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would be const
too. The value never gets reassigned
|
||
output.on('close', () => { | ||
console.log(`${archive.pointer()} total bites`); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing ;
|
||
module.exports = (function() { | ||
let output = fs.createWriteStream('upload/slate-unbuilt.zip'); | ||
let archive = archiver('zip'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could prob be const
too. Again never gets reassigned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
slate new theme
secrets.json
file locally with the unencrypted AWS staging key.@Shopify/themes-fed