simple node app that can be built from drone
This commit is contained in:
parent
46548d1afe
commit
040704ed2d
5 changed files with 41 additions and 0 deletions
6
.drone.yml
Normal file
6
.drone.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
image: node:slim
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- npm test
|
1
Dockerfile
Normal file
1
Dockerfile
Normal file
|
@ -0,0 +1 @@
|
||||||
|
FROM node:onbuild
|
5
index.js
Normal file
5
index.js
Normal 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
6
index.spec.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
const test = require('tape')
|
||||||
|
|
||||||
|
test('this always passes', t => {
|
||||||
|
t.pass()
|
||||||
|
t.end()
|
||||||
|
})
|
23
package.json
Normal file
23
package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue