Skip to content

Commit 9ac9931

Browse files
committed
chore: update dependencies and configuration for Angular and Storybook and Nx
1 parent dd0836f commit 9ac9931

File tree

26 files changed

+7897
-3683
lines changed

26 files changed

+7897
-3683
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ Thumbs.db
4545
.nx/workspace-data
4646

4747
vite.config.*.timestamp*
48-
vitest.config.*.timestamp*
48+
vitest.config.*.timestamp*
49+
.cursor/rules/nx-rules.mdc
50+
.github/instructions/nx.instructions.md

apps/ionic-app/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@
102102
"buildTarget": "ionic-app:build:development"
103103
}
104104
},
105-
"defaultConfiguration": "development"
105+
"defaultConfiguration": "development",
106+
"continuous": true
106107
},
107108
"extract-i18n": {
108109
"executor": "@angular-devkit/build-angular:extract-i18n",

apps/ionic-app/src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { CommonModule } from '@angular/common';
1+
22
import { Component } from '@angular/core';
33
import { IonicModule } from '@ionic/angular';
44

55
@Component({
66
selector: 'platform-root',
7-
imports: [CommonModule, IonicModule],
7+
imports: [IonicModule],
88
template: `
99
<ion-app>
1010
<ion-router-outlet></ion-router-outlet>

apps/kitchen-sink/src/app/routed-rocks/cursor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { DOCUMENT } from '@angular/common';
2-
import { Directive, ElementRef, inject } from '@angular/core';
1+
2+
import { Directive, ElementRef, inject, DOCUMENT } from '@angular/core';
33
import { getLocalState, injectObjectEvents } from 'angular-three';
44
import { Object3D } from 'three';
55

apps/kitchen-sink/src/app/soba/camera-scroll/model.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ Command: npx angular-three-gltf&#64;1.1.11 apps/kitchen-sink/src/app/soba/camera
33
**/
44

55
import {
6-
ChangeDetectionStrategy,
7-
Component,
8-
CUSTOM_ELEMENTS_SCHEMA,
9-
effect,
10-
ElementRef,
11-
inject,
12-
signal,
13-
viewChild,
6+
ChangeDetectionStrategy,
7+
Component,
8+
CUSTOM_ELEMENTS_SCHEMA,
9+
effect,
10+
ElementRef,
11+
inject,
12+
signal,
13+
viewChild,
14+
DOCUMENT
1415
} from '@angular/core';
1516
import { injectBeforeRender, NgtArgs, NgtThreeEvent } from 'angular-three';
1617
import { NgtsPerspectiveCamera } from 'angular-three-soba/cameras';
@@ -21,7 +22,7 @@ import { BufferGeometry, Color, Group, MathUtils, Mesh, MeshStandardMaterial } f
2122
import { GLTF } from 'three-stdlib';
2223
import { SCROLL } from './camera-scroll';
2324

24-
import { DOCUMENT } from '@angular/common';
25+
2526
import modelUrl from './model-transformed.glb';
2627

2728
type ActionName = 'CameraAction.005';

apps/kitchen-sink/src/app/soba/camera-scroll/overlay.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { DOCUMENT } from '@angular/common';
2-
import { ChangeDetectionStrategy, Component, ElementRef, inject, viewChild } from '@angular/core';
1+
2+
import { ChangeDetectionStrategy, Component, ElementRef, inject, viewChild, DOCUMENT } from '@angular/core';
33
import { SCROLL } from './camera-scroll';
44

55
@Component({

apps/kitchen-sink/src/app/soba/html-chart/html-chart.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { DOCUMENT } from '@angular/common';
1+
22
import {
3-
afterNextRender,
4-
ChangeDetectionStrategy,
5-
Component,
6-
DestroyRef,
7-
effect,
8-
inject,
9-
Injector,
3+
afterNextRender,
4+
ChangeDetectionStrategy,
5+
Component,
6+
DestroyRef,
7+
effect,
8+
inject,
9+
Injector,
10+
DOCUMENT
1011
} from '@angular/core';
1112
import { NgtCanvas } from 'angular-three';
1213
import { Experience } from './experience';

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,7 @@ module.exports = [
8080
'@angular-eslint/prefer-standalone': 'off',
8181
},
8282
},
83+
{
84+
ignores: ['**/vite.config.*.timestamp*', '**/vitest.config.*.timestamp*'],
85+
},
8386
];

libs/core/nativescript/src/lib/canvas.ts

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
import '@nativescript/canvas-three';
22

3-
import { DOCUMENT } from '@angular/common';
3+
44
import {
5-
booleanAttribute,
6-
ChangeDetectionStrategy,
7-
Component,
8-
ComponentRef,
9-
createEnvironmentInjector,
10-
DestroyRef,
11-
EnvironmentInjector,
12-
inject,
13-
Injector,
14-
input,
15-
NgZone,
16-
NO_ERRORS_SCHEMA,
17-
output,
18-
Type,
19-
untracked,
20-
viewChild,
21-
ViewContainerRef,
5+
booleanAttribute,
6+
ChangeDetectionStrategy,
7+
Component,
8+
ComponentRef,
9+
createEnvironmentInjector,
10+
DestroyRef,
11+
EnvironmentInjector,
12+
inject,
13+
Injector,
14+
input,
15+
NgZone,
16+
NO_ERRORS_SCHEMA,
17+
output,
18+
Type,
19+
untracked,
20+
viewChild,
21+
ViewContainerRef,
22+
DOCUMENT
2223
} from '@angular/core';
2324
import { registerElement } from '@nativescript/angular';
2425
import { Canvas } from '@nativescript/canvas';

libs/core/src/lib/pipes/hexify.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { DOCUMENT } from '@angular/common';
2-
import { inject, Pipe } from '@angular/core';
1+
2+
import { inject, Pipe, DOCUMENT } from '@angular/core';
33

44
const RGBA_REGEX = /rgba?\((\d+),\s*(\d+),\s*(\d+),?\s*(\d*\.?\d+)?\)/;
55
const DEFAULT_COLOR = 0x000000;

0 commit comments

Comments
 (0)