This repository has been archived by the owner on Jul 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from Financial-Times/make-npm-packagable
Make npm packagable
- Loading branch information
Showing
5 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,3 @@ unit-test: | |
test: | ||
make verify | ||
make unit-test | ||
# make a11y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
'use strict'; | ||
|
||
require('dotenv').config({silent: true}); | ||
|
||
const fs = require('fs'); | ||
const paths = [ | ||
`${__dirname}/lib` | ||
]; | ||
|
||
paths.forEach(path => { | ||
fs.readdirSync(path).forEach(file => { | ||
if (file.indexOf('.js') > 0) { | ||
module.exports[file.replace(/\.js/, '')] = require(`${path}/${file}`); | ||
} | ||
}); | ||
}); | ||
module.exports = { | ||
accessLicenceClient: require('./lib/accessLicenceClient'), | ||
acquisitionCtxClient: require('./lib/acquisitionCtxClient'), | ||
clientErrors: require('./lib/clientErrors'), | ||
elasticSearchClient: require('./lib/elasticSearchClient'), | ||
facetsClient: require('./lib/facetsClient'), | ||
huiClient: require('./lib/huiClient'), | ||
kinesisClient: require('./lib/kinesisClient'), | ||
licenceDataClient: require('./lib/licenceDataClient'), | ||
myFTClient: require('./lib/myFTClient'), | ||
sessionClient: require('./lib/sessionClient'), | ||
syncUserFollows: require('./lib/syncUserFollows'), | ||
userProfileClient: require('./lib/userProfileClient'), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters