Wilson Mendes
@willmendesneto
Google Developer Expert Web technologies
microservices, microframeworks, micro-whatever
/v1/items/123
/v1/about/123
/v1/gallery/123
...
{ }
<ItemsList />
<About />
<Gallery />
...
<page1>
</page1>
<component1 />
<component2>
</component2>
<component3 />
{ }
{ }
{ }
{ }
{ }
{ }
...
import('./new-page.component')
.then(({ default: NewPageComponent }) => {
// Logic to add
// your experimental feature
});
.catch(e =>
console.log(`
Error loading the component ${e}
`)
);
...
let asyncModule;
if (isFeatureFlagTurnedOn('new-page')) {
asyncModule = import(
/* webpackChunkName: "new-page" */
'./new-page'
);
} else {
asyncModule = import(
/* webpackChunkName: "old-page" */
'./old-page'
);
}
yarn affected:build --base=master
// Running affected only
// E2E Tests
yarn affected:test --base=master
yarn affected:e2e --base=master
// Unit Tests
// Build
// GET api/endpoint/1234
{
"location": [...],
}
type ApiEndpointResponse = {
location?: Array<...>;
listing?: {
[k: string]: | string
| boolean
| number;
}
};
// GET api/endpoint/1234
{
"location": [...],
"listing": {...}
}
Wilson Mendes
@willmendesneto
Google Developer Expert Web technologies