Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Open
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
43 changes: 0 additions & 43 deletions .circleci/config.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI
on: push
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Set cpp linters
run: |
ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"
ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"
- name: Build from source
run: npm install --build-from-source
- name: lint js
run: npm run lint:js
- name: format c++
run: npm run format && git diff --exit-code -- src/ test/
- name: Test
run: npm run test
- name: deploy on tag
run: git describe --tags --exact >/dev/null 2>&1 && npm run pre-build -- -u ${NODE_PRE_GYP_GITHUB_TOKEN} || true
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# Atom Filesystem Watcher

[![Greenkeeper badge](https://badges.greenkeeper.io/atom/watcher.svg)](https://greenkeeper.io/)

| Linux | Windows | MacOS |
|:------|:-------:|------:|
| [![Build Status](https://travis-ci.org/atom/watcher.svg?branch=master)](https://travis-ci.org/atom/watcher) | [![Build status](https://ci.appveyor.com/api/projects/status/xgm4eg6hbj53cpkl/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/watcher/branch/master) | [![CircleCI](https://circleci.com/gh/atom/watcher/tree/master.svg?style=svg)](https://circleci.com/gh/atom/watcher/tree/master) |

[![CI](https://github.com/atom/watcher/actions/workflows/ci.yml/badge.svg)](https://github.com/atom/watcher/actions/workflows/ci.yml)
**@atom/watcher** is a filesystem watching library for Node.js built to power [Atom](https://atom.io). It prioritizes:

* **High fidelity** to the native filesystem watching system calls provided by each operating system.
Expand Down
36 changes: 0 additions & 36 deletions appveyor.yml

This file was deleted.

14 changes: 8 additions & 6 deletions src/hub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,14 @@ void Hub::handle_events_from(Thread &thread)
v8::Local<v8::Context> context = Nan::GetCurrentContext();
Local<Object> js_event = Nan::New<Object>();
js_event->Set(context,
Nan::New<String>("action").ToLocalChecked(), Nan::New<Number>(static_cast<int>(fs->get_filesystem_action())));
js_event->Set(context,
Nan::New<String>("kind").ToLocalChecked(), Nan::New<Number>(static_cast<int>(fs->get_entry_kind())));
js_event->Set(context,
Nan::New<String>("oldPath").ToLocalChecked(), Nan::New<String>(fs->get_old_path()).ToLocalChecked());
js_event->Set(context, Nan::New<String>("path").ToLocalChecked(), Nan::New<String>(fs->get_path()).ToLocalChecked());
Nan::New<String>("action").ToLocalChecked(),
Nan::New<Number>(static_cast<int>(fs->get_filesystem_action())));
js_event->Set(
context, Nan::New<String>("kind").ToLocalChecked(), Nan::New<Number>(static_cast<int>(fs->get_entry_kind())));
js_event->Set(
context, Nan::New<String>("oldPath").ToLocalChecked(), Nan::New<String>(fs->get_old_path()).ToLocalChecked());
js_event->Set(
context, Nan::New<String>("path").ToLocalChecked(), Nan::New<String>(fs->get_path()).ToLocalChecked());

to_deliver[channel_id].push_back(js_event);
continue;
Expand Down