diff --git a/angular/angular.json b/angular/angular.json index be97ecd..0d7309d 100644 --- a/angular/angular.json +++ b/angular/angular.json @@ -31,30 +31,10 @@ "browser": "src/main.ts", "outputPath": "dist/demo", "scripts": [], - "styles": [ - "src/global_styles.css" - ], + "styles": ["src/global_styles.css"], "tsConfig": "src/tsconfig.app.json" } }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "demo:build" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "exclude": [ - "**/node_modules/**" - ], - "tsConfig": [ - "src/tsconfig.app.json", - "src/tsconfig.spec.json" - ] - } - }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "configurations": { @@ -66,26 +46,6 @@ } }, "defaultConfiguration": "development" - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "karmaConfig": "src/karma.conf.js", - "main": "src/test.ts", - "polyfills": [ - "zone.js", - ".zone.js/testing" - ], - "scripts": [], - "styles": [ - "styles.css" - ], - "tsConfig": "src/tsconfig.spec.json" - } } }, "prefix": "app", @@ -96,4 +56,4 @@ } }, "version": 1 -} \ No newline at end of file +} diff --git a/angular/package.json b/angular/package.json index 0244b6b..546e2a8 100644 --- a/angular/package.json +++ b/angular/package.json @@ -4,19 +4,16 @@ "scripts": { "ng": "ng", "start": "ng serve", - "build": "ng build", - "test": "ng test", - "lint": "ng lint", - "e2e": "ng e2e" + "build": "ng build" }, "dependencies": { - "@angular/animations": "~17.0.1", - "@angular/common": "~17.0.1", - "@angular/compiler": "~17.0.1", - "@angular/core": "~17.0.1", - "@angular/forms": "~17.0.1", - "@angular/platform-browser": "~17.0.1", - "@angular/router": "~17.0.1", + "@angular/animations": "~17.0.3", + "@angular/common": "~17.0.3", + "@angular/compiler": "~17.0.3", + "@angular/core": "~17.0.3", + "@angular/forms": "~17.0.3", + "@angular/platform-browser": "~17.0.3", + "@angular/router": "~17.0.3", "rxjs": "^7.8.1", "tslib": "^2.5.0", "zone.js": "~0.14.0" @@ -25,13 +22,6 @@ "@angular-devkit/build-angular": "~17.0.0", "@angular/cli": "~17.0.0", "@angular/compiler-cli": "~17.0.1", - "@types/jasmine": "~4.3.0", - "jasmine-core": "~5.1.0", - "karma": "~6.4.0", - "karma-chrome-launcher": "~3.2.0", - "karma-coverage": "~2.2.0", - "karma-jasmine": "~5.1.0", - "karma-jasmine-html-reporter": "~2.1.0", "typescript": "~5.2.0" } -} \ No newline at end of file +} diff --git a/angular/src/karma.conf.js b/angular/src/karma.conf.js deleted file mode 100644 index 3a53805..0000000 --- a/angular/src/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function (config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma'), - ], - client: { - clearContext: false, // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, './coverage/my-app'), - reports: ['html', 'lcovonly', 'text-summary'], - fixWebpackSourcePaths: true, - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false, - restartOnFileChange: true, - }); -}; diff --git a/angular/src/main.ts b/angular/src/main.ts index a066d84..63b5ba0 100644 --- a/angular/src/main.ts +++ b/angular/src/main.ts @@ -1,6 +1,6 @@ +import { Component } from '@angular/core'; +import { bootstrapApplication } from '@angular/platform-browser'; import 'zone.js'; -import {Component} from '@angular/core'; -import {bootstrapApplication} from '@angular/platform-browser'; @Component({ selector: 'app-root', diff --git a/angular/src/tsconfig.spec.json b/angular/src/tsconfig.spec.json deleted file mode 100644 index 4bcdf58..0000000 --- a/angular/src/tsconfig.spec.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/spec", - "types": ["jasmine", "node"] - }, - "files": ["test.ts"], - "include": ["**/*.spec.ts", "**/*.d.ts"] -} diff --git a/angular/tsconfig.json b/angular/tsconfig.json index 994784b..73c8368 100644 --- a/angular/tsconfig.json +++ b/angular/tsconfig.json @@ -16,13 +16,10 @@ "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, - "target": "ES2022", + "target": "ES2015", "module": "ES2022", "useDefineForClassFields": false, - "lib": [ - "ES2022", - "dom" - ] + "lib": ["ES2022", "dom"] }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, diff --git a/nextjs/app/layout.tsx b/nextjs/app/layout.tsx index ae84562..092954c 100644 --- a/nextjs/app/layout.tsx +++ b/nextjs/app/layout.tsx @@ -1,22 +1,22 @@ -import './globals.css' -import type { Metadata } from 'next' -import { Inter } from 'next/font/google' +import './globals.css'; +import type { Metadata } from 'next'; +import { Inter } from 'next/font/google'; -const inter = Inter({ subsets: ['latin'] }) +const inter = Inter({ subsets: ['latin'] }); export const metadata: Metadata = { title: 'Create Next App', description: 'Generated by create next app', -} +}; export default function RootLayout({ children, }: { - children: React.ReactNode + children: React.ReactNode; }) { return ( {children} - ) + ); } diff --git a/nextjs/app/page.tsx b/nextjs/app/page.tsx index 7a8286b..2c5efec 100644 --- a/nextjs/app/page.tsx +++ b/nextjs/app/page.tsx @@ -1,4 +1,4 @@ -import Image from 'next/image' +import Image from 'next/image'; export default function Home() { return ( @@ -109,5 +109,5 @@ export default function Home() { - ) + ); } diff --git a/nextjs/next.config.js b/nextjs/next.config.js index 767719f..658404a 100644 --- a/nextjs/next.config.js +++ b/nextjs/next.config.js @@ -1,4 +1,4 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {} +const nextConfig = {}; -module.exports = nextConfig +module.exports = nextConfig; diff --git a/nextjs/postcss.config.js b/nextjs/postcss.config.js index 33ad091..12a703d 100644 --- a/nextjs/postcss.config.js +++ b/nextjs/postcss.config.js @@ -3,4 +3,4 @@ module.exports = { tailwindcss: {}, autoprefixer: {}, }, -} +}; diff --git a/nextjs/tailwind.config.ts b/nextjs/tailwind.config.ts index c7ead80..2686392 100644 --- a/nextjs/tailwind.config.ts +++ b/nextjs/tailwind.config.ts @@ -1,4 +1,4 @@ -import type { Config } from 'tailwindcss' +import type { Config } from 'tailwindcss'; const config: Config = { content: [ @@ -16,5 +16,5 @@ const config: Config = { }, }, plugins: [], -} -export default config +}; +export default config;