vjustov / grunt-sinatra Goto Github PK
View Code? Open in Web Editor NEWControl your sinatra server via Grunt
License: MIT License
Control your sinatra server via Grunt
License: MIT License
Allow running the running rack server in its own standalone window instead of a headless process spawn.
Can be usefull when running two task that remain running (ex: sinatra and watch from grunt-contrib-watch).
Given a rackup.ru file like the following where we specify a port:
#\ -w -p 3000
require "./app"
run Sinatra::Application
Running the grunt task produces incorrect output in regards to which port the server is actually running on:
$ grunt sinatra:serve
Running "sinatra:serve" (sinatra) task
Sinatra server started on port 9292. PID: 12537
In this specific example it ought to have reported that the server is running on port 3000.
No changes were made, but I can't seem to get the server killed when running the tests.
How does this work?
Pipe the ruby stdout onto grunt so that any log, request, ect... can be viewed from within the grunt console. i had this working, but removed it because the output was inconsistent and got mixed in between watch messages.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.