Skip to content

Commit eec1d92

Browse files
chore: auto update client extensions samples
1 parent 4ce3895 commit eec1d92

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

internal/assets/tpl/client_extension/liferay-client-extensions-samples/liferay-sample-custom-element-angular/src/app/app.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ describe('AppComponent', () => {
1414
})
1515
);
1616

17-
it('should create the app', () => {
17+
it('create the app', () => {
1818
const fixture = TestBed.createComponent(AppComponent);
1919
const app = fixture.componentInstance;
2020
expect(app).toBeTruthy();
2121
});
2222

23-
it(`should have as title 'liferay-sample-custom-element-3'`, () => {
23+
it(`have as title 'liferay-sample-custom-element-3'`, () => {
2424
const fixture = TestBed.createComponent(AppComponent);
2525
const app = fixture.componentInstance;
2626
expect(app.title).toEqual('liferay-sample-custom-element-3');
2727
});
2828

29-
it('should render title', () => {
29+
it('render title', () => {
3030
const fixture = TestBed.createComponent(AppComponent);
3131
fixture.detectChanges();
3232
const compiled = fixture.nativeElement as HTMLElement;

internal/assets/tpl/client_extension/liferay-client-extensions-samples/liferay-sample-custom-element-angular/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {Component, Input} from '@angular/core';
77

88
@Component({
99
selector: 'liferay-sample-custom-element-3',
10-
templateUrl: './app.component.html',
1110
styleUrls: ['./app.component.css'],
11+
templateUrl: './app.component.html',
1212
})
1313
export class AppComponent {
1414
@Input('title') title = 'liferay-sample-custom-element-3';

internal/assets/tpl/client_extension/liferay-client-extensions-samples/liferay-sample-custom-element-angular/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ import {AppModule} from './app/app.module';
99

1010
platformBrowserDynamic()
1111
.bootstrapModule(AppModule)
12-
.catch((err) => console.error(err));
12+
.catch((error) => console.error(error));

internal/assets/tpl/client_extension/liferay-client-extensions-samples/liferay-sample-custom-element-react-clayui/webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ module.exports = {
1313
entry: {
1414
index: './assets/index.js',
1515
},
16+
experiments: {
17+
outputModule: true,
18+
},
1619
externals: {
1720

1821
// Add all @clayui dependencies of your project below here (as done for `@clayui/badge`)
@@ -21,9 +24,6 @@ module.exports = {
2124
'react': 'react',
2225
'react-dom': 'react-dom',
2326
},
24-
experiments: {
25-
outputModule: true,
26-
},
2727
mode: DEVELOPMENT ? 'development' : 'production',
2828
optimization: {
2929
minimize: !DEVELOPMENT,

internal/assets/tpl/client_extension/liferay-client-extensions-samples/liferay-sample-custom-element-react-dom/webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ module.exports = {
2020
entry: {
2121
index: './assets/index.js',
2222
},
23+
experiments: {
24+
outputModule: true,
25+
},
2326
externals: {
2427
'react': 'react',
2528
'react-dom': 'react-dom',
2629
},
27-
experiments: {
28-
outputModule: true,
29-
},
3030
mode: DEVELOPMENT ? 'development' : 'production',
3131
module: {
3232
rules: [

0 commit comments

Comments
 (0)