5htp 0.6.3-7 → 0.6.3-8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ /*----------------------------------
2
+ - DEPENDANCES
3
+ ----------------------------------*/
4
+
5
+ // Configs
6
+ import Compiler from '../compiler';
7
+
8
+ /*----------------------------------
9
+ - COMMAND
10
+ ----------------------------------*/
11
+ export const run = (): Promise<void> => new Promise(async (resolve) => {
12
+
13
+ const compiler = new Compiler('dev');
14
+
15
+ await compiler.refreshGeneratedTypings();
16
+
17
+ resolve();
18
+ });
@@ -11,9 +11,6 @@ const TerserPlugin = require('terser-webpack-plugin');
11
11
  // Optimisations
12
12
  const BrotliCompression = require("brotli-webpack-plugin");
13
13
  import CompressionPlugin from "compression-webpack-plugin";
14
- const ImageMinimizerPlugin = require("image-minimizer-webpack-plugin");
15
- const imageminWebp = require('imagemin-webp');
16
- const { extendDefaultPlugins } = require("svgo");
17
14
  // Ressources
18
15
  const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
19
16
  import MiniCssExtractPlugin from "mini-css-extract-plugin";
package/compiler/index.ts CHANGED
@@ -460,15 +460,31 @@ declare module '@models/types' {
460
460
  );
461
461
  }
462
462
 
463
- public async create() {
463
+ public async refreshGeneratedTypings({
464
+ cleanup = false,
465
+ fixNpmLinkIssues = false,
466
+ }: {
467
+ cleanup?: boolean,
468
+ fixNpmLinkIssues?: boolean,
469
+ } = {}) {
464
470
 
465
471
  await app.warmup();
466
472
 
467
- this.cleanup();
473
+ if (cleanup)
474
+ this.cleanup();
468
475
 
469
- this.fixNpmLinkIssues();
476
+ if (fixNpmLinkIssues)
477
+ this.fixNpmLinkIssues();
470
478
 
471
479
  this.indexServices();
480
+ }
481
+
482
+ public async create() {
483
+
484
+ await this.refreshGeneratedTypings({
485
+ cleanup: true,
486
+ fixNpmLinkIssues: true,
487
+ });
472
488
 
473
489
  // Create compilers
474
490
  const multiCompiler = webpack([
@@ -529,4 +545,4 @@ declare module '@models/types' {
529
545
 
530
546
  }
531
547
 
532
- }
548
+ }
package/index.ts CHANGED
@@ -59,6 +59,7 @@ export class CLI {
59
59
  public commands: { [name: string]: TCliCommand } = {
60
60
  "init": () => import('./commands/init'),
61
61
  "dev": () => import('./commands/dev'),
62
+ "refresh": () => import('./commands/refresh'),
62
63
  "build": () => import('./commands/build'),
63
64
  }
64
65
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "5htp",
3
3
  "description": "Convenient TypeScript framework designed for Performance and Productivity.",
4
- "version": "0.6.3-7",
4
+ "version": "0.6.3-8",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/5htp.git",
7
7
  "license": "MIT",
@@ -9,7 +9,7 @@
9
9
  "5htp": "cli.js"
10
10
  },
11
11
  "engines": {
12
- "node": ">=16.1.0",
12
+ "node": ">=18.20.0",
13
13
  "npm": ">=3.10.10"
14
14
  },
15
15
  "keywords": [
@@ -26,7 +26,6 @@
26
26
  "@babel/preset-react": "^7.14.5",
27
27
  "@babel/preset-typescript": "^7.15.0",
28
28
  "@prefresh/webpack": "^3.3.2",
29
- "@squoosh/lib": "^0.4.0",
30
29
  "@tailwindcss/postcss": "^4.1.17",
31
30
  "@types/babel__core": "^7.1.16",
32
31
  "@types/cookie": "^0.4.1",
package/readme.md CHANGED
@@ -22,6 +22,8 @@ Full Stack Typescript framework designed for **developers and users experience**
22
22
 
23
23
  ## Get Started
24
24
 
25
+ Requires Node.js `18.20+` or any compatible `20.x` release.
26
+
25
27
  1. Install:
26
28
 
27
29
  `npm i -g 5htp`
@@ -57,4 +59,4 @@ Full Stack Typescript framework designed for **developers and users experience**
57
59
  - [ ] Improve ORM: make definition based on code instead of database structure
58
60
  - [ ] Automatically generates types that associate api routes urls to their return types
59
61
  - [ ] Allow to create CLI apps
60
- - [ ] Fix Typescript errors
62
+ - [ ] Fix Typescript errors