Skip to content

Commit 3275a92

Browse files
author
Hans Kristian Flaatten
committed
chore(package): add package support files
0 parents  commit 3275a92

File tree

5 files changed

+149
-0
lines changed

5 files changed

+149
-0
lines changed

.eslintrc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# vi:syntax=json
2+
{
3+
"extends": "airbnb-base",
4+
"env": {
5+
"mocha": true,
6+
"node": true
7+
},
8+
"parserOptions": {
9+
"ecmaVersion": 6,
10+
"sourceType": "script",
11+
"ecmaFeatures": {
12+
"modules": false
13+
}
14+
},
15+
"rules": {
16+
"strict": [2, "global"],
17+
"global-require": [0],
18+
"no-underscore-dangle": [2, { "allow": ["_id"] }]
19+
}
20+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Den Norske Turistforening (DNT), Hans Kristian Flaatten
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# @turbasen/test-data
2+
3+
[![Build status](https://app.wercker.com/status/9a6200203fe9b7adc707758bf6b83adc/s "wercker status")](https://app.wercker.com/project/bykey/9a6200203fe9b7adc707758bf6b83adc)
4+
[![Codacy grade](https://img.shields.io/codacy/grade/5a6982cb37fe4f669a94786d8418854d.svg "Codacy grade")](https://www.codacy.com/app/Turbasen/test-data)
5+
[![Codacy coverage](https://img.shields.io/codacy/coverage/5a6982cb37fe4f669a94786d8418854d.svg "Codacy coverage")](https://www.codacy.com/app/Turbasen/test-data)
6+
[![NPM downloads](https://img.shields.io/npm/dm/@turbasen/test-data.svg "NPM downloads")](https://www.npmjs.com/package/@turbasen/test-data)
7+
[![NPM version](https://img.shields.io/npm/v/@turbasen/test-data.svg "NPM version")](https://www.npmjs.com/package/@turbasen/test-data)
8+
[![Node version](https://img.shields.io/node/v/@turbasen/test-data.svg "Node version")](https://www.npmjs.com/package/@turbasen/test-data)
9+
[![Dependency status](https://img.shields.io/david/Turbasen/test-data.svg "Dependency status")](https://david-dm.org/Turbasen/test-data)
10+
11+
Test data for internal Nasjonal Turbase API development.
12+
13+
## Getting started
14+
15+
Download [Docker for Mac or Windows](https://www.docker.com/products/docker).
16+
17+
Run in this directory:
18+
19+
```
20+
$ docker-compose up
21+
```
22+
23+
Docker is now watching for changes and will run the test suite automatically.
24+
25+
## [MIT lisenced](https://github.com/Turbasen/test-data/blob/master/LICENSE)

docker-compose.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: '2'
2+
3+
services:
4+
node:
5+
image: node:argon
6+
working_dir: /usr/src/app
7+
volumes:
8+
- .:/usr/src/app
9+
environment:
10+
- NODE_ENV=development
11+
- NPM_CONFIG_LOGLEVEL=silent
12+
- NPM_CONFIG_PROGRESS=false
13+
- NPM_CONFIG_SPIN=false
14+
command: npm run test:watch

wercker.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
box: node:argon
2+
3+
build:
4+
services:
5+
- mongo:3.0
6+
- redis:3
7+
8+
steps:
9+
- script:
10+
name: wait for MongoDB to start
11+
code: |
12+
apt-get update --no-install-recommends -y
13+
apt-get install --no-install-recommends -y netcat
14+
while ! nc -q 1 $MONGO_PORT_27017_TCP_ADDR $MONGO_PORT_27017_TCP_PORT </dev/null; do sleep 3; done
15+
16+
- script:
17+
name: echo nodejs information
18+
code: |
19+
echo "node version $(node -v) running"
20+
echo "npm version $(npm -v) running"
21+
22+
- npm-install
23+
24+
- script:
25+
name: lint
26+
code: npm run lint
27+
28+
- npm-test
29+
30+
- script:
31+
name: test coverage
32+
code: |
33+
npm run cover
34+
cat ./coverage/lcov.info | npm run codacy-coverage
35+
36+
- script:
37+
name: node security project
38+
code: |
39+
npm run nsp
40+
41+
after-steps:
42+
- turistforeningen/slack-notifier:
43+
url: $SLACK_WEBHOOK_URL
44+
45+
npm:
46+
steps:
47+
# Rebuild node_modules to fix broken symlinks
48+
# https://github.com/wercker/docs/issues/310
49+
- script:
50+
name: npm rebuild
51+
code: npm rebuild
52+
53+
- script:
54+
name: semantic release pre
55+
code: npm run semantic-release -- pre
56+
57+
- turistforeningen/npm-publish
58+
59+
- script:
60+
name: semantic release post
61+
code: npm run semantic-release -- post
62+
63+
- script:
64+
name: greenkeeper postpublish
65+
code: npm run greenkeeper-postpublish
66+
67+
after-steps:
68+
- turistforeningen/slack-notifier:
69+
url: $SLACK_WEBHOOK_URL

0 commit comments

Comments
 (0)