Comments (14)
Please take a look at https://github.com/vkadam/grunt-jsbeautifier/blob/master/README.md#optionsconfig-optional
from grunt-jsbeautifier.
If you are taking about using .jsbeautifyrc if available without specifying in task, then I need to think about it. For now it needs to be specified in task.
from grunt-jsbeautifier.
I would prefer it as a fallback, but the task config should work. I want aware that we just called it "config" as I'm new to jsbeautify. I'll play with that setting tomorrow :)
Thanks!
—
Sent from Mailbox for iPad
On Fri, Jan 3, 2014 at 11:54 PM, Vishal Kadam [email protected]
wrote:
If you are taking about using .jsbeautifyrc if available without specifying in task, then I need to think about it. For now it needs to be specified in task.
Reply to this email directly or view it on GitHub:
#28 (comment)
from grunt-jsbeautifier.
I am planning to support "jsbeautifyrc" similar to https://github.com/gruntjs/grunt-contrib-jshint#jshintrc, I will keep "config" options for backward compatibility. Following will be supported values for jsbeautifyrc/config option.
{
false: Config will not be loaded from any file (Default value)
"path/to/file": Read all config from specified file. (Currently supported by "config" option)
true: Read .jsbeautifyrc from same folder for each file currently being beautified.
}
from grunt-jsbeautifier.
This is great. I think grunt-contrib-jshint does it perfectly! Great news!
from grunt-jsbeautifier.
Should this be closed?
from grunt-jsbeautifier.
Not yet, I haven't yet published this one. There are some scenarios I need to cover.
from grunt-jsbeautifier.
Oh, my bad! I saw that in master and thought it was released. Is master stable enough for "production" then?
from grunt-jsbeautifier.
From what I can see in the code, the feature is in the README but not implemented, am I right?
from grunt-jsbeautifier.
yeap.. Yet to implement it.
from grunt-jsbeautifier.
Alright thanks!
from grunt-jsbeautifier.
What is the status of this issue?
from grunt-jsbeautifier.
I have just completed the development of it. I too a slight different approach than discussed prior. Simple rule is if ".jsbeautifierrc" file exists use it instead of setting config value to true. See this commit.
from grunt-jsbeautifier.
Release 0.2.8 published
from grunt-jsbeautifier.
Related Issues (20)
- Ignoring embedded script tags (html) HOT 3
- run jsBeautifier on single file HOT 6
- Update js-beautify HOT 1
- Breaks on formatting mixins HOT 2
- Update to latest version of jsbeautify HOT 1
- Non-UNIX line endings causes verification to fail HOT 9
- JS: End with newline HOT 2
- bracestyle expand causing odd formatting with JSON objects HOT 1
- use jsbeautifier format the string which concatenation with "\" have one bug? HOT 1
- option.dest output folder too
- js-beautify version HOT 1
- Hangs on missing HTML files HOT 2
- Config file HOT 4
- JsBeautifier silently finish all grunt task when no source HOT 2
- Grunt 1.0.x support HOT 6
- Option "eol" not working HOT 1
- Only modify file when it is not well-formatted HOT 2
- Improve documentation HOT 2
- bug(config): grunt-jsbeautifier doesn't support .jsbeautifyrc HOT 1
- bug(options): wrapLineLength: 0 not by default 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 grunt-jsbeautifier.