forked from drod21/redux-oidc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separated test build from publish build
- Loading branch information
Showing
16 changed files
with
70 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"presets": ["react", "es2015", "stage-0"], | ||
"plugins": ["rewire"] | ||
"presets": ["react", "es2015", "stage-0"] | ||
} |
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 +1,2 @@ | ||
node_modules/ | ||
.tmp/ |
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -1,19 +1,27 @@ | ||
import createTokenMiddleware from './tokenMiddleware'; | ||
import Callback from './CallbackComponent'; | ||
import helpers from './helpers'; | ||
import reducerImmutable from './reducer/reducer-immutable'; | ||
import standardReducer from './reducer/reducer'; | ||
import { USER_EXPIRED, REDIRECT_SUCCESS, STORAGE_KEY } from './constants'; | ||
import createOidcMiddleware from './oidcMiddleware'; | ||
|
||
// redux-oidc components | ||
export const createUserManager = require('./helpers/createUserManager').default; | ||
export const processSilentRenew = require('./helpers/processSilentRenew').default; | ||
export const CallbackComponent = require('./CallbackComponent').default; | ||
export const immutableReducer = require('./reducer/reducer-immutable').default; | ||
export const reducer = require('./reducer/reducer').default; | ||
export const constants = { | ||
USER_EXPIRED, | ||
REDIRECT_SUCCESS, | ||
STORAGE_KEY | ||
}; | ||
export const OidcProvider = require('./OidcProvider').default; | ||
|
||
export default createTokenMiddleware; | ||
// constants | ||
export const USER_EXPIRED = require('./constants').USER_EXPIRED; | ||
export const REDIRECT_SUCCESS = require('./constants').REDIRECT_SUCCESS; | ||
export const USER_FOUND = require('./constants').USER_FOUND; | ||
export const SILENT_RENEW_ERROR = require('./constants').SILENT_RENEW_ERROR; | ||
export const SESSION_TERMINATED = require('./constants').SESSION_TERMINATED; | ||
export const USER_EXPIRING = require('./constants').USER_EXPIRING; | ||
|
||
// actions | ||
export const userExpired = require('./actions').userExpired; | ||
export const redirectSuccess = require('./actions').redirectSuccess; | ||
export const userFound = require('./actions').userFound; | ||
export const silentRenewError = require('./actions').silentRenewError; | ||
export const sessionTerminated = require('./actions').sessionTerminated; | ||
export const userExpiring = require('./actions').userExpiring; | ||
|
||
export default createOidcMiddleware; |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import '../setup'; | ||
import expect from 'expect'; | ||
import sinon from 'sinon'; | ||
import { fromJS } from 'immutable'; | ||
|
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,19 @@ | ||
var nodeExternals = require('webpack-node-externals'); | ||
var webpack = require('webpack'); | ||
|
||
module.exports = { | ||
target: 'node', // in order to ignore built-in modules like path, fs, etc. | ||
externals: nodeExternals(), | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.js$/, | ||
loader: 'babel?plugins=rewire', | ||
exclude: /node_modules/ | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
], | ||
devtool: 'inline-source-map' | ||
}; |
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