Skip to content

Commit 2de28c8

Browse files
committed
chore: scaffold
1 parent a1d90d3 commit 2de28c8

File tree

7 files changed

+96
-0
lines changed

7 files changed

+96
-0
lines changed

.eslintrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "@hapi/hapi",
3+
4+
"parserOptions": {
5+
"ecmaVersion": 2019
6+
}
7+
}

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
**/node_modules
2+
**/package-lock.json
3+
**/npm-shrinkwrap.json
4+
5+
coverage.*
6+
*.log*
7+
test-results.xml
8+
9+
**/.DS_Store
10+
**/._*
11+
12+
**/*.pem
13+
14+
**/.vs
15+
**/.vscode
16+
**/.idea

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
language: node_js
2+
sudo: false
3+
4+
node_js:
5+
- "10"
6+
- "12"
7+
- "13"
8+
9+
cache:
10+
npm: false
11+
12+
install:
13+
- "npm install --ignore-scripts"
14+
- "npx allow-scripts"
15+
16+
#@todo uncomment before v1
17+
#jobs:
18+
# include:
19+
# - stage: release
20+
# if: branch = master AND type = push
21+
# node_js: "12"
22+
# deploy:
23+
# provider: "script"
24+
# skip_cleanup: true
25+
# script:
26+
# - "npx semantic-release"

lib/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
3+
module.exports = () => {
4+
5+
throw new Error('Not implemented');
6+
};

package.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "node-support",
3+
"version": "0.0.0-development",
4+
"description": "List the Node.js versions supported by the package/repository",
5+
"main": "lib/index.js",
6+
"scripts": {
7+
"test": "lab -a @hapi/code -L -t 100"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/pkgjs/node-support.git"
12+
},
13+
"author": "Dominykas Blyžė <[email protected]>",
14+
"license": "MIT",
15+
"bugs": {
16+
"url": "https://github.com/pkgjs/node-support/issues"
17+
},
18+
"homepage": "https://github.com/pkgjs/node-support#readme",
19+
"devDependencies": {
20+
"@hapi/code": "^7.0.0",
21+
"@hapi/lab": "^21.0.0",
22+
"allow-scripts": "^1.5.2",
23+
"semantic-release": "^15.14.0"
24+
}
25+
}

test/index.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict';
2+
3+
const NodeSupport = require('..');
4+
5+
6+
const { describe, it } = exports.lab = require('@hapi/lab').script();
7+
const { expect } = require('@hapi/code');
8+
9+
describe('node-support', () => {
10+
11+
it('is not implemented', () => {
12+
13+
expect(NodeSupport).to.throw('Not implemented');
14+
});
15+
});

0 commit comments

Comments
 (0)