Comments (3)
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.
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.
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)
- [FORMATTING] Problem with parenthesis... HOT 3
- [FORMATTING] sql-formatter crash on `grant` with `*` HOT 1
- [FORMATTING] sql-formatter crash on `create user` with `%` HOT 3
- [FORMATTING] Unusual formatting of RETURNING clause HOT 2
- Feature Request: SQL in SQL prettification HOT 5
- Inserting white space at start of query HOT 1
- [FORMATTING] Inconsistent formatting for queries with `$$` HOT 5
- Incorrect indentation in PostgreSQL `DELETE FROM ... USING` HOT 1
- Feature Request: Remove unnecessary parentheses HOT 2
- [FORMATTING] PostgreSQL `TYPE` keyword used as identifier causes indentation errors HOT 1
- Unable to format SQL: Error: Parse error: Unexpected "$$ DECLARE" HOT 1
- [FORMATTING] Parenthesized query starting directly after CTE HOT 2
- [FORMATTING] `"indentStyle": "tabularLeft"` behavior changed in v15.0.0 HOT 4
- [FORMATTING] `IDENTIFIED` recognized as identifier
- PHP code inside SQL HOT 5
- Have compiled js file download? HOT 1
- Feature Request: support for BETWEEN AND clause HOT 3
- Feature Request: Comma Position HOT 2
- [FORMATTING] Missing indent level of comment after CASE HOT 1
- [FORMATTING] % modulo formatting causes parse error 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 sql-formatter.