Skip to content

Commit

Permalink
auth0-js aot but repro
Browse files Browse the repository at this point in the history
  • Loading branch information
llwt committed May 12, 2017
1 parent f0e3bb4 commit c84612b
Show file tree
Hide file tree
Showing 5 changed files with 894 additions and 53 deletions.
2 changes: 1 addition & 1 deletion nativescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@
"webpack": "2.3.2",
"webpack-sources": "~0.2.3"
}
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"@angular/platform-server": "^4.0.0",
"@ngrx/store-devtools": "^3.2.2",
"@types/async": "^2.0.32",
"@types/auth0-js": "^8.3.0",
"@types/browser-sync": "^0.0.34",
"@types/express": "^4.0.33",
"@types/gulp": "^3.8.32",
Expand Down Expand Up @@ -184,6 +185,7 @@
"@ngx-translate/core": "^6.0.1",
"@ngx-translate/http-loader": "0.0.3",
"angulartics2": "^1.6.4",
"auth0-js": "^8.6.1",
"core-js": "^2.4.1",
"es-module-loader": "^1.0.0",
"intl": "^1.2.5",
Expand Down
10 changes: 10 additions & 0 deletions src/client/web.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { StoreModule } from '@ngrx/store';
import { EffectsModule } from '@ngrx/effects';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { TranslateLoader } from '@ngx-translate/core';
import { WebAuth } from 'auth0-js';

// app
import { APP_COMPONENTS, AppComponent } from './app/components/index';
Expand Down Expand Up @@ -55,6 +56,14 @@ export function win() {
export function cons() {
return console;
}

export function authHttp() {
return new WebAuth({
domain: 'foo',
clientID: 'bar',
});
}

export function consoleLogTarget(consoleService: ConsoleService) {
return new ConsoleTarget(consoleService, { minLogLevel: LogLevel.Debug });
}
Expand Down Expand Up @@ -93,6 +102,7 @@ if (String('<%= BUILD_TYPE %>') === 'dev') {
APP_COMPONENTS
],
providers: [
{ provide: WebAuth, useFactory: (authHttp) },
{
provide: APP_BASE_HREF,
useValue: '<%= APP_BASE %>'
Expand Down
7 changes: 7 additions & 0 deletions tools/config/seed-advanced.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ export class SeedAdvancedConfig extends SeedConfig {

// Advanced seed packages
let additionalPackages: ExtendPackages[] = [
{
name: 'auth0-js',
packageMeta: {
main: 'build/auth0.min.js',
defaultExtension: 'js'
}
},
{
name: 'lodash',
path: 'node_modules/lodash/lodash.js',
Expand Down

0 comments on commit c84612b

Please sign in to comment.