Skip to content

Commit

Permalink
Add package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrea committed Dec 15, 2018
1 parent 1590733 commit a4b978f
Show file tree
Hide file tree
Showing 14 changed files with 6,862 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.coverage
.npmrc
.scannerwork
node_modules
npm-debug.log
.test
/.narval
8 changes: 8 additions & 0 deletions .narval.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
suites:
unit:
- name: unit
test:
specs: test/unit
coverage:
config:
dir: .coverage
36 changes: 36 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
sudo: required

env:
- DOCKER_COMPOSE_VERSION=1.19.0

language: node_js

node_js:
- "8.11.1"

services:
- docker

before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin

cache:
directories:
- "node_modules"
- "$HOME/.sonar/cache"

addons:
sonarcloud:
organization: "javierbrea"
token:
secure: "$SONAR_TOKEN"
# branch:
# name: "$TRAVIS_CURRENT_BRANCH"

script:
- npm test
- npm run coveralls
- sonar-scanner
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [unreleased]
### Added
### Changed
### Fixed
### Removed

## [1.0.0] - 2018-12-15
### Added
- First release
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Javier Brea

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 rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# contact-sensor-domapic-module

Domapic module for handling a contact sensor
3 changes: 3 additions & 0 deletions bin/domapic-contact-sensor
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

require('../lib/cli')
Empty file added lib/cli.js
Empty file.
Loading

0 comments on commit a4b978f

Please sign in to comment.