Skip to content

Commit

Permalink
Task: Add babel support
Browse files Browse the repository at this point in the history
  • Loading branch information
nspragg committed Apr 9, 2016
1 parent 5420a73 commit 2a0c7c3
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
node_modules
coverage
*.log
lib/
1 change: 1 addition & 0 deletions .npmignore
@@ -0,0 +1 @@
src
15 changes: 11 additions & 4 deletions package.json
Expand Up @@ -4,10 +4,11 @@
"description": "Fluent interface for finding files",
"main": "index.js",
"scripts": {
"test": "mocha",
"lint": "eslint .",
"test": "npm run compile && mocha --compilers js:babel-core/register",
"lint": "eslint ./src",
"coverage": "istanbul cover _mocha -- -R dot",
"posttest": "npm run lint"
"compile": "babel --presets es2015,stage-0 -d lib/ src/",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -37,8 +38,13 @@
},
"homepage": "https://github.com/nspragg/filehound",
"devDependencies": {
"babel-cli": "^6.1.18",
"babel-core": "^6.1.18",
"babel-preset-es2015": "^6.1.18",
"babel-preset-react": "^6.1.18",
"babel-preset-stage-0": "^6.1.18",
"coveralls": "^2.11.8",
"eslint": "^2.2.0",
"eslint": "^2.7.0",
"istanbul": "^0.4.1",
"mocha": "^2.1.0"
},
Expand Down Expand Up @@ -74,6 +80,7 @@
}
},
"dependencies": {
"babel-polyfill": "^6.1.18",
"bluebird": "^3.3.3",
"fs-promise": "^0.4.1",
"lodash": "^4.6.1",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test/filehound.js
Expand Up @@ -8,8 +8,8 @@ const nestedFiles = qualifyNames(['/nested/c.json', 'nested/d.json', '/nested/my
const textFiles = qualifyNames(['/justFiles/dummy.txt']);
const matchFiles = qualifyNames(['/mixed/aabbcc.json', '/mixed/ab.json']);

const files = require('../lib/files');
const FileHound = require('../lib/filehound');
const files = require('../src/files');
const FileHound = require('../src/filehound');

function getAbsolutePath(file) {
return path.join(__dirname + '/fixtures/', file);
Expand Down
2 changes: 1 addition & 1 deletion test/files.js
@@ -1,7 +1,7 @@
'use strict';

const assert = require('assert');
const files = require('../lib/files');
const files = require('../src/files');

describe('Files', () => {
describe('.notSubDirectory(subDirs)', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/value-compare.js
Expand Up @@ -2,7 +2,7 @@

const assert = require('assert');

const ValueCompare = require('../lib/value-compare');
const ValueCompare = require('../src/value-compare');

describe('ValueCompare', () => {
it('returns true for matching a expression', () => {
Expand Down

0 comments on commit 2a0c7c3

Please sign in to comment.