Skip to content

Conversation

@karlhorky
Copy link
Contributor

No description provided.

@Swiip
Copy link
Owner

Swiip commented Sep 3, 2015

👍

Swiip added a commit that referenced this pull request Sep 3, 2015
Expand on per-environment build instructions
@Swiip Swiip merged commit ff69fc0 into Swiip:master Sep 3, 2015
@karlhorky karlhorky deleted the patch-1 branch September 3, 2015 11:04
@jtammen
Copy link

jtammen commented Dec 5, 2015

Hey, I think this recipe is very helpful, thank you!

I was just wondering whether it would make more sense to not put the generated config module into the sources folder. I am using this just to create environment specific build (think test, staging, production) of my app. And currently, I get a change in my sources ever time I run a build…

@karlhorky @Swiip What do you think?

@karlhorky
Copy link
Contributor Author

@jtammen I usually ignore this file with .gitignore since it's a generated file.

@jtammen
Copy link

jtammen commented Dec 5, 2015

@karlhorky Sounds like a pragmatic solution, thanks! (-:

@cm325
Copy link

cm325 commented Jun 16, 2016

Hi,

I'm using this recipe:

https://github.com/Swiip/generator-gulp-angular/blob/master/docs/recipes/environment-specific-build.md

But the problem is that the constant file from the previous build is not removed automatically, when a new constant file (for a different enviroment) is created. Seems like that recipe should include a clean task, like:

gulp.task('clean:config', function () { return del([path.join(conf.paths.src, '/app/properties.*.js')]); });

Also, instead of using configDev.json and config.json, I also opted for slightly different naming convention, like properties.dev.js, properties.test.js, etc-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants