Skip to content

Copy static/root to root folder with build #865 #866

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

Merged
merged 4 commits into from
Aug 11, 2019

Conversation

harshitkumar31
Copy link
Contributor

@harshitkumar31 harshitkumar31 commented Aug 9, 2019

What kind of change does this PR introduce?
Feature - #865
Fixes #865

Did you add tests for your changes?
Yes
Summary
Copies the files from static/root directory to the project root.

Does this PR introduce a breaking change?
No

Other information

Please paste the results of preact info here.

cc: @prateekbh

it('should copy resources from static/root to root directory', async () => {
let dir = await subject('static-root');
await build(dir);
let file = join(dir, '.htaccess');
Copy link
Member

Choose a reason for hiding this comment

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

Static root files should still be placed into the build output directory:

Suggested change
let file = join(dir, '.htaccess');
let file = join(dir, 'build', '.htaccess');

@harshitkumar31 harshitkumar31 changed the title Copy static/root to root folder with build Copy static/root to root folder with build #865 Aug 10, 2019
@prateekbh
Copy link
Member

Implementation LGTM. Can someone take a look if root is good name choice for the folder

// @ForsakenHarmony

@ForsakenHarmony
Copy link
Member

Yeah, probably not

myb static or public

@ForsakenHarmony ForsakenHarmony merged commit d6fd760 into preactjs:master Aug 11, 2019
@prateekbh prateekbh deleted the Issue#865 branch August 11, 2019 18:09
@prateekbh prateekbh restored the Issue#865 branch August 11, 2019 18:10
@harshitkumar31 harshitkumar31 deleted the Issue#865 branch August 14, 2019 06:09
@reznord reznord mentioned this pull request Jul 10, 2020
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.

Way to put files on root
4 participants