Git Product home page Git Product logo

Comments (7)

Kastrylia avatar Kastrylia commented on August 21, 2024 1

Much obliged! Have a nice day!

from sharec.

epszaw avatar epszaw commented on August 21, 2024

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.

Kastrylia avatar Kastrylia commented on August 21, 2024

So, basically, I have to substitute content of ${pathOfInstalledConfigPackage}/.prettierrc.json to context.mergedConfigs[pathOfMyConfigFile] in "After merge" hook, right?

from sharec.

Kastrylia avatar Kastrylia commented on August 21, 2024

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.

epszaw avatar epszaw commented on August 21, 2024

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.

Kastrylia avatar Kastrylia commented on August 21, 2024

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.

epszaw avatar epszaw commented on August 21, 2024

At this moment sharec supports only root configuration file

from sharec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.