Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "feat(templates/angular): Upgrade Angular Boilerplate" #172

Merged
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
1 change: 0 additions & 1 deletion templates/angular/angular-boilerplate/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ trim_trailing_whitespace = true

[*.ts]
quote_type = single
ij_typescript_use_double_quotes = false

[*.md]
max_line_length = off
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ jobs:
run: |
azion -t ${{ secrets.AZION_PERSONAL_TOKEN }}
azion deploy

5 changes: 2 additions & 3 deletions templates/angular/angular-boilerplate/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
# See http://help.github.com/ignore-files/ for more about ignoring files.
.angular/

# Compiled output
/dist
Expand Down Expand Up @@ -41,6 +42,4 @@ testem.log
.DS_Store
Thumbs.db

# Azion
.edge/

5 changes: 2 additions & 3 deletions templates/angular/angular-boilerplate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ With the **Angular Boilerplate**, you can simplify and enhance the deployment of

This repository is an example of the new GitHub repository created during the deployment. For a more detailed step-by-step to deploy this template through Azion's platform, check the [How to deploy edge applications with the Angular Boilerplate](https://www.azion.com/en/documentation/products/guides/angular-boilerplate/) guide.

This template uses Angular CLI version `18.2.11`.
This template uses Angular CLI version `16.2.0`.

---

Expand All @@ -25,5 +25,4 @@ Deploy your own Angular project with Azion.

[![Deploy Button](/static/button.png)](https://console.azion.com/create/angular/angular-boilerplate "Deploy with Azion")

For a more detailed step-by-step, check the [documentation](https://www.azion.com/en/documentation/products/guides/angular-boilerplate/).

For a more detailed step-by-step, check the [documentation](https://www.azion.com/en/documentation/products/guides/angular-boilerplate/).
54 changes: 31 additions & 23 deletions templates/angular/angular-boilerplate/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,34 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"angular-boilerplate": {
"azion-init-angular": {
"projectType": "application",
"schematics": {},
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/angular-boilerplate",
"outputPath": "dist/azion-init-angular",
"index": "src/index.html",
"browser": "src/main.ts",
"main": "src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
{
"glob": "**/*",
"input": "public"
}
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
"src/styles.scss"
],
"scripts": []
},
Expand All @@ -36,21 +39,24 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumError": "1MB"
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kB",
"maximumError": "4kB"
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
Expand All @@ -59,16 +65,19 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"buildTarget": "angular-boilerplate:build:production"
"browserTarget": "azion-init-angular:build:production"
},
"development": {
"buildTarget": "angular-boilerplate:build:development"
"browserTarget": "azion-init-angular:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n"
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "azion-init-angular:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
Expand All @@ -78,14 +87,13 @@
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
{
"glob": "**/*",
"input": "public"
}
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
"src/styles.scss"
],
"scripts": []
}
Expand Down
11 changes: 6 additions & 5 deletions templates/angular/angular-boilerplate/azion.config.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module.exports = {
const { defineConfig } = require('azion');

module.exports = defineConfig({
build: {
preset: {
name: 'angular'
}
name: 'angular',
},
}
}

})
1 change: 0 additions & 1 deletion templates/angular/angular-boilerplate/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
"mode": "deliver",
"path": "/angular-boilerplate"
}

Loading
Loading