Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vagrant
node_modules
build
.lock-*
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010 Camilo Aguilar. All rights reserved.
# Copyright 2015 Camilo Aguilar. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
Expand Down
24 changes: 24 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
$script = <<SCRIPT
sudo apt-get install -y build-essential
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
# curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -
# curl -sL https://deb.nodesource.com/setup_iojs_1.x | sudo bash -
sudo apt-get install -y nodejs
# sudo apt-get install -y iojs
sudo npm install -g node-gyp
SCRIPT

Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = false

config.vm.hostname = "inotify.local"

config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = 1024
vb.cpus = 1
end

config.vm.provision "shell", inline: $script
end
21 changes: 12 additions & 9 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
'targets': [
{
'target_name': 'inotify',
'sources': [
'src/bindings.cc',
'src/node_inotify.cc'
],
}
]
'targets': [
{
'target_name': 'inotify',
'sources': [
'src/bindings.cc',
'src/node_inotify.cc'
],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
]
}
]
}
38 changes: 25 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
{ "name" : "inotify",
"version": "1.2.1",
"author": "Camilo Aguilar <[email protected]>",
"email": "[email protected]",
"keywords": ["inotify", "watch", "monitor", "watch files", "watch directories"],
"description" : "inotify bindings for v8 javascript engine",
"repository": {
"type": "git",
"url": "http://github.com/c4milo/node-inotify"
},
"engines": {"node": ">=0.8"},
"main" : "inotify"
{
"name": "inotify",
"version": "1.3.0",
"author": "Camilo Aguilar <[email protected]>",
"email": "[email protected]",
"keywords": [
"inotify",
"watch",
"monitor",
"watch files",
"watch directories"
],
"license": "MIT",
"description": "inotify bindings for v8 javascript engine",
"repository": {
"type": "git",
"url": "http://github.com/c4milo/node-inotify"
},
"engines": {
"node": ">=0.8"
},
"main": "inotify",
"dependencies": {
"nan": "^1.8.4"
}
}

Loading