Git Product home page Git Product logo

Comments (3)

nene avatar nene commented on June 24, 2024

I've never used bower, so I know little of what's needed for adding bower support. Would you be interested in creating a pull request?

from sql-formatter.

kensaggy avatar kensaggy commented on June 24, 2024

Hi @nene - Thanks for the quick reply :) much appreciated.

There isn't much to making it available in Bower...
If you want a short-name install you basically need to register the package (find a name) and run bower register <my-package-name> <git-endpoint>

Personally I don't really mind the short-name, we can also just run bower install https://github.com/zeroturnaround/sql-formatter.git

What you're really missing for browser support is basically committing the "compiled" or dist path to the repo - so that we can include it in the markup like this

Now you can just run npm run build locally and commit it like this fork of sql-formatter did - see last 4 commits or you can probably do a more-robust build which when merging builds and commits the dist automatically for you - but that's obviously more complex (either using commit hooks, or travis to do the automated).

from sql-formatter.

nene avatar nene commented on June 24, 2024

Hmm... I don't really like the idea of committing compiled artifacts to the repository. Is there an alternative way to achieve Bower support?

From Bower homepage I read the following message:

...psst! While Bower is maintained, we recommend using Yarn and Webpack for front-end projects

I take it to mean that Bower is deprecated and you're better off using something else.

Therefore unless there is a simpler way of supporting bower, I'm not really willing to do that.

from sql-formatter.

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.