Use TypeScript 7 for server and sass-embedded

This commit is contained in:
Terncode committed 2026-11-21 15:18:46 +01:00
1 parent 6c6089709b
commit ecfe558b1f
10 files changed
+882 -243

No files matched your search

+5 -3
View File
@@ -8,7 +8,7 @@ import _ from 'lodash';
import gulpif from 'gulp-if';
import rev from 'gulp-rev';
import gulpSass from 'gulp-sass';
import dartSass from 'sass';
import * as sassEmbedded from 'sass-embedded';
import shell from 'gulp-shell';
import cssnano from 'gulp-cssnano';
import imagemin, { mozjpeg, optipng, gifsicle, svgo } from 'gulp-imagemin';
@@ -29,7 +29,7 @@ const stamp = Math.floor(Math.random() * 0xffffffff);
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-';
const HASH = _.range(0, 10).map(() => chars[Math.floor(Math.random() * chars.length)]).join('');
const sass = gulpSass(dartSass);
const sass = gulpSass(sassEmbedded);
const argv = yargs(hideBin(process.argv))
.option('fast', { type: 'boolean', default: false })
@@ -248,7 +248,9 @@ const assetsCopy = () => gulp.src('assets/**/*', { encoding: false })
function buildSass(name, src, dest) {
const result = () => gulp.src([src], { base: 'src', encoding: false })
.pipe(sass({
includePaths: ['src/styles/'],
loadPaths: ['src/styles/'],
quietDeps: true,
silenceDeprecations: ['import', 'global-builtin', 'color-functions', 'if-function', 'slash-div'],
}).on('error', sass.logError))
.pipe(autoprefixer('last 2 versions'))
.pipe(gulpif(!development, cssnano({ discardComments: { removeAll: true } })))
+851 -215
View File
File diff suppressed because it is too large. Load diff
+6 -5
View File
@@ -13,8 +13,8 @@
"dev-sprites": "gulp dev --sprites",
"sw-generate": "workbox generateSW workbox-config.js && gulp patchWebWorker",
"sw": "npm run sw-generate",
"ts": "tsc",
"ts-tools": "tsc -p tsconfig.tools.json",
"ts": "node node_modules/typescript-7/bin/tsc",
"ts-tools": "node node_modules/typescript-7/bin/tsc -p tsconfig.tools.json",
"ts-watch": "npm run ts -- --watch",
"ts-cov": "npm run ts -- --target es5",
"ts-cov-watch": "npm run ts -- --target es5 --watch",
@@ -98,8 +98,8 @@
"@typescript-eslint/parser": "8.57.1",
"angular2-template-loader": "0.6.2",
"babel-loader": "10.1.1",
"chai": "6.2.2",
"c8": "^12.0.0",
"chai": "6.2.2",
"chai-as-promised": "8.0.2",
"chalk": "5.6.2",
"del": "8.0.1",
@@ -132,7 +132,8 @@
"mocha": "11.8.0",
"reflect-metadata": "0.2.2",
"rxjs": "7.8.2",
"sass-loader": "13.3.3",
"sass-embedded": "1.108.2",
"sass-loader": "17.1.1",
"sinon": "21.0.3",
"swc-loader": "^0.2.7",
"ts-loader": "9.5.4",
@@ -140,6 +141,7 @@
"tslib": "2.8.1",
"tsutils": "3.17.1",
"typescript": "6.0.3",
"typescript-7": "npm:[email protected]",
"webpack": "5.105.4",
"webpack-bundle-analyzer": "5.2.0",
"webpack-cli": "7.0.2",
@@ -200,7 +202,6 @@
"pug-plugin-ng": "0.0.3",
"raw-loader": "4.0.2",
"rollbar": "2.12.2",
"sass": "1.62.1",
"serve-favicon": "2.5.0",
"source-list-map": "2.0.1",
"source-map-support": "0.5.13",
+2
View File
@@ -178,6 +178,8 @@ $form-check-input-checked-color: white;
$form-check-input-checked-bg-color: $secondary;
$form-check-input-checked-border-color: $secondary;
$form-check-input-focus-box-shadow: 0 0 0 3px rgba($focus-color, .5);
// fixed value, newer sass outputs tint-color() as rgb() with percentages which breaks bootstrap svg data url
$form-switch-focus-color: #83bfff;
$form-check-input-disabled-opacity: .5;
$form-check-label-disabled-opacity: .5;
+1 -2
View File
@@ -4,10 +4,9 @@
"target": "es2022",
"module": "es2022",
"moduleResolution": "bundler",
"baseUrl": ".",
"preserveConstEnums": false,
"paths": {
"lodash": ["src/ts/lodash.ts"]
"lodash": ["./src/ts/lodash.ts"]
}
},
"files": [
+1 -1
View File
@@ -5,7 +5,7 @@
"moduleResolution": "bundler",
"paths": {
"core-js/es6": ["src/fixes/empty.js"],
"lodash": ["src/ts/lodash.ts"]
"lodash": ["./src/ts/lodash.ts"]
}
}
}
+1 -2
View File
@@ -4,10 +4,9 @@
"target": "es2022",
"module": "es2022",
"moduleResolution": "bundler",
"baseUrl": ".",
"preserveConstEnums": false,
"paths": {
"lodash": ["src/ts/lodash.ts"]
"lodash": ["./src/ts/lodash.ts"]
}
},
"files": [
+1 -2
View File
@@ -4,10 +4,9 @@
"target": "es2022",
"module": "es2022",
"moduleResolution": "bundler",
"baseUrl": ".",
"preserveConstEnums": false,
"paths": {
"lodash": ["src/ts/lodash.ts"]
"lodash": ["./src/ts/lodash.ts"]
}
},
"files": [
+10 -12
View File
@@ -9,22 +9,20 @@
"outDir": "dist/node",
"pretty": true,
"module": "commonjs",
"moduleResolution": "node",
"ignoreDeprecations": "6.0",
"moduleResolution": "bundler",
"types": ["*"],
"baseUrl": ".",
"incremental": true,
"tsBuildInfoFile": "dist/node/.tsbuildinfo",
"paths": {
"@angular/common/http": ["node_modules/@angular/common/types/http.d.ts"],
"@angular/platform-browser/animations": ["node_modules/@angular/platform-browser/types/animations.d.ts"],
"@angular/cdk/drag-drop": ["node_modules/@angular/cdk/types/drag-drop.d.ts"],
"ngx-bootstrap/popover": ["node_modules/ngx-bootstrap/popover/types/ngx-bootstrap-popover.d.ts"],
"ngx-bootstrap/modal": ["node_modules/ngx-bootstrap/modal/types/ngx-bootstrap-modal.d.ts"],
"ngx-bootstrap/tooltip": ["node_modules/ngx-bootstrap/tooltip/types/ngx-bootstrap-tooltip.d.ts"],
"ngx-bootstrap/buttons": ["node_modules/ngx-bootstrap/buttons/types/ngx-bootstrap-buttons.d.ts"],
"ngx-bootstrap/typeahead": ["node_modules/ngx-bootstrap/typeahead/types/ngx-bootstrap-typeahead.d.ts"],
"ngx-bootstrap/pagination": ["node_modules/ngx-bootstrap/pagination/types/ngx-bootstrap-pagination.d.ts"]
"@angular/common/http": ["./node_modules/@angular/common/types/http.d.ts"],
"@angular/platform-browser/animations": ["./node_modules/@angular/platform-browser/types/animations.d.ts"],
"@angular/cdk/drag-drop": ["./node_modules/@angular/cdk/types/drag-drop.d.ts"],
"ngx-bootstrap/popover": ["./node_modules/ngx-bootstrap/popover/types/ngx-bootstrap-popover.d.ts"],
"ngx-bootstrap/modal": ["./node_modules/ngx-bootstrap/modal/types/ngx-bootstrap-modal.d.ts"],
"ngx-bootstrap/tooltip": ["./node_modules/ngx-bootstrap/tooltip/types/ngx-bootstrap-tooltip.d.ts"],
"ngx-bootstrap/buttons": ["./node_modules/ngx-bootstrap/buttons/types/ngx-bootstrap-buttons.d.ts"],
"ngx-bootstrap/typeahead": ["./node_modules/ngx-bootstrap/typeahead/types/ngx-bootstrap-typeahead.d.ts"],
"ngx-bootstrap/pagination": ["./node_modules/ngx-bootstrap/pagination/types/ngx-bootstrap-pagination.d.ts"]
},
"importHelpers": true,
"noUnusedLocals": true,
+4 -1
View File
@@ -98,8 +98,11 @@ const config = {
{
loader: 'sass-loader',
options: {
api: 'modern',
sassOptions: {
includePaths: ['src/styles'],
loadPaths: ['src/styles'],
quietDeps: true,
silenceDeprecations: ['import', 'global-builtin', 'color-functions', 'if-function', 'slash-div'],
},
},
},