-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(@aws-amplify/ui-components): Framework Bindings for Authen… (#4676)
* yarn add @stencil/{angular,react}-output-target + updated @stencil/core * Add reactOutputTarget to amplify-ui-react * Add template from https://github.com/ionic-team/stencil-ds-react-template * Update component definitions via stencil build * Remove --dev flag to trigger reactOutputTarget * Remove unused variable * stencil build * Initial build of @aws-amplify/ui-react * Remove @stencil/state-tunnel ionic-team/stencil-ds-output-targets#10 * Fix resolution of @aws-amplify/ui-components/loader * Working build of @aws-amplify/ui-react * Fix amplify-ui-react main/module paths * Add AmplifyAuthenticator stories * Don't build e2e/spec/stories * Initial @aws-amplify/ui-angular build * fix: Rename folders to match package name so yarn workspaces works yarnpkg/yarn#5225 (comment) * Update yarn.lock with @stencil/state-tunnel removed * Revert 0e5398b * Add @aws-amplify/ui-angular template https://github.com/ionic-team/stencil-ds-plugins-demo/blob/master/packages/component-library-angular/package.json * yarn workspace can't resolve "latest" if the package isn't published * Remove unused ValueAccessorConfig * Add @aws-amplify/ui-vue package * Revert "Add AmplifyAuthenticator stories" This reverts commit 08cbb08. * Clean up @aws-amplify/ui-react package.json * Clean up @aws-amplify/ui-vue package.json * Clean up @aws-amplify/ui-angular package.json * Update yarn.lock * Remove & ignore auto-generated files * Suppress auto-generated typings in diffs * Suppress auto-generated readmes in diffs * Remove parts of CRA-generated .gitignore * Remove yarn.lock from PR diffs * Update yarn.lock to match @stencil/core * Update build with updated @stencil/core * Add publicConfig to @aws-amplify/ui-* packages, per #4706
- Loading branch information
1 parent
1d568b6
commit 407089f
Showing
32 changed files
with
459 additions
and
69 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
**/*.d.ts linguist-generated=true | ||
yarn.lock linguist-generated=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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/directives/proxies.ts |
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,48 @@ | ||
{ | ||
"name": "@aws-amplify/ui-angular", | ||
"version": "0.0.1", | ||
"description": "Angular specific wrapper for @aws-amplify/ui-components", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/aws-amplify/amplify-js.git" | ||
}, | ||
"scripts": { | ||
"build": "npm run build.ng", | ||
"build.link": "npm run build && node scripts/link-copy.js", | ||
"build.fesm": "rollup --config ./scripts/rollup.config.js", | ||
"build.ng": "npm run build.es2015 && npm run build.es5", | ||
"build.es2015": "ngc -p tsconfig.json && rollup --config ./scripts/rollup.config.js", | ||
"build.es5": "ngc -p tsconfig.legacy.json && rollup --config ./scripts/rollup.config.legacy.js", | ||
"lint": "npm run lint.ts", | ||
"lint.ts": "tslint --project .", | ||
"lint.fix": "tslint --project . --fix", | ||
"prerelease": "npm run validate && np prerelease --yolo --any-branch --tag next", | ||
"test": "echo 'angular no tests yet'", | ||
"tsc": "tsc -p .", | ||
"validate": "npm i && npm run lint && npm run test && npm run build" | ||
}, | ||
"module": "dist/fesm5.js", | ||
"main": "dist/fesm5.js", | ||
"types": "dist/core.d.ts", | ||
"files": [ | ||
"dist/" | ||
], | ||
"dependencies": { | ||
"@aws-amplify/ui-components": "*", | ||
"tslib": "^1.9.3" | ||
}, | ||
"devDependencies": { | ||
"@angular/compiler-cli": "^7.2.1", | ||
"@angular/core": "^7.2.1", | ||
"rollup": "^1.1.2", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rxjs": "^6.2.0", | ||
"tsickle": "^0.34.0", | ||
"typescript": "3.2.4", | ||
"zone.js": "^0.8.28", | ||
"tslint": "^5.12.1" | ||
} | ||
} |
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,24 @@ | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
|
||
export default { | ||
input: 'build/es2015/core.js', | ||
output: { | ||
file: 'dist/fesm2015.js', | ||
format: 'es' | ||
}, | ||
external: (id) => { | ||
// inline @ionic/core deps | ||
if (id === '@ionic/core') { | ||
return false; | ||
} | ||
// anything else is external | ||
// Windows: C:\xxxxxx\xxx | ||
const colonPosition = 1; | ||
return !(id.startsWith('.') || id.startsWith('/') || id.charAt(colonPosition) === ':'); | ||
}, | ||
plugins: [ | ||
resolve({ | ||
module: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import config from './rollup.config'; | ||
|
||
const newConfig = { | ||
...config, | ||
input: 'build/es5/core.js', | ||
}; | ||
newConfig.output.file = 'dist/fesm5.js'; | ||
|
||
export { newConfig as default }; |
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,16 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { defineCustomElements } from '@aws-amplify/ui-components/loader'; | ||
|
||
import { AmplifyAuthenticator } from './directives/proxies'; | ||
|
||
defineCustomElements(window); | ||
|
||
const DECLARATIONS = [AmplifyAuthenticator]; | ||
|
||
@NgModule({ | ||
declarations: DECLARATIONS, | ||
exports: DECLARATIONS, | ||
imports: [], | ||
providers: [], | ||
}) | ||
export class AmplifyModule {} |
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,5 @@ | ||
// DIRECTIVES | ||
export * from './directives/proxies'; | ||
|
||
// PACKAGE MODULE | ||
export { AmplifyModule } from './amplify-module'; |
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,36 @@ | ||
{ | ||
"angularCompilerOptions": { | ||
"annotateForClosureCompiler": true, | ||
"strictMetadataEmit": true, | ||
"flatModuleOutFile": "core.js", | ||
"flatModuleId": "@ionic/angular", | ||
"skipTemplateCodegen": true, | ||
"fullTemplateTypeCheck": false | ||
}, | ||
"compilerOptions": { | ||
"alwaysStrict": true, | ||
"strict": true, | ||
"allowSyntheticDefaultImports": true, | ||
"allowUnreachableCode": false, | ||
"declaration": true, | ||
"declarationDir": "dist", | ||
"experimentalDecorators": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"lib": ["dom", "es2017"], | ||
"module": "es2015", | ||
"moduleResolution": "node", | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noUnusedLocals": false, | ||
"noUnusedParameters": true, | ||
"outDir": "build/es2015", | ||
"pretty": true, | ||
"removeComments": false, | ||
"importHelpers": true, | ||
"rootDir": "src", | ||
"strictPropertyInitialization": false, | ||
"target": "es2015" | ||
}, | ||
"exclude": ["node_modules"], | ||
"files": ["src/index.ts"] | ||
} |
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,8 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"declarationDir": "build/es5", | ||
"outDir": "build/es5" | ||
} | ||
} |
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 @@ | ||
src/components/**/readme.md linguist-generated=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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "amplify-ui-components-loader", | ||
"typings": "../dist/loader/index.d.ts", | ||
"module": "../dist/loader/index.mjs", | ||
"main": "../dist/loader/index.cjs.js", | ||
"node:main": "../dist/loader/node-main.js", | ||
"jsnext:main": "../dist/loader/index.es2017.mjs", | ||
"es2015": "../dist/loader/index.es2017.mjs", | ||
"es2017": "../dist/loader/index.es2017.mjs", | ||
"unpkg": "../dist/loader/cdn.js" | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
2 changes: 0 additions & 2 deletions
2
packages/amplify-ui-components/src/components/amplify-authenticator/readme.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
2 changes: 1 addition & 1 deletion
2
packages/amplify-ui-components/src/components/amplify-confirm-sign-in/readme.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/amplify-ui-components/src/components/amplify-examples/readme.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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
Oops, something went wrong.