Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thejohnfreeman/copy-dependencies
Copy files from `node_modules` to your source tree.
https://github.com/thejohnfreeman/copy-dependencies
Last synced: 21 days ago
JSON representation
Copy files from `node_modules` to your source tree.
- Host: GitHub
- URL: https://github.com/thejohnfreeman/copy-dependencies
- Owner: thejohnfreeman
- License: mit
- Created: 2019-03-11T00:58:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-11T02:46:11.000Z (almost 6 years ago)
- Last Synced: 2024-11-25T02:18:42.162Z (about 1 month ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# copy-dependencies
As of 2019-03-10, [Eleventy](https://www.11ty.io/) does not seem to let me
include files from `node_modules` while I'm using a custom input directory
(which I do to scope my templates away from metadata files like `README.md`).
I wrote this tool to let me automate the process of copying files from my
dependencies to arbitrarily-nested paths in my project, creating any missing
parent directories on the way (which `cp` and `rsync` alone do not do), all
with a simple configuration that fits into `package.json`.## Install
```
yarn add -D @thejohnfreeman/copy-dependencies
```## Use
```js
// package.json
{
...
"scripts": {
"install": "copy-dependencies"
},
"copyDependencies": {
"node_modules/prismjs/themes/prism-tomorrow.css": "src/css/theme.css"
},
...
}
```