@tramvai/cli 2.67.0 → 2.70.0

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.
@@ -1,3 +1,4 @@
1
+ import '../typings/application';
1
2
  import type { StartCommand } from './start';
2
3
  import type { BuildCommand } from './build';
3
4
  import type { BenchmarkCommand } from './benchmark';
package/lib/api/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.startProd = exports.analyze = exports.benchmark = exports.build = exports.start = exports.configToEnv = exports.extractCssPluginFactory = exports.postcssAssetsWebpackRulesFactory = exports.lessWebpackRulesFactory = exports.cssWebpackRulesFactory = exports.filesClientWebpackRulesFactory = exports.babelConfigFactory = exports.syncJsonFile = exports.getTramvaiConfig = exports.ConfigManagerValidator = exports.createConfigManager = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ require("../typings/application");
5
6
  const noop_stream_1 = require("noop-stream");
6
7
  const tokens_1 = require("../di/tokens");
7
8
  const createApp_1 = require("../commands/createApp");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;AAAA,6CAAiD;AACjD,yCAKsB;AACtB,qDAAkD;AAQlD,uDAA6B;AAC7B,yDAA6E;AAArD,oHAAA,mBAAmB,OAAA;AAK3C,2CAA2E;AAAlE,gHAAA,aAAa,OAA0B;AAChD,8DAA6D;AAApD,oHAAA,gBAAgB,OAAA;AACzB,sDAAqD;AAA5C,4GAAA,YAAY,OAAA;AACrB,0CAAsD;AAA7C,2GAAA,kBAAkB,OAAA;AAC3B,qEAAuF;AAA9E,6HAAA,8BAA8B,OAAA;AACvC,qDAAuE;AAA9D,6GAAA,sBAAsB,OAAA;AAC/B,uDAAyE;AAAhE,+GAAA,uBAAuB,OAAA;AAChC,yEAA2F;AAAlF,iIAAA,gCAAgC,OAAA;AACzC,+EAAqF;AAA5E,2HAAA,uBAAuB,OAAA;A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C,CAAC;AAFW,QAAA,KAAK,SAEhB;AAEK,MAAM,KAAK,GAAiB,CAAC,UAAU,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE;IAChE,OAAO,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AACjD,CAAC,CAAC;AAFW,QAAA,KAAK,SAEhB;AAEK,MAAM,SAAS,GAAqB,CAAC,UAAU,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE;IACxE,OAAO,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AACrD,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB;AAEK,MAAM,OAAO,GAAmB,CAAC,UAAU,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE;IACpE,OAAO,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AACnD,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB;AAEK,MAAM,SAAS,GAAqB,CAAC,UAAU,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE;IACxE,OAAO,GAAG,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AACtD,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB"}
@@ -0,0 +1,42 @@
1
+ interface ImageObject {
2
+ src: string;
3
+ width: number;
4
+ height: number;
5
+ }
6
+ declare module '*.css' {
7
+ interface IClassNames {
8
+ [className: string]: string;
9
+ }
10
+ const classNames: IClassNames;
11
+ export = classNames;
12
+ }
13
+ declare module '*.woff2' {
14
+ const font: string;
15
+ export = font;
16
+ }
17
+ type ImageString = string;
18
+ declare module '*.png' {
19
+ export default ImageString;
20
+ export const image: ImageObject;
21
+ }
22
+ declare module '*.jpg' {
23
+ export default ImageString;
24
+ export const image: ImageObject;
25
+ }
26
+ declare module '*.jpeg' {
27
+ export default ImageString;
28
+ export const image: ImageObject;
29
+ }
30
+ declare module '*.svg' {
31
+ const image: ImageString;
32
+ export = image;
33
+ }
34
+ declare module '*.svg?react' {
35
+ import type { ComponentType, SVGProps } from 'react';
36
+ type SvgComponent = ComponentType<SVGProps<SVGElement>>;
37
+ /**
38
+ * React component transformed with https://react-svgr.com/
39
+ */
40
+ const Svg: SvgComponent;
41
+ export = Svg;
42
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=application.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.js","sourceRoot":"","sources":["../../src/typings/application.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/cli",
3
- "version": "2.67.0",
3
+ "version": "2.70.0",
4
4
  "description": "Cli инструмент для сборки и запуска приложений",
5
5
  "files": [
6
6
  "src",
@@ -71,7 +71,7 @@
71
71
  "@tinkoff/utils": "^2.1.3",
72
72
  "@tinkoff/webpack-dedupe-plugin": "1.0.1",
73
73
  "@tramvai/build": "3.1.1",
74
- "@tramvai/react": "2.67.0",
74
+ "@tramvai/react": "2.70.0",
75
75
  "@tramvai/tools-check-versions": "0.4.8",
76
76
  "@tramvai/tools-migrate": "0.6.10",
77
77
  "ajv": "^6.12.6",
package/src/api/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import '../typings/application';
2
+
1
3
  import { writableNoopStream } from 'noop-stream';
2
4
  import {
3
5
  ANALYTICS_PACKAGE_INFO_TOKEN,
@@ -1,48 +1 @@
1
- declare module '*.css' {
2
- interface IClassNames {
3
- [className: string]: string;
4
- }
5
- const classNames: IClassNames;
6
- export = classNames;
7
- }
8
-
9
- declare module '*.woff2' {
10
- const font: string;
11
- export = font;
12
- }
13
-
14
- type ImageString = string;
15
-
16
- declare module '*.png' {
17
- import type { ImageObject } from '@tramvai/cli';
18
-
19
- export default ImageString;
20
- export const image: ImageObject;
21
- }
22
- declare module '*.jpg' {
23
- import type { ImageObject } from '@tramvai/cli';
24
-
25
- export default ImageString;
26
- export const image: ImageObject;
27
- }
28
- declare module '*.jpeg' {
29
- import type { ImageObject } from '@tramvai/cli';
30
-
31
- export default ImageString;
32
- export const image: ImageObject;
33
- }
34
-
35
- declare module '*.svg' {
36
- const image: ImageString;
37
- export = image;
38
- }
39
- declare module '*.svg?react' {
40
- import type { SvgComponent } from '@tramvai/cli';
41
-
42
- /**
43
- * React component transformed with https://react-svgr.com/
44
- */
45
- const Svg: SvgComponent;
46
-
47
- export = Svg;
48
- }
1
+ /// <reference types="@tramvai/cli" />
@@ -0,0 +1,50 @@
1
+ interface ImageObject {
2
+ src: string;
3
+ width: number;
4
+ height: number;
5
+ }
6
+
7
+ declare module '*.css' {
8
+ interface IClassNames {
9
+ [className: string]: string;
10
+ }
11
+ const classNames: IClassNames;
12
+ export = classNames;
13
+ }
14
+
15
+ declare module '*.woff2' {
16
+ const font: string;
17
+ export = font;
18
+ }
19
+
20
+ type ImageString = string;
21
+
22
+ declare module '*.png' {
23
+ export default ImageString;
24
+ export const image: ImageObject;
25
+ }
26
+ declare module '*.jpg' {
27
+ export default ImageString;
28
+ export const image: ImageObject;
29
+ }
30
+ declare module '*.jpeg' {
31
+ export default ImageString;
32
+ export const image: ImageObject;
33
+ }
34
+
35
+ declare module '*.svg' {
36
+ const image: ImageString;
37
+ export = image;
38
+ }
39
+ declare module '*.svg?react' {
40
+ import type { ComponentType, SVGProps } from 'react';
41
+
42
+ type SvgComponent = ComponentType<SVGProps<SVGElement>>;
43
+
44
+ /**
45
+ * React component transformed with https://react-svgr.com/
46
+ */
47
+ const Svg: SvgComponent;
48
+
49
+ export = Svg;
50
+ }