simple node app that can be built from drone

This commit is contained in:
Uldis Sturms 2017-01-13 23:01:33 +00:00
parent 46548d1afe
commit 040704ed2d
5 changed files with 41 additions and 0 deletions

6
.drone.yml Normal file
View file

@ -0,0 +1,6 @@
pipeline:
build:
image: node:slim
commands:
- npm install
- npm test

1
Dockerfile Normal file
View file

@ -0,0 +1 @@
FROM node:onbuild

5
index.js Normal file
View file

@ -0,0 +1,5 @@
console.log('=========================================')
console.log('starting...')
console.log('running nodejs built by drone...')
console.log('done...')
console.log('=========================================')

6
index.spec.js Normal file
View file

@ -0,0 +1,6 @@
const test = require('tape')
test('this always passes', t => {
t.pass()
t.end()
})

23
package.json Normal file
View file

@ -0,0 +1,23 @@
{
"name": "drone-nodejs-spike",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "tape *.spec.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/uldissturms/drone-nodejs-spike.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/uldissturms/drone-nodejs-spike/issues"
},
"homepage": "https://github.com/uldissturms/drone-nodejs-spike#readme",
"devDependencies": {
"tape": "^4.6.3"
}
}