-
Notifications
You must be signed in to change notification settings - Fork 1
[angular-mercury] Add Angular with Mercury integration example
#17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files. | ||
|
|
||
| # Compiled output | ||
| /dist | ||
| /tmp | ||
| /out-tsc | ||
| /bazel-out | ||
|
|
||
| # Node | ||
| /node_modules | ||
| npm-debug.log | ||
| yarn-error.log | ||
|
|
||
| # IDEs and editors | ||
| .idea/ | ||
| .project | ||
| .classpath | ||
| .c9/ | ||
| *.launch | ||
| .settings/ | ||
| *.sublime-workspace | ||
|
|
||
| # Visual Studio Code | ||
| .vscode/* | ||
| !.vscode/settings.json | ||
| !.vscode/tasks.json | ||
| !.vscode/launch.json | ||
| !.vscode/extensions.json | ||
| .history/* | ||
|
|
||
| # Miscellaneous | ||
| /.angular/cache | ||
| .sass-cache/ | ||
| /connect.lock | ||
| /coverage | ||
| /libpeerconnection.log | ||
| testem.log | ||
| /typings | ||
|
|
||
| # System files | ||
| .DS_Store | ||
| Thumbs.db | ||
|
|
||
| src/assets/mercury-bundles |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # Angular | ||
|
|
||
| This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.0.5. | ||
|
|
||
| ## Development server | ||
|
|
||
| To start a local development server, run: | ||
|
|
||
| ```bash | ||
| ng serve | ||
| ``` | ||
|
|
||
| Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files. | ||
|
|
||
| ## Code scaffolding | ||
|
|
||
| Angular CLI includes powerful code scaffolding tools. To generate a new component, run: | ||
|
|
||
| ```bash | ||
| ng generate component component-name | ||
| ``` | ||
|
|
||
| For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: | ||
|
|
||
| ```bash | ||
| ng generate --help | ||
| ``` | ||
|
|
||
| ## Building | ||
|
|
||
| To build the project run: | ||
|
|
||
| ```bash | ||
| ng build | ||
| ``` | ||
|
|
||
| This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed. | ||
|
|
||
| ## Running unit tests | ||
|
|
||
| To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: | ||
|
|
||
| ```bash | ||
| ng test | ||
| ``` | ||
|
|
||
| ## Running end-to-end tests | ||
|
|
||
| For end-to-end (e2e) testing, run: | ||
|
|
||
| ```bash | ||
| ng e2e | ||
| ``` | ||
|
|
||
| Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. | ||
|
|
||
| ## Additional Resources | ||
|
|
||
| For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. | ||
|
Comment on lines
+1
to
+59
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This readme file should be simplified. It should also be consistent with the other readme files: |
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,109 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "version": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "newProjectRoot": "projects", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "projects": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "angular": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "projectType": "application", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "schematics": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "@schematics/angular:component": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "style": "scss" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "root": "", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "sourceRoot": "src", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "prefix": "app", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "architect": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "build": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "builder": "@angular/build:application", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "browser": "src/main.ts", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "polyfills": ["zone.js"], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "tsConfig": "tsconfig.app.json", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "inlineStyleLanguage": "scss", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "assets": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "glob": "**/*", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "input": "public" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "glob": "**/*", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "input": "./src/assets/mercury-bundles/", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "output": "/assets/css/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "glob": "**/*", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "input": "./node_modules/@genexus/mercury/dist/assets/fonts", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "output": "/assets/fonts/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "glob": "**/*", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "input": "./node_modules/@genexus/mercury/dist/assets/icons", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "output": "/assets/icons/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "styles": ["src/styles.scss"], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "server": "src/main.server.ts", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "outputMode": "server", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "ssr": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "entry": "src/server.ts" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "configurations": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "production": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "budgets": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "initial", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "maximumWarning": "500kB", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "maximumError": "1MB" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "anyComponentStyle", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "maximumWarning": "4kB", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "maximumError": "8kB" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "outputHashing": "all" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "development": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "optimization": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "extractLicenses": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "sourceMap": true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "defaultConfiguration": "production" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "serve": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "builder": "@angular/build:dev-server", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "configurations": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "production": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "buildTarget": "angular:build:production" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "development": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "buildTarget": "angular:build:development" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "defaultConfiguration": "development" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "extract-i18n": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "builder": "@angular/build:extract-i18n" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "test": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "builder": "@angular/build:karma", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "polyfills": ["zone.js", "zone.js/testing"], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "tsConfig": "tsconfig.spec.json", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "inlineStyleLanguage": "scss", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "assets": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "glob": "**/*", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "input": "public" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "styles": ["src/styles.scss"] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+91
to
+105
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are not using this.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this file and update the
.gitignorefile to untrack this Mac file.