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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify a different build directory for #1513 #1599

Merged
merged 7 commits into from Apr 6, 2017

Conversation

alexnewmannn
Copy link
Contributor

Fixes #1513

This allows the user to setup a custom dist folder, instructions on how to do it is added in the README.md (not sure i've used the best wording, so open to that)

Let me know if I've missed anything but it seems to work with all the commands, runs fine and has a default config.

Let me know! 馃憤

Copy link
Contributor

@arunoda arunoda left a comment

Choose a reason for hiding this comment

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

This looks pretty great for me. I need to see following changes:

  • Use distDir in the config instead of options.dist
  • Create a integration test where we use a different build dir. Use a project like this.
    Here we need to see whether the app is working properly and check whether the distDir exist.

server/config.js Outdated
@@ -5,7 +5,10 @@ const cache = new Map()

const defaultConfig = {
webpack: null,
poweredByHeader: true
poweredByHeader: true,
options: {
Copy link
Contributor

Choose a reason for hiding this comment

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

No need options object.
Shall we use distDir instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@alexnewmannn
Copy link
Contributor Author

@arunoda Wondering if it's worth adding something for this to the examples folder?

@arunoda
Copy link
Contributor

arunoda commented Apr 3, 2017

@alexnewmannn may be as a different PR.
Frankly, I think the README is fine.

@alexnewmannn
Copy link
Contributor Author

@arunoda Hey, I've addressed your comments, added the integration test (hopefully that's what you were after...) and also added DS_STORE to .gitignore as I was getting a lot of those files generated, saves people ignoring them all the time

@@ -0,0 +1,7 @@
module.exports = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Change the dir name of this integration test from distDir to dist-dir.

@arunoda
Copy link
Contributor

arunoda commented Apr 4, 2017

@alexnewmannn this is pretty cool. We can take this.
But there's a small change we need to do.
Check ^^^

@alexnewmannn
Copy link
Contributor Author

@arunoda Updated, any other changes needed? Happy to update if so, wasn't sure if that was the best way to approach the tests.

@@ -11,3 +11,5 @@ npm-debug.log
# coverage
.nyc_output
coverage

.DS_Store
Copy link
Member

Choose a reason for hiding this comment

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

I believe we removed the .DS_Store a million times in PRs 馃槄

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should just add .DS_Store like it's done in this PR 馃槃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha, yeh I have one setup just not on my personal laptop (don't use it much 馃憖 ) just thought it might be useful as I'm probably not the only one. Can remove if you want?

Copy link
Member

@timneutkens timneutkens left a comment

Choose a reason for hiding this comment

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

馃挴

@arunoda
Copy link
Contributor

arunoda commented Apr 6, 2017

This is awesome. Thanks.

@arunoda arunoda merged commit 9347c8b into vercel:master Apr 6, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
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