-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STRWEB-113 expose 'build' command publicly #144
base: master
Are you sure you want to change the base?
Conversation
**DRAFT** **DRAFT** **DRAFT** Expose `build` as a `bin` script, allowing a platform to directly depend on this module and call the `build` API to generate a bundle without pulling in all the stripes-cli deps that are unrelated to producing a production bundle. CSS isn't being correctly bundled/handled here, but the bundle is otherwise functional. Hopefully, this is just a config glitch. Refs STRWEB-113
Build output here looks like
whereas from a build with stripes-cli it looks like
so the missing |
@zburke something not leading down the prod path / |
|
DRAFT DRAFT DRAFT
Expose
build
as abin
script, allowing a platform to directly depend on this module and call thebuild
API to generate a bundle without pulling in all the stripes-cli deps that are unrelated to producing a production bundle. This results in a 33% reduction in the volume of packages pulled down when constructing a build, significantly reducing the attack surface we are exposed to:In a platform, remove existing dev-deps and replace them with
For the purposes of backwards compatibility while testing, this branch also exports a command named "stripes" so you can use the existing scripts in
platform-complete#snapshot
to do things likeRefs STRWEB-113