Skip to content

Commit

Permalink
feat(create-analog): update template for latest to Angular v19 (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts authored Nov 19, 2024
1 parent 167a52d commit 72b8dc7
Show file tree
Hide file tree
Showing 45 changed files with 1,798 additions and 1,142 deletions.
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^19.0.0-rc.0",
"@angular/cdk": "^19.0.0-rc.0",
"@angular/common": "^19.0.0-rc.0",
"@angular/compiler": "^19.0.0-rc.0",
"@angular/core": "^19.0.0-rc.0",
"@angular/forms": "^19.0.0-rc.0",
"@angular/material": "^19.0.0-rc.0",
"@angular/platform-browser": "^19.0.0-rc.0",
"@angular/platform-browser-dynamic": "^19.0.0-rc.0",
"@angular/platform-server": "^19.0.0-rc.0",
"@angular/router": "^19.0.0-rc.0",
"@angular/animations": "^19.0.0",
"@angular/cdk": "^19.0.0",
"@angular/common": "^19.0.0",
"@angular/compiler": "^19.0.0",
"@angular/core": "^19.0.0",
"@angular/forms": "^19.0.0",
"@angular/material": "^19.0.0",
"@angular/platform-browser": "^19.0.0",
"@angular/platform-browser-dynamic": "^19.0.0",
"@angular/platform-server": "^19.0.0",
"@angular/router": "^19.0.0",
"@astrojs/mdx": "^3.0.1",
"@astrojs/react": "^3.0.0",
"@babel/core": "^7.21.8",
Expand Down Expand Up @@ -80,17 +80,17 @@
"zone.js": "^0.15.0"
},
"devDependencies": {
"@angular-devkit/architect": "^0.1900.0-rc.0",
"@angular-devkit/build-angular": "^19.0.0-rc.0",
"@angular-devkit/core": "^19.0.0-rc.0",
"@angular-devkit/schematics": "^19.0.0-rc.0",
"@angular-devkit/architect": "^0.1900.0",
"@angular-devkit/build-angular": "^19.0.0",
"@angular-devkit/core": "^19.0.0",
"@angular-devkit/schematics": "^19.0.0",
"@angular-eslint/eslint-plugin": "18.3.1",
"@angular-eslint/eslint-plugin-template": "18.3.1",
"@angular-eslint/template-parser": "18.3.1",
"@angular/build": "^19.0.0-rc.0",
"@angular/cli": "^19.0.0-rc.0",
"@angular/compiler-cli": "^19.0.0-rc.0",
"@angular/language-service": "^19.0.0-rc.0",
"@angular/build": "^19.0.0",
"@angular/cli": "^19.0.0",
"@angular/compiler-cli": "^19.0.0",
"@angular/language-service": "^19.0.0",
"@astrojs/markdown-component": "^1.0.5",
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
Expand All @@ -103,7 +103,7 @@
"@nx/plugin": "20.0.8",
"@nx/vite": "20.0.8",
"@nx/web": "20.0.8",
"@schematics/angular": "^19.0.0-rc.0",
"@schematics/angular": "^19.0.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
Expand Down Expand Up @@ -147,7 +147,7 @@
"marked-mangle": "^1.1.7",
"marked-shiki": "^1.1.0",
"minimist": "^1.2.7",
"ng-packagr": "^19.0.0-rc.0",
"ng-packagr": "^19.0.0",
"nitropack": "^2.9.7",
"nx": "20.0.8",
"playwright": "^1.30.0",
Expand All @@ -173,11 +173,11 @@
"ts-node": "10.9.1",
"typescript": "~5.5.0",
"vfile": "^6.0.3",
"vite": "^5.3.0",
"vite": "^5.4.0",
"vite-plugin-eslint": "^1.8.1",
"vite-tsconfig-paths": "4.2.0",
"vitefu": "^0.2.5",
"vitest": "1.4.0",
"vitest": "^2.0.0",
"webpack-bundle-analyzer": "^4.7.0",
"xmlbuilder2": "^3.0.2"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"url": "https://github.com/sponsors/brandonroberts"
},
"peerDependencies": {
"@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc.0",
"@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc.0",
"@angular/platform-browser": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc.0",
"@angular/router": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc.0",
"@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"@angular/platform-browser": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"@angular/router": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"@nx/devkit": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
"front-matter": "^4.0.2",
"marked": ">=5.0.2",
Expand Down
1 change: 1 addition & 0 deletions packages/create-analog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"index.js",
"template-angular-v16",
"template-angular-v17",
"template-angular-v18",
"template-blog",
"template-latest",
"template-minimal",
Expand Down
16 changes: 16 additions & 0 deletions packages/create-analog/template-angular-v18/.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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": ["angular.ng-template", "analogjs.vscode-analog"]
}
19 changes: 19 additions & 0 deletions packages/create-analog/template-angular-v18/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:5173/"
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: test"
}
]
}
42 changes: 42 additions & 0 deletions packages/create-analog/template-angular-v18/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
},
{
"type": "npm",
"script": "test",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
}
]
}
26 changes: 26 additions & 0 deletions packages/create-analog/template-angular-v18/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# __PROJECT_TITLE__

This project was generated with [Analog](https://analogjs.org), the fullstack meta-framework for Angular.

## Setup

Run `npm install` to install the application dependencies.

## Development

Run `npm start` for a dev server. Navigate to `http://localhost:5173/`. The application automatically reloads if you change any of the source files.

## Build

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.

## Test

Run `npm run test` to run unit tests with [Vitest](https://vitest.dev).

## Community

- Visit and Star the [GitHub Repo](https://github.com/analogjs/analog)
- Join the [Discord](https://chat.analogjs.org)
- Follow us on [Twitter](https://twitter.com/analogjs)
- Become a [Sponsor](https://github.com/sponsors/brandonroberts)
44 changes: 44 additions & 0 deletions packages/create-analog/template-angular-v18/_gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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
/.nx/cache
/.nx/workspace-data
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db
54 changes: 54 additions & 0 deletions packages/create-analog/template-angular-v18/angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"my-app": {
"projectType": "application",
"root": ".",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@analogjs/platform:vite",
"options": {
"configFile": "vite.config.ts",
"main": "src/main.ts",
"outputPath": "dist/client",
"tsConfig": "tsconfig.app.json"
},
"defaultConfiguration": "production",
"configurations": {
"development": {
"mode": "development"
},
"production": {
"sourcemap": false,
"mode": "production"
}
}
},
"serve": {
"builder": "@analogjs/platform:vite-dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "my-app:build",
"port": 5173
},
"configurations": {
"development": {
"buildTarget": "my-app:build:development",
"hmr": true
},
"production": {
"buildTarget": "my-app:build:production"
}
}
},
"test": {
"builder": "@analogjs/vitest-angular:test"
}
}
}
}
}
15 changes: 15 additions & 0 deletions packages/create-analog/template-angular-v18/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>__PROJECT_TITLE__</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="stylesheet" href="/src/styles.css" />
</head>
<body>
<app-root></app-root>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
52 changes: 52 additions & 0 deletions packages/create-analog/template-angular-v18/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "my-app",
"version": "0.0.0",
"type": "module",
"engines": {
"node": ">=18.19.1"
},
"scripts": {
"ng": "ng",
"dev": "ng serve",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
},
"private": true,
"dependencies": {
"@analogjs/content": "^1.9.5-beta.1",
"@analogjs/router": "^1.9.5-beta.1",
"@angular/animations": "^18.0.0",
"@angular/build": "^18.0.0",
"@angular/common": "^18.0.0",
"@angular/compiler": "^18.0.0",
"@angular/core": "^18.0.0",
"@angular/forms": "^18.0.0",
"@angular/platform-browser": "^18.0.0",
"@angular/platform-browser-dynamic": "^18.0.0",
"@angular/platform-server": "^18.0.0",
"@angular/router": "^18.0.0",
"front-matter": "^4.0.2",
"marked": "^5.0.2",
"marked-gfm-heading-id": "^3.1.0",
"marked-highlight": "^2.0.1",
"marked-mangle": "^1.1.7",
"prismjs": "^1.29.0",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.14.3"
},
"devDependencies": {
"@analogjs/platform": "^1.9.5-beta.1",
"@analogjs/vite-plugin-angular": "^1.9.5-beta.1",
"@analogjs/vitest-angular": "^1.9.5-beta.1",
"@angular/cli": "^18.0.0",
"@angular/compiler-cli": "^18.0.0",
"jsdom": "^22.0.0",
"typescript": "~5.4.2",
"vite": "^5.0.0",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^1.3.1"
}
}
Empty file.
Loading

0 comments on commit 72b8dc7

Please sign in to comment.