Comments (6)
3.0.0
released
from ignore-sync.
Why you need to copy the package's .gitignore to the root .gitignore? Both your /.gitignore and /packages/*/.gitignore will be resolved by git
from ignore-sync.
It's for Prettier & ESLint, not for git.
Because they only admit one ignore file :/
prettier/prettier#8048
eslint/eslint#9794
from ignore-sync.
The reason of this behavior is because ignore-sync
treat those dependencies as template that are for copy and paste, so the path inside is not relative to the destination file
For example, /packages/a/.npmignore
can copy the /.gitignore
directly, without messing up the files with prefix ../../
.
And user can define file structure like the following code, so that the ignore files can be stored in different directory
[local]
.config/commonignore
It works the same for remote config
[github/gitignore]
Node.gitignore
Global/macOS.gitignore
Therefore, it does not work the way that solve your problem.
With that being said, we can introduce a new tag like [relative]
for this different behavior, if you wanna help coding it.
from ignore-sync.
Without having read your comment yet, I was just submitting this proposal: #301
from ignore-sync.
@foray1010 PR updated with your comments!
from ignore-sync.
Related Issues (10)
- Action required: Greenkeeper could not be activated 🚨
- An in-range update of eslint-config-foray1010 is breaking the build 🚨 HOT 5
- Allow global patterns for local paths HOT 3
- Relative recursive patterns should be rewritten using ** HOT 1
- Action Required: Fix Renovate Configuration
- [relative] merging issue on windows
- Allow referencing ignore-sync files from within a ignore-sync file HOT 2
- TypeError: axios.get is not a function HOT 2
- Add support for referencing a specific branch HOT 2
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 ignore-sync.