Created
April 4, 2020 12:50
-
-
Save juranki/46000110172a4b246b0b9cd2fb502ac4 to your computer and use it in GitHub Desktop.
stenciljs + amplify auth
This file contains hidden or 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
{ | |
"name": "test-amplify", | |
"private": true, | |
"version": "0.0.1", | |
"description": "Stencil App Starter", | |
"scripts": { | |
"build": "stencil build", | |
"start": "stencil build --dev --watch --serve", | |
"test": "stencil test --spec --e2e", | |
"test.watch": "stencil test --spec --e2e --watchAll", | |
"generate": "stencil generate" | |
}, | |
"devDependencies": { | |
"@stencil/core": "^1.12.2", | |
"@stencil/router": "^1.0.1", | |
"rollup-plugin-node-polyfills": "^0.2.1" | |
}, | |
"license": "MIT", | |
"dependencies": { | |
"@aws-amplify/auth": "^3.2.1" | |
} | |
} |
This file contains hidden or 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
import { Config } from '@stencil/core'; | |
// https://stenciljs.com/docs/config | |
export const config: Config = { | |
globalStyle: 'src/global/app.css', | |
globalScript: 'src/global/app.ts', | |
taskQueue: 'async', | |
outputTargets: [ | |
{ | |
type: 'www', | |
// comment the following line to disable service workers in production | |
serviceWorker: null, | |
baseUrl: 'https://myapp.local/' | |
} | |
], | |
nodeResolve: { | |
browser: true, | |
preferBuiltins: true | |
}, | |
commonjs: { | |
namedExports: { | |
'node_modules/@aws-crypto/sha256-js/build/index.js': ['Sha256'], | |
'node_modules/@aws-sdk/fetch-http-handler/build/index.js': ['FetchHttpHandler'], | |
'node_modules/@aws-crypto/sha256-browser/build/index.js': ['Sha256'], | |
'node_modules/@aws-sdk/util-uri-escape/build/index.js': ['escapeUri'], | |
'node_modules/@aws-sdk/config-resolver/build/index.js': ['resolveRegionConfig', 'resolveEndpointsConfig'], | |
'node_modules/@aws-sdk/middleware-signing/build/index.js': ['resolveAwsAuthConfig', 'getAwsAuthPlugin'], | |
'node_modules/@aws-sdk/middleware-retry/build/index.js': ['getRetryPlugin', 'resolveRetryConfig'], | |
'node_modules/@aws-sdk/middleware-user-agent/build/index.js': ['getUserAgentPlugin', 'resolveUserAgentConfig'], | |
'node_modules/@aws-sdk/smithy-client/build/index.js': ['Client', 'Command', 'isa'], | |
'node_modules/@aws-sdk/protocol-http/build/index.js': ['HttpRequest'], | |
'node_modules/@aws-sdk/middleware-serde/build/index.js': ['getSerdePlugin'], | |
'node_modules/@aws-sdk/property-provider/build/index.js': ['ProviderError'], | |
'node_modules/js-cookie/src/js.cookie.js': ['set', 'get', 'remove'] | |
} | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment