Skip to content

Commit

Permalink
feat: initial scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
minijus committed Mar 20, 2019
1 parent 6b2fe5b commit 1647cb9
Show file tree
Hide file tree
Showing 6 changed files with 4,531 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ typings/

# next.js build output
.next

#IDE
.idea
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: node_js
node_js:
- lts/*
cache: npm
branches:
only:
- master
script:
- npm run test
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const fs = require("fs");

const VERSION = JSON.parse(fs.readFileSync("./package.json", "utf8")).version;
module.exports = {
version: VERSION
};
5 changes: 5 additions & 0 deletions index.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { version } = require("./index");

test("version is 1.0.0", () => {
expect(version).toBe("1.0.0");
});
Loading

0 comments on commit 1647cb9

Please sign in to comment.