Comments (7)
Much obliged! Have a nice day!
from sharec.
Hello! It's possible to do using hooks. Try to replace prettier
file by upcoming one in mergedConfigs
. Just play around context to see all data it has.
from sharec.
So, basically, I have to substitute content of ${pathOfInstalledConfigPackage}/.prettierrc.json to context.mergedConfigs[pathOfMyConfigFile] in "After merge" hook, right?
from sharec.
Furthermore, is it possible to deliver ".sharecrc.js" within the same config package? Or the file with hooks should be added manually for every repo that uses the config?
from sharec.
So, basically, I have to substitute content of ${pathOfInstalledConfigPackage}/.prettierrc.json to context.mergedConfigs[pathOfMyConfigFile] in "After merge" hook, right?
That's right.
Furthermore, is it possible to deliver ".sharecrc.js" within the same config package? Or the file with hooks should be added manually for every repo that uses the config?
Of course, you can, but updated version will be applied for next merge, not for current one.
from sharec.
Ok, so there is .sharercrc.js in my repo's node_modules/my-config. When i do "npx sharec" from the root of my project the hook doesn't work. When I move it to the project's root - everything works well. Is it possible to configure sharec to get hooks from package folder?
from sharec.
At this moment sharec
supports only root configuration file
from sharec.
Related Issues (20)
- Codemods HOT 10
- Prompt mode HOT 1
- Overwrites local .eslintrc.js config HOT 3
- Comments in JSON config HOT 4
- Find solution to test fixtures on windows HOT 1
- docs: formatting notes
- script with two equal subcommand HOT 5
- Docs: Broken links HOT 1
- Yaml converts with tabs, that cannot be formatted by prettier HOT 6
- Typescript migration
- .sharecrc.json and sharec.configs inside package.json are ignored HOT 3
- merge strategy problem in package.json HOT 3
- docs: 404 HOT 1
- problematic command line HOT 3
- executable file HOT 7
- [email protected] is not published HOT 1
- Move from nanocolors to picocolors HOT 1
- Remove `lodash` dependency HOT 1
- Problem with gitignore 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 sharec.