Skip to content

Commit

Permalink
fix: update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Mar 31, 2021
1 parent 2ba63ce commit 7f412f2
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* text=auto eol=lf
*.glb filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
11 changes: 11 additions & 0 deletions .github/DEPRECATED_DEPENDENCIES_ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Deprecated dependencies
labels: maintenance
---
The following dependencies are deprecated:

{% for dependency in env.DEPRECATED.split(',') %}
- **{{ dependency }}**
{% endfor %}

Check out the [build]({{ env.RUN_URL }}) for details.
4 changes: 3 additions & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ FROM gitpod/workspace-full:latest
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
RUN sudo apt-get install git-lfs
RUN git lfs install
RUN echo "\nexport PATH=$(yarn global bin):\$PATH" >> /home/gitpod/.bashrc
RUN yarn global add @babel/core @babel/node

# Puppeteer dependencies
RUN sudo apt-get update && sudo apt-get install -y libgtk-3-0 libx11-xcb1 libnss3 libxss1 libasound2 libgbm1 libxshmfence1
RUN sudo apt-get update && sudo apt-get install -y libgtk-3-0 libx11-xcb1 libnss3 libxss1 libasound2 libgbm1 libxshmfence1
11 changes: 7 additions & 4 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
"extends": [
":semanticCommits"
],
"ignorePaths": [
".github/workflows/build.yml"
],
"labels": [
"maintenance"
],
"semanticCommitScope": null,
"lockFileMaintenance": {
"enabled": true
},
"packageRules": [
{
"packagePatterns": [
Expand All @@ -23,7 +28,5 @@
"semanticCommitType": "fix"
}
],
"lockFileMaintenance": {
"enabled": true
}
"semanticCommitScope": null
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ await outputFiles({
<!-- LICENSE/ -->
## Contribute

Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/dword-design/output-files/issues) or [pull request](https://github.com/dword-design/output-files/pulls)! ⚙️
Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/dword-design/output-files/issues) or a [pull request](https://github.com/dword-design/output-files/pulls)! ⚙️

## Support

Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ import P from 'path'

const outputFiles = async (...args) => {
const path = typeof args[0] === 'string' ? args[0] : ''

const files = (typeof args[0] === 'string' ? args[1] : args[0]) || {}
await ensureDir(path)

return (
files
|> mapValues((child, localPath) => {
const absPath = P.join(path, localPath)

return (typeof child === 'string' ? outputFile : outputFiles)(
absPath,
child
Expand Down

0 comments on commit 7f412f2

Please sign in to comment.