Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Deploy unbuilt theme #43

Merged
merged 6 commits into from
Nov 3, 2016
Merged

Deploy unbuilt theme #43

merged 6 commits into from
Nov 3, 2016

Conversation

stevebosworth
Copy link
Contributor

  • build and deploy slate for consumption by slate new theme
  • removes staging deploys as part of shipit because they don't really work with our workflow. To test deploy scripts you can still deploy to staging locally by adding a secrets.json file locally with the unencrypted AWS staging key.

@Shopify/themes-fed

@stevebosworth stevebosworth self-assigned this Nov 2, 2016
@cshold
Copy link
Contributor

cshold commented Nov 2, 2016

How about slate-src.zip instead? Rest looks good 👍

@@ -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"
Copy link
Contributor

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'
]
Copy link
Contributor

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'
]
Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

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');
Copy link
Contributor

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`);
})
Copy link
Contributor

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');
Copy link
Contributor

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.

Copy link
Contributor

@macdonaldr93 macdonaldr93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@stevebosworth stevebosworth merged commit b06411f into master Nov 3, 2016
@stevebosworth stevebosworth deleted the deploy-unbuilt-theme branch November 3, 2016 20:53
@lock
Copy link

lock bot commented Oct 26, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants