@teambit/react 0.0.688 → 0.0.691
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.
- package/apps/web/react-app-options.ts +5 -0
- package/apps/web/react.app-type.ts +2 -1
- package/apps/web/react.application.ts +4 -2
- package/artifacts/env-template/public/{515.js → 934.js} +1 -1
- package/artifacts/env-template/public/assets-manifest.json +8 -8
- package/artifacts/env-template/public/{compositions.2bc54c6923366c88d388.js → compositions.a2c81bb414bb03918d09.js} +1 -1
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/overview.b2a3c1f5a7bff688b748.js +1 -0
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/preview-root.a1f71de58f10102ed2c6.js +1 -0
- package/artifacts/env-template/public/service-worker.js +1 -1
- package/artifacts/preview/teambit_react_react-preview.js +1 -1
- package/{compositions-1648142274038.js → compositions-1648386827284.js} +0 -0
- package/dist/apps/web/react-app-options.d.ts +4 -0
- package/dist/apps/web/react.app-type.js +1 -1
- package/dist/apps/web/react.app-type.js.map +1 -1
- package/dist/apps/web/react.application.d.ts +2 -1
- package/dist/apps/web/react.application.js +6 -3
- package/dist/apps/web/react.application.js.map +1 -1
- package/{overview-1648142274038.js → overview-1648386827284.js} +0 -0
- package/package-tar/teambit-react-0.0.691.tgz +0 -0
- package/package.json +30 -30
- package/{preview-1648142274038.js → preview-1648386827284.js} +2 -2
- package/artifacts/env-template/public/overview.3e5a472a4b908ea3cc21.js +0 -1
- package/artifacts/env-template/public/preview-root.a143910d76fdcda013ea.js +0 -1
- package/package-tar/teambit-react-0.0.688.tgz +0 -0
|
@@ -19,9 +19,9 @@ export class ReactApp implements Application {
|
|
|
19
19
|
readonly bundler?: Bundler,
|
|
20
20
|
readonly devServer?: DevServer,
|
|
21
21
|
readonly transformers?: WebpackConfigTransformer[],
|
|
22
|
-
readonly deploy?: (context: ReactDeployContext) => Promise<void
|
|
22
|
+
readonly deploy?: (context: ReactDeployContext) => Promise<void>,
|
|
23
|
+
readonly favicon?: string
|
|
23
24
|
) {}
|
|
24
|
-
|
|
25
25
|
readonly applicationType = 'react-common-js';
|
|
26
26
|
readonly dir = 'public';
|
|
27
27
|
async run(context: AppContext): Promise<number> {
|
|
@@ -57,6 +57,7 @@ export class ReactApp implements Application {
|
|
|
57
57
|
title: context.name,
|
|
58
58
|
templateContent: html(context.name),
|
|
59
59
|
minify: false,
|
|
60
|
+
favicon: this.favicon,
|
|
60
61
|
// filename: ''.html`,
|
|
61
62
|
},
|
|
62
63
|
];
|
|
@@ -117,6 +118,7 @@ export class ReactApp implements Application {
|
|
|
117
118
|
rootPath: '',
|
|
118
119
|
publicPath: `public/${this.name}`,
|
|
119
120
|
title: this.name,
|
|
121
|
+
favicon: this.favicon,
|
|
120
122
|
});
|
|
121
123
|
}
|
|
122
124
|
}
|