Skip to content

Commit

Permalink
Update PMO snippets for production steal
Browse files Browse the repository at this point in the history
This updates the PMO snippets to use `steal.production.js` as the
production loader.
  • Loading branch information
matthewp committed Jan 25, 2017
1 parent 17425dd commit 4fe67f9
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 74 deletions.
5 changes: 0 additions & 5 deletions docs/guides/guide.md
Expand Up @@ -346,11 +346,6 @@ When prompted, enter the name of the application created when you set up the Fir
node_modules/.bin/firebase login
```

Update your index.stache to change the production steal path:

@sourceref guides/guide/steps/16-cdn/index.stache
@highlight 36

Then we can deploy the application by running:

```
Expand Down
43 changes: 0 additions & 43 deletions guides/guide/steps/16-cdn/index.stache

This file was deleted.

2 changes: 1 addition & 1 deletion guides/guide/steps/7-navigate/index.stache
Expand Up @@ -33,7 +33,7 @@

{{#switch env.NODE_ENV}}
{{#case "production"}}
<script src="{{joinBase 'dist/steal.production.js'}}"></script>
<script src="{{joinBase 'steal.production.js'}}"></script>
{{/case}}
{{#default}}
<script src="/node_modules/steal/steal.js"></script>
Expand Down
18 changes: 1 addition & 17 deletions guides/guide/test.js
Expand Up @@ -287,23 +287,7 @@ guide.step("Stop production mode", function(){
guide.stepIf("Deploy to CDN", function() {
return !!guide.options.app;
}, function(){
var appName = guide.options.app;

var setConfig = function(pkg){
pkg.donejs.deploy.services.production.config.firebase = appName;
if(!pkg.system.envs) {
pkg.system.envs = {};
}

if(!pkg.system.envs["server-production"]) {
pkg.system.envs["server-production"] = {};
}
pkg.system.envs["server-production"].baseURL = "https://" +
appName + ".firebaseapp.com/";
return pkg;
};
return guide.replaceJson("package.json",
join(__dirname, "steps", "16-cdn", "deploy.json"), setConfig)
return guide.executeCommand("donejs", ["add", "firebase"])
.then(function(){
return guide.executeCommand("donejs", ["build"]);
})
Expand Down
3 changes: 1 addition & 2 deletions guides/place-my-order/steps/additional/index.stache
Expand Up @@ -54,8 +54,7 @@
{{#switch env.NODE_ENV}}
{{#case "production"}}
<script
src="{{joinBase 'node_modules/steal/steal.production.js'}}"
main="place-my-order/index.stache!done-autorender">
src="{{joinBase 'steal.production.js'}}">
</script>
{{/case}}
{{#default}}
Expand Down
5 changes: 1 addition & 4 deletions guides/place-my-order/steps/loading-assets/index.stache
Expand Up @@ -12,10 +12,7 @@

{{#switch env.NODE_ENV}}
{{#case "production"}}
<script
src="{{joinBase 'node_modules/steal/steal.production.js'}}"
main="place-my-order/index.stache!done-autorender">
</script>
<script src="{{joinBase 'steal.production.js'}}"></script>
{{/case}}
{{#default}}
<script src="/node_modules/steal/steal.js"></script>
Expand Down
3 changes: 1 addition & 2 deletions guides/place-my-order/steps/switch-between/index.stache
Expand Up @@ -36,8 +36,7 @@
{{#switch env.NODE_ENV}}
{{#case "production"}}
<script
src="{{joinBase 'node_modules/steal/steal.production.js'}}"
main="place-my-order/index.stache!done-autorender">
src="{{joinBase 'steal.production.js'}}">
</script>
{{/case}}
{{#default}}
Expand Down

0 comments on commit 4fe67f9

Please sign in to comment.