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

Include assets from "assets/" directory #126

Merged
merged 6 commits into from
Aug 8, 2018

Conversation

mwistrand
Copy link
Contributor

Resolves #125. Add a copyPublicAssets build flag used to determine whether files in
an optional public/ directory should be copied to the output
directory.

README.md Outdated
@@ -132,6 +132,10 @@ An array of paths to [CLDR JSON](https://github.com/dojo/i18n#loading-cldr-data)
}
```

#### `copyPublicAssets`: boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need a flag for this given we can just presume if they have/haven’t a public folder they’re opting in/out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On second thought, I suppose we do not.

@matt-gadd
Copy link
Contributor

I think we are going to release this in the next major (under a group of enhancements), so I think this needs to be raised against the next branch?

@mwistrand mwistrand changed the base branch from master to next August 7, 2018 12:58
Add a `copyPublicAssets` build flag used to determine whether files in
an optional `public/` directory should be copied to the output
directory.
@codecov
Copy link

codecov bot commented Aug 7, 2018

Codecov Report

Merging #126 into next will decrease coverage by 0.76%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             next     #126      +/-   ##
==========================================
- Coverage   60.53%   59.76%   -0.77%     
==========================================
  Files           8        8              
  Lines         413      425      +12     
  Branches       91       93       +2     
==========================================
+ Hits          250      254       +4     
- Misses        163      171       +8
Impacted Files Coverage Δ
src/dist.config.ts 36.17% <33.33%> (-0.42%) ⬇️
src/dev.config.ts 26.53% <33.33%> (+0.94%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 86d8f79...1513504. Read the comment docs.

@matt-gadd
Copy link
Contributor

@mwistrand can we put a feature in for the test-app for this?

@matt-gadd
Copy link
Contributor

example for above: say an image tag with a src to the public directory?

Add a `publicDir` build option that defaults to "public" but can be
overridden in the event that the server handles the "public" directory
in an undesirable manner.
@mwistrand mwistrand changed the title Include assets from "public/" directory Include assets from "assets/" directory Aug 8, 2018
@mwistrand mwistrand merged commit e1cd821 into dojo:next Aug 8, 2018
mwistrand added a commit to mwistrand/cli-build-app that referenced this pull request Aug 13, 2018
Copy (without hashing) all files in the `assets` directory to the `output/{mode}/assets` directory.
mwistrand added a commit to mwistrand/cli-build-app that referenced this pull request Aug 13, 2018
Copy (without hashing) all files in the `assets` directory to the `output/{mode}/assets` directory.
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.

3 participants