create-analog 3.0.0-alpha.93 → 3.0.0-alpha.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -7
- package/template-angular-v20/package.json +5 -5
- package/{template-angular-v19 → template-angular-v21}/_gitignore +3 -0
- package/template-angular-v21/package.json +55 -0
- package/{template-angular-v19 → template-angular-v21}/src/app/app.config.ts +7 -4
- package/{template-angular-v18/src/app/app.component.spec.ts → template-angular-v21/src/app/app.spec.ts} +4 -4
- package/{template-angular-v19/src/app/app.component.ts → template-angular-v21/src/app/app.ts} +1 -1
- package/template-angular-v21/src/app/pages/analog-welcome.ts +264 -0
- package/template-angular-v21/src/app/pages/index.page.ts +12 -0
- package/{template-angular-v19 → template-angular-v21}/src/main.server.ts +2 -3
- package/{template-angular-v19 → template-angular-v21}/src/main.ts +2 -3
- package/template-angular-v21/src/server/routes/api/v1/hello.ts +3 -0
- package/template-angular-v21/src/styles.css +4 -0
- package/template-angular-v21/src/test-setup.ts +7 -0
- package/{template-angular-v18 → template-angular-v21}/tsconfig.app.json +1 -2
- package/{template-angular-v18 → template-angular-v21}/tsconfig.json +7 -1
- package/{template-angular-v18 → template-angular-v21}/tsconfig.spec.json +2 -4
- package/{template-angular-v18 → template-angular-v21}/vite.config.ts +2 -5
- package/template-blog/package.json +6 -6
- package/template-latest/package.json +6 -6
- package/template-minimal/package.json +6 -6
- package/template-angular-v17/README.md +0 -26
- package/template-angular-v17/_gitignore +0 -43
- package/template-angular-v17/index.html +0 -15
- package/template-angular-v17/package.json +0 -54
- package/template-angular-v17/src/app/app.component.spec.ts +0 -18
- package/template-angular-v17/src/app/app.component.ts +0 -20
- package/template-angular-v17/src/app/app.config.server.ts +0 -16
- package/template-angular-v17/src/app/app.config.ts +0 -12
- package/template-angular-v17/src/app/pages/index.page.ts +0 -46
- package/template-angular-v17/src/main.server.ts +0 -26
- package/template-angular-v17/src/main.ts +0 -7
- package/template-angular-v17/src/server/routes/v1/hello.ts +0 -3
- package/template-angular-v17/src/styles.css +0 -75
- package/template-angular-v17/src/test.ts +0 -12
- package/template-angular-v17/src/vite-env.d.ts +0 -41
- package/template-angular-v17/tsconfig.app.json +0 -15
- package/template-angular-v17/tsconfig.json +0 -28
- package/template-angular-v17/tsconfig.spec.json +0 -13
- package/template-angular-v17/vite.config.ts +0 -28
- package/template-angular-v18/_gitignore +0 -44
- package/template-angular-v18/angular.json +0 -54
- package/template-angular-v18/package.json +0 -52
- package/template-angular-v18/public/analog.svg +0 -1
- package/template-angular-v18/public/favicon.ico +0 -0
- package/template-angular-v18/public/vite.svg +0 -1
- package/template-angular-v18/src/app/app.component.ts +0 -18
- package/template-angular-v18/src/app/app.config.ts +0 -20
- package/template-angular-v18/src/app/pages/index.page.ts +0 -55
- package/template-angular-v18/src/main.server.ts +0 -32
- package/template-angular-v18/src/main.ts +0 -7
- package/template-angular-v18/src/server/routes/v1/hello.ts +0 -3
- package/template-angular-v18/src/styles.css +0 -80
- package/template-angular-v18/src/test-setup.ts +0 -12
- package/template-angular-v19/README.md +0 -26
- package/template-angular-v19/angular.json +0 -54
- package/template-angular-v19/index.html +0 -15
- package/template-angular-v19/package.json +0 -53
- package/template-angular-v19/public/analog.svg +0 -1
- package/template-angular-v19/public/favicon.ico +0 -0
- package/template-angular-v19/public/vite.svg +0 -1
- package/template-angular-v19/src/app/app.component.spec.ts +0 -20
- package/template-angular-v19/src/app/app.config.server.ts +0 -10
- package/template-angular-v19/src/app/pages/index.page.ts +0 -54
- package/template-angular-v19/src/server/routes/api/v1/hello.ts +0 -3
- package/template-angular-v19/src/styles.css +0 -80
- package/template-angular-v19/src/test-setup.ts +0 -12
- package/template-angular-v19/src/vite-env.d.ts +0 -1
- package/template-angular-v19/tsconfig.app.json +0 -15
- package/template-angular-v19/tsconfig.json +0 -26
- package/template-angular-v19/tsconfig.spec.json +0 -13
- package/template-angular-v19/vite.config.ts +0 -27
- /package/{template-angular-v18 → template-angular-v21}/README.md +0 -0
- /package/{template-angular-v17 → template-angular-v21}/angular.json +0 -0
- /package/{template-angular-v18 → template-angular-v21}/index.html +0 -0
- /package/{template-angular-v17/src/assets → template-angular-v21/public}/analog.svg +0 -0
- /package/{template-angular-v17 → template-angular-v21/public}/favicon.ico +0 -0
- /package/{template-angular-v17/src/assets → template-angular-v21/public}/vite.svg +0 -0
- /package/{template-angular-v18 → template-angular-v21}/src/app/app.config.server.ts +0 -0
- /package/{template-angular-v18 → template-angular-v21}/src/vite-env.d.ts +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Analog App
|
|
2
|
-
|
|
3
|
-
This project was generated with [Analog](https://analogjs.org), the fullstack meta-framework for Angular.
|
|
4
|
-
|
|
5
|
-
## Setup
|
|
6
|
-
|
|
7
|
-
Run `npm install` to install the application dependencies.
|
|
8
|
-
|
|
9
|
-
## Development
|
|
10
|
-
|
|
11
|
-
Run `npm start` for a dev server. Navigate to `http://localhost:5173/`. The application automatically reloads if you change any of the source files.
|
|
12
|
-
|
|
13
|
-
## Build
|
|
14
|
-
|
|
15
|
-
Run `npm run build` to build the client/server project. The client build artifacts are located in the `dist/analog/public` directory. The server for the API build artifacts are located in the `dist/analog/server` directory.
|
|
16
|
-
|
|
17
|
-
## Test
|
|
18
|
-
|
|
19
|
-
Run `npm run test` to run unit tests with [Vitest](https://vitest.dev).
|
|
20
|
-
|
|
21
|
-
## Community
|
|
22
|
-
|
|
23
|
-
- Visit and Star the [GitHub Repo](https://github.com/analogjs/analog)
|
|
24
|
-
- Join the [Discord](https://chat.analogjs.org)
|
|
25
|
-
- Follow us on [Twitter](https://twitter.com/analogjs)
|
|
26
|
-
- Become a [Sponsor](https://github.com/sponsors/brandonroberts)
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# Compiled output
|
|
4
|
-
/dist
|
|
5
|
-
/tmp
|
|
6
|
-
/out-tsc
|
|
7
|
-
/bazel-out
|
|
8
|
-
|
|
9
|
-
# Node
|
|
10
|
-
/node_modules
|
|
11
|
-
npm-debug.log
|
|
12
|
-
yarn-error.log
|
|
13
|
-
|
|
14
|
-
# IDEs and editors
|
|
15
|
-
.idea/
|
|
16
|
-
.project
|
|
17
|
-
.classpath
|
|
18
|
-
.c9/
|
|
19
|
-
*.launch
|
|
20
|
-
.settings/
|
|
21
|
-
*.sublime-workspace
|
|
22
|
-
|
|
23
|
-
# Visual Studio Code
|
|
24
|
-
.vscode/*
|
|
25
|
-
!.vscode/settings.json
|
|
26
|
-
!.vscode/tasks.json
|
|
27
|
-
!.vscode/launch.json
|
|
28
|
-
!.vscode/extensions.json
|
|
29
|
-
.history/*
|
|
30
|
-
|
|
31
|
-
# Miscellaneous
|
|
32
|
-
/.angular/cache
|
|
33
|
-
/.nx/cache
|
|
34
|
-
.sass-cache/
|
|
35
|
-
/connect.lock
|
|
36
|
-
/coverage
|
|
37
|
-
/libpeerconnection.log
|
|
38
|
-
testem.log
|
|
39
|
-
/typings
|
|
40
|
-
|
|
41
|
-
# System files
|
|
42
|
-
.DS_Store
|
|
43
|
-
Thumbs.db
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>MyApp</title>
|
|
6
|
-
<base href="/" />
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
-
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
9
|
-
<link rel="stylesheet" href="/src/styles.css" />
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<app-root></app-root>
|
|
13
|
-
<script type="module" src="/src/main.ts"></script>
|
|
14
|
-
</body>
|
|
15
|
-
</html>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-app",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"private": true,
|
|
6
|
-
"engines": {
|
|
7
|
-
"node": "^22.18.0 || ^24.3.0"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"dev": "ng serve",
|
|
11
|
-
"ng": "ng",
|
|
12
|
-
"start": "ng serve",
|
|
13
|
-
"build": "ng build",
|
|
14
|
-
"watch": "ng build --watch",
|
|
15
|
-
"test": "ng test"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"@analogjs/content": "^3.0.0-alpha.93",
|
|
19
|
-
"@analogjs/router": "^3.0.0-alpha.93",
|
|
20
|
-
"@angular/animations": "^17.2.0",
|
|
21
|
-
"@angular/common": "^17.2.0",
|
|
22
|
-
"@angular/compiler": "^17.2.0",
|
|
23
|
-
"@angular/core": "^17.2.0",
|
|
24
|
-
"@angular/forms": "^17.2.0",
|
|
25
|
-
"@angular/platform-browser": "^17.2.0",
|
|
26
|
-
"@angular/platform-browser-dynamic": "^17.2.0",
|
|
27
|
-
"@angular/platform-server": "^17.2.0",
|
|
28
|
-
"@angular/router": "^17.2.0",
|
|
29
|
-
"@nx/angular": "~18.0.0",
|
|
30
|
-
"front-matter": "^4.0.2",
|
|
31
|
-
"marked": "^18.0.0",
|
|
32
|
-
"marked-gfm-heading-id": "^4.1.1",
|
|
33
|
-
"marked-highlight": "^2.2.1",
|
|
34
|
-
"mermaid": "^10.2.4",
|
|
35
|
-
"prismjs": "^1.29.0",
|
|
36
|
-
"rxjs": "~7.5.6",
|
|
37
|
-
"tslib": "^2.4.0",
|
|
38
|
-
"zone.js": "~0.14.0"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@analogjs/platform": "^3.0.0-alpha.93",
|
|
42
|
-
"@analogjs/vite-plugin-angular": "^3.0.0-alpha.93",
|
|
43
|
-
"@analogjs/vitest-angular": "^3.0.0-alpha.93",
|
|
44
|
-
"@angular-devkit/build-angular": "^17.2.0",
|
|
45
|
-
"@angular/cli": "^17.2.0",
|
|
46
|
-
"@angular/compiler-cli": "^17.2.0",
|
|
47
|
-
"@nx/vite": "~18.0.0",
|
|
48
|
-
"nx": "~18.0.0",
|
|
49
|
-
"jsdom": "^22.1.0",
|
|
50
|
-
"typescript": "6.0.2",
|
|
51
|
-
"vite": "^6.0.0",
|
|
52
|
-
"vitest": "^1.3.1"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
-
|
|
4
|
-
import { AppComponent } from './app.component';
|
|
5
|
-
|
|
6
|
-
describe('AppComponent', () => {
|
|
7
|
-
beforeEach(async () => {
|
|
8
|
-
await TestBed.configureTestingModule({
|
|
9
|
-
imports: [RouterTestingModule, AppComponent],
|
|
10
|
-
}).compileComponents();
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('should create the app', () => {
|
|
14
|
-
const fixture = TestBed.createComponent(AppComponent);
|
|
15
|
-
const app = fixture.componentInstance;
|
|
16
|
-
expect(app).toBeTruthy();
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { RouterOutlet } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'app-root',
|
|
6
|
-
standalone: true,
|
|
7
|
-
imports: [RouterOutlet],
|
|
8
|
-
template: ` <router-outlet></router-outlet> `,
|
|
9
|
-
styles: [
|
|
10
|
-
`
|
|
11
|
-
:host {
|
|
12
|
-
max-width: 1280px;
|
|
13
|
-
margin: 0 auto;
|
|
14
|
-
padding: 2rem;
|
|
15
|
-
text-align: center;
|
|
16
|
-
}
|
|
17
|
-
`,
|
|
18
|
-
],
|
|
19
|
-
})
|
|
20
|
-
export class AppComponent {}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { mergeApplicationConfig, ApplicationConfig } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
provideServerRendering,
|
|
4
|
-
ɵSERVER_CONTEXT as SERVER_CONTEXT,
|
|
5
|
-
} from '@angular/platform-server';
|
|
6
|
-
|
|
7
|
-
import { appConfig } from './app.config';
|
|
8
|
-
|
|
9
|
-
const serverConfig: ApplicationConfig = {
|
|
10
|
-
providers: [
|
|
11
|
-
provideServerRendering(),
|
|
12
|
-
{ provide: SERVER_CONTEXT, useValue: 'ssr-analog' },
|
|
13
|
-
],
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const config = mergeApplicationConfig(appConfig, serverConfig);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { provideHttpClient, withFetch } from '@angular/common/http';
|
|
2
|
-
import { ApplicationConfig } from '@angular/core';
|
|
3
|
-
import { provideClientHydration } from '@angular/platform-browser';
|
|
4
|
-
import { provideFileRouter } from '@analogjs/router';
|
|
5
|
-
|
|
6
|
-
export const appConfig: ApplicationConfig = {
|
|
7
|
-
providers: [
|
|
8
|
-
provideFileRouter(),
|
|
9
|
-
provideHttpClient(withFetch()),
|
|
10
|
-
provideClientHydration(),
|
|
11
|
-
],
|
|
12
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'app-home',
|
|
5
|
-
standalone: true,
|
|
6
|
-
template: `
|
|
7
|
-
<div>
|
|
8
|
-
<a href="https://analogjs.org/" target="_blank">
|
|
9
|
-
<img alt="Analog Logo" class="logo analog" src="/analog.svg" />
|
|
10
|
-
</a>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<h2>Analog</h2>
|
|
14
|
-
|
|
15
|
-
<h3>The fullstack meta-framework for Angular!</h3>
|
|
16
|
-
|
|
17
|
-
<div class="card">
|
|
18
|
-
<button type="button" (click)="increment()">Count {{ count }}</button>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<p class="read-the-docs">
|
|
22
|
-
For guides on how to customize this project, visit the
|
|
23
|
-
<a href="https://analogjs.org" target="_blank">Analog documentation</a>
|
|
24
|
-
</p>
|
|
25
|
-
`,
|
|
26
|
-
styles: [
|
|
27
|
-
`
|
|
28
|
-
.logo {
|
|
29
|
-
will-change: filter;
|
|
30
|
-
}
|
|
31
|
-
.logo:hover {
|
|
32
|
-
filter: drop-shadow(0 0 2em #646cffaa);
|
|
33
|
-
}
|
|
34
|
-
.read-the-docs {
|
|
35
|
-
color: #888;
|
|
36
|
-
}
|
|
37
|
-
`,
|
|
38
|
-
],
|
|
39
|
-
})
|
|
40
|
-
export default class HomeComponent {
|
|
41
|
-
count = 0;
|
|
42
|
-
|
|
43
|
-
increment() {
|
|
44
|
-
this.count++;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import 'zone.js/node';
|
|
2
|
-
import '@angular/platform-server/init';
|
|
3
|
-
|
|
4
|
-
import { enableProdMode } from '@angular/core';
|
|
5
|
-
import { bootstrapApplication } from '@angular/platform-browser';
|
|
6
|
-
import { renderApplication } from '@angular/platform-server';
|
|
7
|
-
|
|
8
|
-
import { config } from './app/app.config.server';
|
|
9
|
-
import { AppComponent } from './app/app.component';
|
|
10
|
-
|
|
11
|
-
if (import.meta.env.PROD) {
|
|
12
|
-
enableProdMode();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function bootstrap() {
|
|
16
|
-
return bootstrapApplication(AppComponent, config);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default async function render(url: string, document: string) {
|
|
20
|
-
const html = await renderApplication(bootstrap, {
|
|
21
|
-
document,
|
|
22
|
-
url,
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
return html;
|
|
26
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* You can add global styles to this file, and also import other style files */
|
|
2
|
-
:root {
|
|
3
|
-
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
4
|
-
font-size: 16px;
|
|
5
|
-
line-height: 24px;
|
|
6
|
-
font-weight: 400;
|
|
7
|
-
|
|
8
|
-
color-scheme: light dark;
|
|
9
|
-
color: rgba(255, 255, 255, 0.87);
|
|
10
|
-
background-color: #242424;
|
|
11
|
-
|
|
12
|
-
font-synthesis: none;
|
|
13
|
-
text-rendering: optimizeLegibility;
|
|
14
|
-
-webkit-font-smoothing: antialiased;
|
|
15
|
-
-moz-osx-font-smoothing: grayscale;
|
|
16
|
-
-webkit-text-size-adjust: 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
a {
|
|
20
|
-
font-weight: 500;
|
|
21
|
-
color: #646cff;
|
|
22
|
-
text-decoration: inherit;
|
|
23
|
-
}
|
|
24
|
-
a:hover {
|
|
25
|
-
color: #535bf2;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
body {
|
|
29
|
-
margin: 0;
|
|
30
|
-
display: flex;
|
|
31
|
-
place-items: center;
|
|
32
|
-
min-width: 320px;
|
|
33
|
-
min-height: 100vh;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
h1 {
|
|
37
|
-
font-size: 3.2em;
|
|
38
|
-
line-height: 1.1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
button {
|
|
42
|
-
border-radius: 8px;
|
|
43
|
-
border: 1px solid transparent;
|
|
44
|
-
padding: 0.6em 1.2em;
|
|
45
|
-
font-size: 1em;
|
|
46
|
-
font-weight: 500;
|
|
47
|
-
font-family: inherit;
|
|
48
|
-
background-color: #1a1a1a;
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
transition: border-color 0.25s;
|
|
51
|
-
}
|
|
52
|
-
button:hover {
|
|
53
|
-
border-color: #646cff;
|
|
54
|
-
}
|
|
55
|
-
button:focus,
|
|
56
|
-
button:focus-visible {
|
|
57
|
-
outline: 4px auto -webkit-focus-ring-color;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.card {
|
|
61
|
-
padding: 2em;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@media (prefers-color-scheme: light) {
|
|
65
|
-
:root {
|
|
66
|
-
color: #213547;
|
|
67
|
-
background-color: #ffffff;
|
|
68
|
-
}
|
|
69
|
-
a:hover {
|
|
70
|
-
color: #747bff;
|
|
71
|
-
}
|
|
72
|
-
button {
|
|
73
|
-
background-color: #f9f9f9;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import '@analogjs/vitest-angular/setup-zone';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
BrowserDynamicTestingModule,
|
|
5
|
-
platformBrowserDynamicTesting,
|
|
6
|
-
} from '@angular/platform-browser-dynamic/testing';
|
|
7
|
-
import { getTestBed } from '@angular/core/testing';
|
|
8
|
-
|
|
9
|
-
getTestBed().initTestEnvironment(
|
|
10
|
-
BrowserDynamicTestingModule,
|
|
11
|
-
platformBrowserDynamicTesting()
|
|
12
|
-
);
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
// Uncomment the lines below to enable types for experimental .analog format support
|
|
4
|
-
// interface ImportAttributes {
|
|
5
|
-
// analog: 'imports' | 'providers' | 'viewProviders' | 'exposes';
|
|
6
|
-
// }
|
|
7
|
-
//
|
|
8
|
-
// declare global {
|
|
9
|
-
// import type { Component } from '@angular/core';
|
|
10
|
-
//
|
|
11
|
-
// interface Window {
|
|
12
|
-
// /**
|
|
13
|
-
// * Define the metadata for the component.
|
|
14
|
-
// * @param metadata
|
|
15
|
-
// */
|
|
16
|
-
// defineMetadata: (
|
|
17
|
-
// metadata: Omit<
|
|
18
|
-
// Component,
|
|
19
|
-
// | 'template'
|
|
20
|
-
// | 'standalone'
|
|
21
|
-
// | 'changeDetection'
|
|
22
|
-
// | 'styles'
|
|
23
|
-
// | 'outputs'
|
|
24
|
-
// | 'inputs'
|
|
25
|
-
// > & { exposes?: unknown[] }
|
|
26
|
-
// ) => void;
|
|
27
|
-
// /**
|
|
28
|
-
// * Invoke the callback when the component is initialized.
|
|
29
|
-
// */
|
|
30
|
-
// onInit: (initFn: () => void) => void;
|
|
31
|
-
// /**
|
|
32
|
-
// * Invoke the callback when the component is destroyed.
|
|
33
|
-
// */
|
|
34
|
-
// onDestroy: (destroyFn: () => void) => void;
|
|
35
|
-
// }
|
|
36
|
-
// }
|
|
37
|
-
|
|
38
|
-
// declare module '*.analog' {
|
|
39
|
-
// const cmp = any;
|
|
40
|
-
// export default cmp;
|
|
41
|
-
// }
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"extends": "./tsconfig.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "./out-tsc/app",
|
|
6
|
-
"types": [],
|
|
7
|
-
"rootDir": "./src"
|
|
8
|
-
},
|
|
9
|
-
"files": ["src/main.ts", "src/main.server.ts"],
|
|
10
|
-
"include": [
|
|
11
|
-
"src/**/*.d.ts",
|
|
12
|
-
"src/app/routes/**/*.ts",
|
|
13
|
-
"src/app/pages/**/*.page.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compileOnSave": false,
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "./dist/out-tsc",
|
|
5
|
-
"forceConsistentCasingInFileNames": true,
|
|
6
|
-
"strict": true,
|
|
7
|
-
"noImplicitOverride": true,
|
|
8
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
9
|
-
"noImplicitReturns": true,
|
|
10
|
-
"noFallthroughCasesInSwitch": true,
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"declaration": false,
|
|
13
|
-
"experimentalDecorators": true,
|
|
14
|
-
"moduleResolution": "bundler",
|
|
15
|
-
"importHelpers": true,
|
|
16
|
-
"target": "ES2022",
|
|
17
|
-
"module": "ES2022",
|
|
18
|
-
"lib": ["ES2022", "dom"],
|
|
19
|
-
"useDefineForClassFields": false,
|
|
20
|
-
"skipLibCheck": true
|
|
21
|
-
},
|
|
22
|
-
"angularCompilerOptions": {
|
|
23
|
-
"enableI18nLegacyMessageIdFormat": false,
|
|
24
|
-
"strictInjectionParameters": true,
|
|
25
|
-
"strictInputAccessModifiers": true,
|
|
26
|
-
"strictTemplates": true
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"extends": "./tsconfig.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "./out-tsc/spec",
|
|
6
|
-
"target": "es2016",
|
|
7
|
-
"types": ["node", "vitest/globals"],
|
|
8
|
-
"rootDir": "./src",
|
|
9
|
-
"composite": false
|
|
10
|
-
},
|
|
11
|
-
"files": ["src/test.ts"],
|
|
12
|
-
"include": ["src/**/*.spec.ts", "src/**/*.ts"]
|
|
13
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="vitest" />
|
|
2
|
-
|
|
3
|
-
import { defineConfig } from 'vite';
|
|
4
|
-
__TAILWIND_IMPORT__import analog from '@analogjs/platform';
|
|
5
|
-
|
|
6
|
-
// https://vitejs.dev/config/
|
|
7
|
-
export default defineConfig(({ mode }) => ({
|
|
8
|
-
publicDir: 'src/assets',
|
|
9
|
-
build: {
|
|
10
|
-
target: ['es2020'],
|
|
11
|
-
},
|
|
12
|
-
resolve: {
|
|
13
|
-
mainFields: ['module'],
|
|
14
|
-
},
|
|
15
|
-
plugins: [
|
|
16
|
-
__TAILWIND_PLUGIN__ analog(),
|
|
17
|
-
],
|
|
18
|
-
test: {
|
|
19
|
-
globals: true,
|
|
20
|
-
environment: 'jsdom',
|
|
21
|
-
setupFiles: ['src/test.ts'],
|
|
22
|
-
include: ['**/*.spec.ts'],
|
|
23
|
-
reporters: ['default'],
|
|
24
|
-
},
|
|
25
|
-
define: {
|
|
26
|
-
'import.meta.vitest': mode !== 'production',
|
|
27
|
-
},
|
|
28
|
-
}));
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# Compiled output
|
|
4
|
-
/dist
|
|
5
|
-
/tmp
|
|
6
|
-
/out-tsc
|
|
7
|
-
/bazel-out
|
|
8
|
-
|
|
9
|
-
# Node
|
|
10
|
-
/node_modules
|
|
11
|
-
npm-debug.log
|
|
12
|
-
yarn-error.log
|
|
13
|
-
|
|
14
|
-
# IDEs and editors
|
|
15
|
-
.idea/
|
|
16
|
-
.project
|
|
17
|
-
.classpath
|
|
18
|
-
.c9/
|
|
19
|
-
*.launch
|
|
20
|
-
.settings/
|
|
21
|
-
*.sublime-workspace
|
|
22
|
-
|
|
23
|
-
# Visual Studio Code
|
|
24
|
-
.vscode/*
|
|
25
|
-
!.vscode/settings.json
|
|
26
|
-
!.vscode/tasks.json
|
|
27
|
-
!.vscode/launch.json
|
|
28
|
-
!.vscode/extensions.json
|
|
29
|
-
.history/*
|
|
30
|
-
|
|
31
|
-
# Miscellaneous
|
|
32
|
-
/.angular/cache
|
|
33
|
-
/.nx/cache
|
|
34
|
-
/.nx/workspace-data
|
|
35
|
-
.sass-cache/
|
|
36
|
-
/connect.lock
|
|
37
|
-
/coverage
|
|
38
|
-
/libpeerconnection.log
|
|
39
|
-
testem.log
|
|
40
|
-
/typings
|
|
41
|
-
|
|
42
|
-
# System files
|
|
43
|
-
.DS_Store
|
|
44
|
-
Thumbs.db
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
-
"version": 1,
|
|
4
|
-
"newProjectRoot": "projects",
|
|
5
|
-
"projects": {
|
|
6
|
-
"my-app": {
|
|
7
|
-
"projectType": "application",
|
|
8
|
-
"root": ".",
|
|
9
|
-
"sourceRoot": "src",
|
|
10
|
-
"prefix": "app",
|
|
11
|
-
"architect": {
|
|
12
|
-
"build": {
|
|
13
|
-
"builder": "@analogjs/platform:vite",
|
|
14
|
-
"options": {
|
|
15
|
-
"configFile": "vite.config.ts",
|
|
16
|
-
"main": "src/main.ts",
|
|
17
|
-
"outputPath": "dist/client",
|
|
18
|
-
"tsConfig": "tsconfig.app.json"
|
|
19
|
-
},
|
|
20
|
-
"defaultConfiguration": "production",
|
|
21
|
-
"configurations": {
|
|
22
|
-
"development": {
|
|
23
|
-
"mode": "development"
|
|
24
|
-
},
|
|
25
|
-
"production": {
|
|
26
|
-
"sourcemap": false,
|
|
27
|
-
"mode": "production"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"serve": {
|
|
32
|
-
"builder": "@analogjs/platform:vite-dev-server",
|
|
33
|
-
"defaultConfiguration": "development",
|
|
34
|
-
"options": {
|
|
35
|
-
"buildTarget": "my-app:build",
|
|
36
|
-
"port": 5173
|
|
37
|
-
},
|
|
38
|
-
"configurations": {
|
|
39
|
-
"development": {
|
|
40
|
-
"buildTarget": "my-app:build:development",
|
|
41
|
-
"hmr": true
|
|
42
|
-
},
|
|
43
|
-
"production": {
|
|
44
|
-
"buildTarget": "my-app:build:production"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"test": {
|
|
49
|
-
"builder": "@analogjs/vitest-angular:test"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-app",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"engines": {
|
|
6
|
-
"node": "^22.18.0 || ^24.3.0"
|
|
7
|
-
},
|
|
8
|
-
"scripts": {
|
|
9
|
-
"ng": "ng",
|
|
10
|
-
"dev": "ng serve",
|
|
11
|
-
"start": "ng serve",
|
|
12
|
-
"build": "ng build",
|
|
13
|
-
"watch": "ng build --watch --configuration development",
|
|
14
|
-
"test": "ng test"
|
|
15
|
-
},
|
|
16
|
-
"private": true,
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"@analogjs/content": "^3.0.0-alpha.93",
|
|
19
|
-
"@analogjs/router": "^3.0.0-alpha.93",
|
|
20
|
-
"@angular/animations": "^18.0.0",
|
|
21
|
-
"@angular/build": "^18.0.0",
|
|
22
|
-
"@angular/common": "^18.0.0",
|
|
23
|
-
"@angular/compiler": "^18.0.0",
|
|
24
|
-
"@angular/core": "^18.0.0",
|
|
25
|
-
"@angular/forms": "^18.0.0",
|
|
26
|
-
"@angular/platform-browser": "^18.0.0",
|
|
27
|
-
"@angular/platform-browser-dynamic": "^18.0.0",
|
|
28
|
-
"@angular/platform-server": "^18.0.0",
|
|
29
|
-
"@angular/router": "^18.0.0",
|
|
30
|
-
"front-matter": "^4.0.2",
|
|
31
|
-
"marked": "^18.0.0",
|
|
32
|
-
"marked-gfm-heading-id": "^4.1.1",
|
|
33
|
-
"marked-highlight": "^2.2.1",
|
|
34
|
-
"marked-mangle": "^1.1.10",
|
|
35
|
-
"prismjs": "^1.29.0",
|
|
36
|
-
"rxjs": "~7.8.0",
|
|
37
|
-
"tslib": "^2.3.0",
|
|
38
|
-
"zone.js": "~0.14.3"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@analogjs/platform": "^3.0.0-alpha.93",
|
|
42
|
-
"@analogjs/vite-plugin-angular": "^3.0.0-alpha.93",
|
|
43
|
-
"@analogjs/vitest-angular": "^3.0.0-alpha.93",
|
|
44
|
-
"@angular/cli": "^18.0.0",
|
|
45
|
-
"@angular/compiler-cli": "^18.0.0",
|
|
46
|
-
"jsdom": "^22.0.0",
|
|
47
|
-
"typescript": "6.0.2",
|
|
48
|
-
"vite": "^6.0.0",
|
|
49
|
-
"vite-tsconfig-paths": "^6.1.1",
|
|
50
|
-
"vitest": "^1.3.1"
|
|
51
|
-
}
|
|
52
|
-
}
|