Skip to content

Commit

Permalink
Merge pull request #35 from archimedes-projects/feature/use-case-key
Browse files Browse the repository at this point in the history
Feature/use case key
  • Loading branch information
achamorro-dev authored Nov 28, 2022
2 parents 318e2a3 + 0ff0cfd commit 96baca4
Show file tree
Hide file tree
Showing 63 changed files with 104,095 additions and 64,603 deletions.
78 changes: 44 additions & 34 deletions examples/example-angular/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/example-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "NG_BUILD_MANGLE=false ng build",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
Expand All @@ -19,7 +19,7 @@
"@angular/platform-browser": "~11.1.0",
"@angular/platform-browser-dynamic": "~11.1.0",
"@angular/router": "~11.1.0",
"@archimedes/arch": "1.0.0-beta.1",
"@archimedes/arch": "2.2.0-beta.2",
"rxjs": "~6.6.0",
"tslib": "^2.0.0",
"zone.js": "~0.11.3"
Expand Down
4 changes: 2 additions & 2 deletions examples/example-angular/src/app/bar-qry.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BazQry } from './baz-qry'
import { Injectable } from '@angular/core'
import { EvictCache, Query } from '@archimedes/arch'
import { Query, UseCaseKey } from '@archimedes/arch'

@EvictCache
@UseCaseKey('BarQry')
@Injectable({
providedIn: 'root'
})
Expand Down
5 changes: 3 additions & 2 deletions examples/example-angular/src/app/baz-qry.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Injectable } from '@angular/core'
import { EvictCache, Query } from '@archimedes/arch'
import { InvalidateCache, Query, UseCaseKey } from '@archimedes/arch'

@EvictCache
@UseCaseKey('BazQry')
@InvalidateCache
@Injectable({
providedIn: 'root'
})
Expand Down
5 changes: 3 additions & 2 deletions examples/example-angular/src/app/foo-cmd.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Injectable } from '@angular/core'
import { Command, EvictCache } from '@archimedes/arch'
import { Command, InvalidateCache, UseCaseKey } from '@archimedes/arch'

@EvictCache
@UseCaseKey('FooCmd')
@InvalidateCache
@Injectable({
providedIn: 'root'
})
Expand Down
5 changes: 3 additions & 2 deletions examples/example-angular/src/app/qux-cmd.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Injectable } from '@angular/core'
import { Command, EvictCache } from '@archimedes/arch'
import { Command, InvalidateCache, UseCaseKey } from '@archimedes/arch'

@EvictCache
@UseCaseKey('QuxCmd')
@InvalidateCache
@Injectable({
providedIn: 'root'
})
Expand Down
16 changes: 16 additions & 0 deletions examples/with-angular/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
16 changes: 16 additions & 0 deletions examples/with-angular/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
42 changes: 42 additions & 0 deletions examples/with-angular/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# See http://help.github.com/ignore-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
27 changes: 27 additions & 0 deletions examples/with-angular/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# WithAngular

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.0.

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
Loading

0 comments on commit 96baca4

Please sign in to comment.