[WIP] Build build in ... build #14
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WIP PR to get some early thoughts on building build in build. Other than maximizing the ratio of
buildtowords that aren't buildin the pr title, the goal here is to make developing build easier. By writing build in es6+ like the rest our our repos there will be less of a paradigm shift when writing javascript, as well as access to niceties like splats (e.g.{...builds, ...extensions}),async/await,class, etc. We can also take advantage of better code lint'ing (which gives usno-unused-vars,let/const,no-undefined-vars, and etc checks at lint time).Some notable changes:
bin/buildBlueprintswas moved tosrc/blueprintsas thebin/file is now compiled by blueprintsGenerators(/lib/generators/index.js) now have a more defined structure. This is a part that makes me hesitant that its ready, I'm considering making them always have a function that produces an object to be used in the webpack config, instead ofobjectOrFunctionas it is now. I'd also be open to making them a class, but I've been trying to avoid those.Other thoughts:
@r/buildto the former latest version of build.blueprintstoo much as part of this patch, but I think by making development easier we're better positioned to do so.