diff --git a/examples/angular/angular.json b/examples/angular/angular.json index df5601a9..51983092 100644 --- a/examples/angular/angular.json +++ b/examples/angular/angular.json @@ -2,7 +2,8 @@ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "cli": { - "packageManager": "yarn" + "packageManager": "yarn", + "analytics": false }, "newProjectRoot": "projects", "projects": { diff --git a/examples/angular/package.json b/examples/angular/package.json index 5fb0beac..f5199da2 100644 --- a/examples/angular/package.json +++ b/examples/angular/package.json @@ -35,6 +35,7 @@ "@testing-library/user-event": "^14.4.3", "@types/jest": "^28.1.6", "@types/node": "16.11.7", + "@types/testing-library__jest-dom": "^5.14.5", "jest": "^28.1.3", "jest-preview": "^0.2.8", "start-server-and-test": "^1.14.0", diff --git a/examples/angular/src/app/app.component.css b/examples/angular/src/app/app.component.css index 74b5e053..26c9d4e7 100644 --- a/examples/angular/src/app/app.component.css +++ b/examples/angular/src/app/app.component.css @@ -9,7 +9,7 @@ @media (prefers-reduced-motion: no-preference) { .App-logo { - animation: App-logo-spin infinite 20s linear; + animation: App-logo-spin infinite 1s linear; } } @@ -29,10 +29,13 @@ } @keyframes App-logo-spin { - from { - transform: rotate(0deg); + 0% { + transform: scale(1); } - to { - transform: rotate(360deg); + 50% { + transform: scale(1.1); + } + 100% { + transform: scale(1); } } diff --git a/examples/angular/src/app/app.component.ts b/examples/angular/src/app/app.component.ts index 0a5b43e0..c56162d5 100644 --- a/examples/angular/src/app/app.component.ts +++ b/examples/angular/src/app/app.component.ts @@ -17,7 +17,14 @@ export const styleUrls = [
logo2 -

Angular CLI Example

+

+ Angular CLI Example +

This text is styled by global configured SASS

diff --git a/examples/angular/src/assets/logo.svg b/examples/angular/src/assets/logo.svg index 9dfc1c05..96301efe 100644 --- a/examples/angular/src/assets/logo.svg +++ b/examples/angular/src/assets/logo.svg @@ -1 +1,16 @@ - \ No newline at end of file + + + + + + + + + + diff --git a/package.json b/package.json index 9d1b2100..a9f490de 100644 --- a/package.json +++ b/package.json @@ -93,6 +93,7 @@ "@types/react-dom": "^17.0.10", "@types/styled-components": "^5.1.24", "@types/svgo": "^2.6.3", + "@types/testing-library__jest-dom": "^5.14.5", "@vitejs/plugin-react": "^1.3.0", "animate-sass": "^0.8.2", "animate.css": "^4.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8e045e26..87627da6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,7 @@ specifiers: '@types/react-dom': ^17.0.10 '@types/styled-components': ^5.1.24 '@types/svgo': ^2.6.3 + '@types/testing-library__jest-dom': ^5.14.5 '@vitejs/plugin-react': ^1.3.0 animate-sass: ^0.8.2 animate.css: ^4.1.1 @@ -91,6 +92,7 @@ devDependencies: '@types/react-dom': 17.0.17 '@types/styled-components': 5.1.25 '@types/svgo': 2.6.3 + '@types/testing-library__jest-dom': 5.14.5 '@vitejs/plugin-react': 1.3.2 animate-sass: 0.8.2 animate.css: 4.1.1 diff --git a/website/docs/examples/angular.md b/website/docs/examples/angular.md new file mode 100644 index 00000000..e015f7fb --- /dev/null +++ b/website/docs/examples/angular.md @@ -0,0 +1,3 @@ +--- +sidebar_position: 7 +---