-
Notifications
You must be signed in to change notification settings - Fork 53
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 #387 from auth0/authz-node18-dev
Authz: node18 re-write
- Loading branch information
Showing
135 changed files
with
38,048 additions
and
25,950 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,44 +1,5 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env", | ||
"@babel/preset-react" | ||
], | ||
"env": { | ||
"development": { | ||
"presets": [] | ||
}, | ||
"production": { | ||
"presets": [ | ||
"minify" | ||
] | ||
} | ||
}, | ||
"plugins": [ | ||
"@babel/plugin-syntax-dynamic-import", | ||
"@babel/plugin-syntax-import-meta", | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-json-strings", | ||
[ | ||
"@babel/plugin-proposal-decorators", | ||
{ | ||
"legacy": true | ||
} | ||
], | ||
"@babel/plugin-proposal-function-sent", | ||
"@babel/plugin-proposal-export-namespace-from", | ||
"@babel/plugin-proposal-numeric-separator", | ||
"@babel/plugin-proposal-throw-expressions", | ||
"@babel/plugin-proposal-export-default-from", | ||
"@babel/plugin-proposal-logical-assignment-operators", | ||
"@babel/plugin-proposal-optional-chaining", | ||
[ | ||
"@babel/plugin-proposal-pipeline-operator", | ||
{ | ||
"proposal": "minimal" | ||
} | ||
], | ||
"@babel/plugin-proposal-nullish-coalescing-operator", | ||
"@babel/plugin-proposal-do-expressions", | ||
"@babel/plugin-proposal-function-bind" | ||
] | ||
"presets": ["@babel/preset-env", ["@babel/preset-react", {"runtime": "automatic"}]], | ||
"plugins": ["@babel/plugin-proposal-export-default-from"], | ||
"sourceMaps": true | ||
} |
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 +1 @@ | ||
12 | ||
18.16 |
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,115 +1,30 @@ | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
const poststylus = require('poststylus'); | ||
const autoprefixer = require('autoprefixer'); | ||
const postcssReporter = require('postcss-reporter'); | ||
|
||
module.exports = { | ||
devtool: 'cheap-module-source-map', | ||
devtool: 'source-map', | ||
stats: true, | ||
|
||
// The application and the vendor libraries. | ||
entry: { | ||
app: path.resolve(__dirname, '../../client/app.jsx'), | ||
vendors: [ | ||
'@babel/polyfill', | ||
'axios', | ||
'bluebird', | ||
'classnames', | ||
'history', | ||
'immutable', | ||
'jwt-decode', | ||
'lodash', | ||
'moment', | ||
'react', | ||
'react-bootstrap', | ||
'react-dom', | ||
'react-loader-advanced', | ||
'react-router', | ||
'react-redux', | ||
'redux', | ||
'redux-form', | ||
'redux-thunk', | ||
'redux-logger', | ||
'redux-promise-middleware', | ||
'redux-simple-router' | ||
] | ||
app: path.resolve(__dirname, '../../client/app.jsx') | ||
}, | ||
|
||
target: 'web', | ||
|
||
// Output directory. | ||
output: { | ||
path: path.join(__dirname, '../../dist'), | ||
filename: 'bundle.js', | ||
publicPath: '/app/' | ||
}, | ||
|
||
plugins: [], | ||
|
||
// Module configuration. | ||
resolve: { | ||
alias: { | ||
// React: require('react') | ||
}, | ||
modules: [ 'node_modules' ], | ||
extensions: [ '.json', '.js', '.jsx' ] | ||
}, | ||
|
||
// Load all modules. | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.jsx?$/, | ||
use: [ { loader: 'babel-loader' } ], | ||
exclude: path.join(__dirname, '../../node_modules/') | ||
}, | ||
{ | ||
test: /\.(png|ttf|svg|jpg|gif)/, | ||
loader: 'url-loader?limit=8192' | ||
}, | ||
{ | ||
test: /\.(woff|woff2|eot)/, | ||
loader: 'url-loader?limit=100000' | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: [ 'style-loader', 'css-loader' ] | ||
}, | ||
{ | ||
test: /\.styl$/, | ||
use: [ 'style-loader', 'css-loader', 'stylus-loader' ] | ||
} | ||
] | ||
}, | ||
|
||
// Default plugins. | ||
plugins: [ | ||
new webpack.NoEmitOnErrorsPlugin(), | ||
new webpack.ProvidePlugin({ | ||
React: 'react', | ||
Promise: 'imports-loader?this=>global!exports-loader?global.Promise!bluebird' | ||
}), | ||
new webpack.DefinePlugin({ | ||
__DEV__: JSON.stringify(process.env.NODE_ENV !== 'production'), | ||
'process.env': { | ||
BROWSER: JSON.stringify(true), | ||
NODE_ENV: JSON.stringify(process.env.NODE_ENV || 'development'), | ||
WARN_DB_SIZE: 409600, | ||
MAX_MULTISELECT_USERS: 5, | ||
MULTISELECT_DEBOUNCE_MS: 250, | ||
PER_PAGE: 10 | ||
}, | ||
__CLIENT__: JSON.stringify(true), | ||
__SERVER__: JSON.stringify(false) | ||
}), | ||
new webpack.LoaderOptionsPlugin({ | ||
options: { | ||
stylus: { | ||
use: [ | ||
poststylus([ | ||
autoprefixer({ browsers: [ 'last 2 versions', 'IE > 8' ] }), | ||
postcssReporter({ clearMessages: true }) | ||
]) | ||
] | ||
} | ||
} | ||
}) | ||
] | ||
} | ||
}; |
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
Oops, something went wrong.