Skip to content
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

Add exports so build can be consumed as a module #40

Merged
merged 5 commits into from
Apr 28, 2023
Merged

Add exports so build can be consumed as a module #40

merged 5 commits into from
Apr 28, 2023

Conversation

sndrs
Copy link
Collaborator

@sndrs sndrs commented Apr 28, 2023

added the ability to consume build as a module:

import { build, watch } from 'https://deno.land/x/[email protected]/src/build.ts';

In the process, some CLI flags have changed:

Before After
--dev --watch (to match export name)
--site --site_dir
--build --out_dir
--minify toggles minification (defaults to true, but false in watch)

The default build output is now /build – I kept finding it hard to navigate to a folder that appeared and disappeared in src. happy to revert this if it's not popular.

@sndrs sndrs requested a review from mxdvl April 28, 2023 15:49
@sndrs sndrs mentioned this pull request Apr 28, 2023
Copy link
Owner

@mxdvl mxdvl left a comment

Choose a reason for hiding this comment

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

Yes, very nice!

The default build output is now /build

I did a similar thing in another branch (maybe #29 ?)

@sndrs sndrs merged commit 9bcb89b into main Apr 28, 2023
@sndrs sndrs deleted the add-api branch April 28, 2023 16:22
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.

2 participants