Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions templates/angular-example/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,17 @@
"styles": ["src/styles.css"],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
}
}
}
},
"cli": {
"schematicCollections": ["angular-eslint"]
}
}
8 changes: 6 additions & 2 deletions templates/angular-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"test": "ng test",
"format": "prettier --write .",
"postinstall:copy-auth": "node -e \"require('fs').cpSync('node_modules/@junobuild/core/dist/workers/', './src/assets/workers', {recursive: true});\"",
"postinstall": "npm run postinstall:copy-auth"
"postinstall": "npm run postinstall:copy-auth",
"lint": "ng lint"
},
"private": true,
"dependencies": {
Expand All @@ -35,6 +36,8 @@
"@angular/compiler-cli": "^20.0.5",
"@tailwindcss/postcss": "^4.1.10",
"@types/jasmine": "~5.1.8",
"angular-eslint": "20.2.0",
"eslint": "^9.33.0",
"jasmine-core": "~5.8.0",
"karma": "~6.4.4",
"karma-chrome-launcher": "~3.2.0",
Expand All @@ -45,7 +48,8 @@
"prettier": "^3.6.1",
"prettier-plugin-tailwindcss": "^0.6.13",
"tailwindcss": "^4.1.10",
"typescript": "~5.8.3"
"typescript": "~5.8.3",
"typescript-eslint": "8.40.0"
},
"overrides": {
"@angular-devkit/build-angular": {
Expand Down
4 changes: 2 additions & 2 deletions templates/angular-example/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import { initSatellite } from '@junobuild/core';
import { environment } from '../environments/environment';
import { HomeComponent } from './components/home/home.component';
Expand All @@ -8,7 +8,7 @@ import { HomeComponent } from './components/home/home.component';
imports: [HomeComponent],
templateUrl: './app.component.html',
})
export class AppComponent {
export class AppComponent implements OnInit {
title = 'Juno / Angular Example';

async ngOnInit() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, input, Input } from '@angular/core';
import { Component, input } from '@angular/core';

@Component({
selector: 'app-backdrop',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { NgClass } from '@angular/common';
import { Component, input, Input } from '@angular/core';
import { Component, input } from '@angular/core';

@Component({
selector: 'app-button',
imports: [NgClass],
templateUrl: './button.component.html',
})
export class ButtonComponent {
disabled = input.required<boolean>()

disabled = input.required<boolean>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
>
<span
role="cell"
aria-rowindex="{index}"
[attr.aria-rowindex]="i + 1"
class="align-center flex min-w-max p-1"
>
{{ i + 1 }}
Expand Down
1 change: 1 addition & 0 deletions templates/angular-example/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { appConfig } from './app/app.config';
// Agent-js requires a polyfill 😕
// I've reported this issue multiple times. Hopefully, it will be addressed in the future.
// ERROR ReferenceError: global is not defined
// eslint-disable-next-line
(window as any).global = window;

bootstrapApplication(AppComponent, appConfig).catch((err) =>
Expand Down
9 changes: 9 additions & 0 deletions templates/angular-starter/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,17 @@
"styles": ["src/styles.css"],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
}
}
}
},
"cli": {
"schematicCollections": ["angular-eslint"]
}
}
8 changes: 6 additions & 2 deletions templates/angular-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"test": "ng test",
"format": "prettier --write .",
"postinstall:copy-auth": "node -e \"require('fs').cpSync('node_modules/@junobuild/core/dist/workers/', './src/assets/workers', {recursive: true});\"",
"postinstall": "npm run postinstall:copy-auth"
"postinstall": "npm run postinstall:copy-auth",
"lint": "ng lint"
},
"private": true,
"dependencies": {
Expand All @@ -34,6 +35,8 @@
"@angular/compiler-cli": "^20.0.5",
"@tailwindcss/postcss": "^4.1.10",
"@types/jasmine": "~5.1.8",
"angular-eslint": "20.2.0",
"eslint": "^9.33.0",
"jasmine-core": "~5.8.0",
"karma": "~6.4.4",
"karma-chrome-launcher": "~3.2.0",
Expand All @@ -44,7 +47,8 @@
"prettier": "^3.6.1",
"prettier-plugin-tailwindcss": "^0.6.13",
"tailwindcss": "^4.1.10",
"typescript": "~5.8.3"
"typescript": "~5.8.3",
"typescript-eslint": "8.40.0"
},
"overrides": {
"@angular-devkit/build-angular": {
Expand Down
4 changes: 2 additions & 2 deletions templates/angular-starter/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import { initSatellite } from '@junobuild/core';
import { environment } from '../environments/environment';
import { HomeComponent } from './components/home/home.component';
Expand All @@ -8,7 +8,7 @@ import { HomeComponent } from './components/home/home.component';
imports: [HomeComponent],
templateUrl: './app.component.html',
})
export class AppComponent {
export class AppComponent implements OnInit {
title = 'Juno / Angular Starter';

async ngOnInit() {
Expand Down
1 change: 1 addition & 0 deletions templates/angular-starter/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { appConfig } from './app/app.config';
// Agent-js requires a polyfill 😕
// I've reported this issue multiple times. Hopefully, it will be addressed in the future.
// ERROR ReferenceError: global is not defined
// eslint-disable-next-line
(window as any).global = window;

bootstrapApplication(AppComponent, appConfig).catch((err) =>
Expand Down
Loading