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

Custom template and improvements #18

Merged
merged 3 commits into from
Oct 31, 2017
Merged

Custom template and improvements #18

merged 3 commits into from
Oct 31, 2017

Conversation

tonifisler
Copy link
Member

@tonifisler tonifisler commented Oct 20, 2017

Will close #14 and close #15

tasks/prepare.js Outdated
.pipe($.replace('{/* COLORS */}', JSON.stringify(JSON.parse(colors))))
$.util.log('Using template', $.util.colors.magenta(config.custom_template || config.template));

return gulp.src(config.custom_template || config.template, { cwd: config.custom_template ? config.project : '' })
Copy link

Choose a reason for hiding this comment

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

Why using two variables config.custom_template and config.template ?
What about checking if a pre-defined custom template exist and if yes, override config.template ?

We can also create a dedicated config for the Current Working Directory instead of deducting that if there is a custom template it is inside the project dir...

Copy link
Member Author

Choose a reason for hiding this comment

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

I need this cwd parameter for Gulp 🤔

@Yago Yago merged commit 20b49d7 into dev Oct 31, 2017
@Yago
Copy link
Member

Yago commented Oct 31, 2017

🎉

@tonifisler tonifisler deleted the feature/custom-template branch June 11, 2018 14:28
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.

None yet

3 participants