Comments (3)
I'm confused about the use of actions as well, and rather than open a new issue, will just add some observations to this one. If the dest folder is non-empty, degit errors out early.
If you use the documented example of License, and the cloned repo has such a file, degit will still complain that the file does not exist.
Stepping through the code a bit, and the exists check is performed before the file is copied, so I'm confused as to what the intended behavior is.
-P
from degit.
Hi @Pedroglp , I put in a PR to fix some issues with actions but want to make sure I understand what you're running into. The degit.json file can go in your local folder that you're degit'ing into. For example,
degit rich-harris/degit-test-repo my-new-app
where the my-new-app
can have a degit.json file in it. Definitely the docs need to be improved to clarify how its workflow and to provide some better examples.
@ptone, I think this is the same issue as #38, which that PR should fix. Let me know if that fixes it for you, or you're seeing something else.
from degit.
If the dest folder is non-empty, degit errors out early.
@ptone If you are creating a new local folder with a degit.json file in it, you would still need to use the --force
flag since it's not empty. I'm not sure if it's a good idea to allow degit.json to be a privileged file that can exist without throwing an error. I was experimenting with that here but open to ideas of what you think the expected behavior would be.
from degit.
Related Issues (20)
- ERROR install degit HOT 3
- Require Node LTS instead of Node 8 HOT 2
- `zlib: unexpected end of file` HOT 1
- with `cache:false`, degit works offline. Expected? HOT 1
- 💡 Feature Request: Fallback to isomorphic-git when git is not installed on the client
- This link is not downloading. HOT 2
- Throw error if subdirectory doesn't exist
- How many commits are stored in the .git history? HOT 2
- --mode=git doesn't seem to respect git hash provided to degit HOT 5
- `degit --help` not working. Help file is missing. HOT 2
- Error out of the box HOT 4
- Implementation for Private Repo HOT 1
- why install success , but use it error HOT 7
- feat: auto suggestion HOT 1
- Trying to get a subdirectory in git mode with the js api HOT 1
- Can degit handle template upgrading? HOT 2
- Archive HOT 6
- Files end of line change from crlf to lf with degit
- add support for Azure DevOps
- Issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from degit.