Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Dependency update (#177)
Browse files Browse the repository at this point in the history
* Ignore .DS_Store

* Dependency update

* Update dependencies: webpack (4) and auth0.js 9.16.3

* Use newer docker image for build

* Dependency update
  • Loading branch information
Steve Hobbs authored Aug 25, 2021
1 parent d7ba66b commit c10a44a
Show file tree
Hide file tree
Showing 9 changed files with 39,469 additions and 1,217 deletions.
18 changes: 9 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:lts-browsers
environment:
LANG: en_US.UTF-8
LANG: en_US.UTF-8
steps:
- checkout
- run:
- run:
name: Update Yarn
command: 'sudo npm update -g yarn'
- restore-cache:
name: Restore Yarn Package Cache
keys:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
Expand All @@ -22,17 +22,17 @@ jobs:
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run:
- run:
name: Build
command: yarn run build
- run:
- run:
name: Lint
command: yarn run lint
- run:
- run:
name: Run Tests
command: yarn run ci:test
- run:
- run:
name: Generate Coverage
command: yarn run ci:coverage
- store_artifacts:
path: dist
path: dist
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ out/
coverage/
test-results.xml
build
dist
dist
.DS_Store
37,694 changes: 37,691 additions & 3 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Auth0",
"license": "MIT",
"dependencies": {
"auth0-js": "^9.13.2",
"auth0-js": "^9.16.3",
"jwt-decode": "^2.1.0"
},
"devDependencies": {
Expand Down
68 changes: 34 additions & 34 deletions example/wkwebview/package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{
"name": "com.auth0samplescordova.wkwebview",
"displayName": "HelloCordova",
"version": "1.0.0",
"description": "A sample Apache Cordova application that responds to the deviceready event.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"name": "com.auth0samplescordova.wkwebview",
"displayName": "HelloCordova",
"version": "1.0.0",
"description": "A sample Apache Cordova application that responds to the deviceready event.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Apache Cordova Team",
"license": "Apache-2.0",
"dependencies": {
"cordova-ios": "^5.1.1",
"cordova-plugin-customurlscheme": "^5.0.2",
"cordova-plugin-inappbrowser": "^3.2.0",
"cordova-plugin-ionic-webview": "^4.2.1",
"cordova-plugin-safariviewcontroller": "^1.6.0",
"cordova-plugin-whitelist": "^1.3.5"
},
"cordova": {
"plugins": {
"cordova-plugin-inappbrowser": {},
"cordova-plugin-safariviewcontroller": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-customurlscheme": {
"URL_SCHEME": "com.auth0samplescordova.wkwebview"
},
"cordova-plugin-ionic-webview": {}
},
"author": "Apache Cordova Team",
"license": "Apache-2.0",
"dependencies": {
"cordova-ios": "^5.1.1",
"cordova-plugin-customurlscheme": "^5.0.2",
"cordova-plugin-inappbrowser": "^3.2.0",
"cordova-plugin-ionic-webview": "^4.2.1",
"cordova-plugin-safariviewcontroller": "^1.6.0",
"cordova-plugin-whitelist": "^1.3.4"
},
"cordova": {
"plugins": {
"cordova-plugin-inappbrowser": {},
"cordova-plugin-safariviewcontroller": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-customurlscheme": {
"URL_SCHEME": "com.auth0samplescordova.wkwebview"
},
"cordova-plugin-ionic-webview": {}
},
"platforms": [
"ios"
]
},
"devDependencies": {
"cordova": "^9.0.0"
}
"platforms": [
"ios"
]
},
"devDependencies": {
"cordova": "^9.0.0"
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Auth0 integration for Cordova applications",
"main": "src/index.js",
"scripts": {
"build": "webpack -p --config webpack.config.js",
"build": "webpack --config webpack.config.js",
"lint": "eslint ./src",
"jsdocs": "LIB_VERSION=$(node -pe \"require('./package.json').version\");jsdoc --configure .jsdoc.json --verbose;rm -Rf docs/;mv out/@auth0/cordova/$LIB_VERSION/ docs",
"ci:test": "istanbul cover _mocha --report lcovonly -R test/**/* -- -R mocha-multi --reporter-options spec=-,mocha-junit-reporter=-",
Expand Down Expand Up @@ -33,7 +33,7 @@
},
"homepage": "https://github.com/auth0/auth0-cordova#readme",
"dependencies": {
"auth0-js": "^9.12.2",
"auth0-js": "^9.16.3",
"url-parse": "^1.5.2"
},
"devDependencies": {
Expand All @@ -52,7 +52,8 @@
"mocha": "^6.2.1",
"mocha-junit-reporter": "^1.23.1",
"mocha-multi": "^1.1.3",
"webpack": "^2.4.1"
"webpack": "^4.46.0",
"webpack-cli": "^4.8.0"
},
"prettier": {
"singleQuote": true
Expand Down
25 changes: 15 additions & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,32 @@ const path = require('path');
const webpack = require('webpack');

const config = {

context: __dirname,

mode: 'production',
entry: {
'index.js':'./src/index.js',
'index.js': './src/index.js',
},

output: {
path: path.resolve(__dirname, './dist'),
filename: '[name]',
libraryTarget: 'umd',
library: 'PKCEClient'
library: 'PKCEClient',
},

resolve: {
alias: {
'bn.js': path.join(__dirname, 'node_modules/bn.js/lib/bn.js'),
},
},

devtool: 'source-map',

plugins: [
new webpack.ProgressPlugin((prog) => {
if(prog === 0) console.log("[webpack]: Bundle is now invalid.");
if(prog === 1) console.log("[webpack]: Bundle is now valid.");
})
]
}
module.exports = config;
if (prog === 0) console.log('[webpack]: Bundle is now invalid.');
if (prog === 1) console.log('[webpack]: Bundle is now valid.');
}),
],
};
module.exports = config;
Loading

0 comments on commit c10a44a

Please sign in to comment.