-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
276 additions
and
272 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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
.DS_Store | ||
src | ||
coverage | ||
tests | ||
site | ||
node_modules | ||
node_modules-* | ||
|
||
/docs | ||
.nyc_output | ||
.babelrc | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.json | ||
.nyc_output | ||
.nycrc | ||
.travis.yml | ||
/build-page.sh | ||
circle.yml | ||
jsdoc.json | ||
webpack.config.js | ||
/webpack.config.js | ||
|
||
/docs | ||
/lib-test.js | ||
/packages | ||
/rollup.config.js | ||
/scripts | ||
/site | ||
/webpack.config.js | ||
|
||
circle.yml | ||
coverage | ||
jsdoc.json | ||
node_modules | ||
node_modules-* | ||
src | ||
tests | ||
webpack.config.js |
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
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
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,2 +1,11 @@ | ||
import Authenticator from './Authenticator'; | ||
|
||
/** | ||
* Instance of Authenticator | ||
* | ||
* Google Authenticator library | ||
* | ||
* @module otplib-authenticator | ||
* @since 3.0.0 | ||
*/ | ||
export default new Authenticator(); |
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const path = require('path'); | ||
const directory = require('./directory'); | ||
const packages = require('./packages'); | ||
|
||
function aliases() { | ||
return Object.keys(packages).reduce((accum, name) => { | ||
accum[name] = path.join(directory.SOURCE, name, 'index.js'); | ||
return accum; | ||
}, {}); | ||
} | ||
|
||
module.exports = aliases(); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/*eslint-disable no-console*/ | ||
const createModule = require('../createModule'); | ||
const pack = require('../pack'); | ||
const packages = require('../packages'); | ||
|
||
const PACKAGE_NAMES = Object.keys(packages); | ||
|
||
// CommonJS Packages | ||
PACKAGE_NAMES.forEach(name => { | ||
const pkgConfig = packages[name]; | ||
|
||
// Default derive filename from the package folder | ||
const filename = name.replace('otplib-', '') + '.js'; | ||
|
||
console.log('building...', filename); | ||
pack(createModule(name, pkgConfig, filename)); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Generate file dependants | ||
yarn run build:browser; | ||
yarn run build:docs; | ||
|
||
# Build within site directory | ||
cd site; | ||
yarn install; | ||
yarn run clean | ||
yarn run build; | ||
# yarn run deploy | ||
|
||
cd .. |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const pkg = require('../package.json'); | ||
|
||
function createBanner(name) { | ||
return `/** | ||
* ${name} | ||
* | ||
* @author Gerald Yeo | ||
* @version: ${pkg.version} | ||
* @license: MIT | ||
**/` | ||
} | ||
|
||
module.exports = createBanner; |
Oops, something went wrong.