-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: exported options types for the plugin, added example for angular
- Loading branch information
Showing
20 changed files
with
4,379 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
assets | ||
.angular |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"cli": { | ||
"analytics": "1e1de97b-a744-405a-8b5a-0397bb3d01ce" | ||
}, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"demo": { | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-builders/custom-esbuild:application", | ||
"configurations": { | ||
"development": { | ||
"extractLicenses": false, | ||
"namedChunks": true, | ||
"optimization": false, | ||
"sourceMap": true | ||
}, | ||
"production": { | ||
"aot": true, | ||
"extractLicenses": true, | ||
"namedChunks": false, | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false | ||
} | ||
}, | ||
"options": { | ||
"assets": [], | ||
"index": "src/index.html", | ||
"browser": "src/main.ts", | ||
"outputPath": "dist/demo", | ||
"plugins": ["./esbuild/unplugin-favicons-plugin.js"], | ||
"scripts": [], | ||
"styles": ["src/global_styles.css"], | ||
"tsConfig": "tsconfig.app.json" | ||
} | ||
}, | ||
"serve": { | ||
"builder": "@angular-builders/custom-esbuild:dev-server", | ||
"configurations": { | ||
"development": { | ||
"buildTarget": "demo:build:development" | ||
}, | ||
"production": { | ||
"buildTarget": "demo:build:production" | ||
} | ||
}, | ||
"defaultConfiguration": "development" | ||
} | ||
}, | ||
"prefix": "app", | ||
"projectType": "application", | ||
"root": "", | ||
"schematics": {}, | ||
"sourceRoot": "src" | ||
} | ||
}, | ||
"version": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import faviconsPlugin from "@anolilab/unplugin-favicons/esbuild"; | ||
|
||
/** @typedef {import("@anolilab/unplugin-favicons/esbuild").FaviconsLogoPluginOptions} config **/ | ||
const config = { | ||
logo: "./src/assets/favicon.png", | ||
outputPath: "assets/lexus/", | ||
cache: false, | ||
inject: false, | ||
favicons: { | ||
background: "#fffefc", | ||
icons: { | ||
android: true, | ||
appleIcon: true, | ||
appleStartup: false, | ||
favicons: true, | ||
windows: true, | ||
yandex: false, | ||
}, | ||
}, | ||
}; | ||
|
||
export default faviconsPlugin(config); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "angular-starter", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"ng": "ng", | ||
"start": "ng serve", | ||
"build": "ng build" | ||
}, | ||
"dependencies": { | ||
"@angular/animations": "^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/router": "^18.0.0", | ||
"@anolilab/unplugin-favicons": "workspace:*", | ||
"favicons": "^7.2.0", | ||
"rxjs": "^7.8.1", | ||
"tslib": "^2.5.0", | ||
"zone.js": "~0.14.0" | ||
}, | ||
"devDependencies": { | ||
"@angular-builders/custom-esbuild": "^18.0.0", | ||
"@angular-devkit/build-angular": "^18.0.0", | ||
"@angular/cli": "^18.0.1", | ||
"@angular/compiler-cli": "^18.0.0", | ||
"typescript": "~5.4.0" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* Add application styles & imports to this file! */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>My app</title> | ||
<meta charset="UTF-8" /> | ||
</head> | ||
<body> | ||
<app-root>Loading...</app-root> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Component } from "@angular/core"; | ||
import { bootstrapApplication } from "@angular/platform-browser"; | ||
import "zone.js"; | ||
|
||
@Component({ | ||
selector: "app-root", | ||
standalone: true, | ||
template: ` | ||
<h1>Hello from {{ name }}!</h1> | ||
<a target="_blank" href="https://angular.dev/overview"> Learn more about Angular </a> | ||
`, | ||
}) | ||
export class App { | ||
name = "Angular"; | ||
} | ||
|
||
bootstrapApplication(App); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* To learn more about this file see: https://angular.io/config/tsconfig. */ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "./out-tsc/app", | ||
"types": [] | ||
}, | ||
"files": ["src/main.ts"], | ||
"include": ["src/**/*.d.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* To learn more about this file see: https://angular.io/config/tsconfig. */ | ||
{ | ||
"compileOnSave": false, | ||
"compilerOptions": { | ||
"baseUrl": "./", | ||
"outDir": "./dist/out-tsc", | ||
"forceConsistentCasingInFileNames": true, | ||
"strict": true, | ||
"noImplicitOverride": true, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noImplicitReturns": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"esModuleInterop": true, | ||
"sourceMap": true, | ||
"declaration": false, | ||
"downlevelIteration": true, | ||
"experimentalDecorators": true, | ||
"moduleResolution": "bundler", | ||
"importHelpers": true, | ||
"target": "ES2022", | ||
"module": "ES2022", | ||
"useDefineForClassFields": false, | ||
"lib": ["ES2022", "dom"] | ||
}, | ||
"angularCompilerOptions": { | ||
"enableI18nLegacyMessageIdFormat": false, | ||
"strictInjectionParameters": true, | ||
"strictInputAccessModifiers": true, | ||
"strictTemplates": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.