Comments (4)
I have a very rough API that you could use, though it's definitely going to be a moving target for a while. (I'm totally happy to work with you to solidify it over time though)
Take a look at where the CLI code builds a Project
object for the low level API.
Alternatively, you can fake a command line call w/o the shell as an intermediary by including the CLI module directly, and calling it similar to the bin file - this interface is less likely to change, but is definitely more awkward.
from groc.
Thinking further on this, a better and probably relatively stable API would be to decouple the argument parsing, and have a call that takes the resultant options hash - easy to configure, and also plays nicely with the.groc.json
file
from groc.
I was trying to create a GrunJS taks as well: https://gist.github.com/4552595 . But can't get it to work without the .groc.json file (and using the grunt initConfig instead). Any suggestions what I could do to accomplish that?
from groc.
Actually I just got it to work by converting the grunt options (same structure as the .groc.json file) to a list of CLI commands. Please check the https://gist.github.com/4552595 gist again, I just updated it.
@nevir , if you think that is a good solution, perhaps we could have that integrated with Groc so it plays nice with Grunt builds?
Cheers!
from groc.
Related Issues (20)
- Force single column for README or other pages? HOT 9
- Latest Jade Version `doctype` warning HOT 4
- Not working with fresh install HOT 2
- The files path aren't handled the same way in cli.coffee and project.coffee
- in .groc.json, groc takes the first directory listed in "glob" array and dumps its contents into the "out" folder, instead of just dumping the directory itself HOT 2
- Avoid backslash under winServer
- groc fails on linux
- New groc install fails due to breaking changes in underscore 1.7 HOT 9
- Other languages? HOT 2
- file paths containing spaces
- Can you override language options? HOT 2
- Fails to parse HOT 1
- Syntax docs?
- [Question
- [Question] Changing default theme
- Support for .jsx files
- Enhancement: Download button for the original file
- Using HighlightJS Styles
- Negative path support for glob parameter into .groc.json HOT 1
- Newline at end of file
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 groc.