vais / restart Goto Github PK
View Code? Open in Web Editor NEWOn MS Windows, restart runs your shell command, then re-runs it any time filesystem change is detected.
Home Page: https://rubygems.org/gems/restart
License: MIT License
On MS Windows, restart runs your shell command, then re-runs it any time filesystem change is detected.
Home Page: https://rubygems.org/gems/restart
License: MIT License
I'm not clear as to how to just target a single file.
I have ~/app.rb
that I want to run in the terminal every time it is saved. No subdirectories, nothing else. Just that file. From the docs it seems -i but the regex for "all subdirectory files" is unclear. I'm also seeing .rvm/
trigger the item.
Any insight appreciated. Cheers
The restart process itself is being killed in my environment when the win32api console control event is triggered:
ctrl_c = Win32API.new('Kernel32', 'GenerateConsoleCtrlEvent', 'II', 'I')
...
ctrl_c.call(0, 0)
Commenting the call out allows the backup process.kill
to be used instead, and then works as expected.
Not sure what the fix for this should be, or if it's unique to my environment (ruby under mingw32).
There seems to be a problem specifying multiple directories to watch on OS X - only the last directory specified ends up being watched. This is not an issue on Windows. Not sure if this is a problem in listen itself or in the listen adapter for Darvin. No time to investigate this right now...
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.