Skip to content

Commit

Permalink
Project and test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
trygvea committed Oct 20, 2016
1 parent d480e6d commit 47ea966
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
5 changes: 5 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"esversion": 6,
//"lastsemic": true,
"asi": true // ignore missing semicolon
}
39 changes: 39 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "funk",
"version": "0.0.1",
"description": "A simple functional library",
"main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "./node_modules/mocha/bin/mocha --compilers js:babel-core/register --recursive",
"test:watch": "npm run test -- --watch"
},
"repository": {
"type": "git",
"url": "https://github.com/trygvea/funk.git"
},
"babel": {
"presets": [
"es2015",
"stage-2",
"stage-2"
]
},
"keywords": [],
"author": "Trygve Amundsen <[email protected]>",
"license": "MIT",
"devDependencies": {
"babel": "^6.5.2",
"babel-cli": "^6.16.0",
"babel-core": "^6.17.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-stage-2": "^6.17.0",
"babel-preset-stage-3": "^6.17.0",
"chai": "^3.5.0",
"jshint": "^2.9.3",
"mocha": "^3.1.2"
},
"dependencies": {}
}
7 changes: 7 additions & 0 deletions test/sampleTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { expect } from 'chai'

describe('Project setup', () => {
it('should succed if project setup ok', () => {
expect(40+2).to.equal(42);
});
});

0 comments on commit 47ea966

Please sign in to comment.