Coder Social home page Coder Social logo

Comments (3)

remydenton avatar remydenton commented on June 2, 2024

As part of this, fix (or remove?) the incorrect path to the schema file in the build tools package.json:
https://github.com/bolt-design-system/bolt/blob/master/packages/build-tools/utils/package.json#L43

from bolt.

christophersmith262 avatar christophersmith262 commented on June 2, 2024

Best fix from my perspective would be to have a way for a package (in package.json) to declare that it has a component in it. Or better yet, to have an entry in the schema that says "this is schema for twig, this is schema for a web component, this is schema for javascript config, etc.".

from bolt.

remydenton avatar remydenton commented on June 2, 2024

I think we may have smushed two separate issues together in this one:

  1. There's no easy way to tell whether a package is a component or something else by looking at its package.json file (our current workaround is to check whether the name starts with @bolt/components). This is a use case for work @christophersmith262 is doing on the base theme.

  2. You get this error if you list build utils in your boltrc file

    node_modules/@bolt/build-utils/utils/config.schema.yml
    Error: This file ^^^ does not exist and it was referenced in package.json for that component, please 
    make sure the file path is correct.
    

    This can be fixed by any of
    a) don't list build utils in boltrc (it's unnecessary)
    b) fix the path to the schema file in build tools package.json in Bolt
    c) "don't parse non-component packages".

Did I get that right?

from bolt.

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.