This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default (words) => console.log(words); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
zot: true, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export { default as foo } from './foo'; | |
export { default as zot } from './zot'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as index from '.'; | |
describe('@zot/feature-foo package', () => { | |
it('should match snapshot', () => { | |
expect(index).toMatchSnapshot(); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports[`@zot/feature-foo package should match snapshot 1`] = ` | |
Object { | |
"foo": [Function], | |
"zot": Object { | |
"zot": true, | |
}, | |
} | |
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'node-fetch'; | |
import schedule from 'node-schedule'; | |
const apiUrl = 'http://api:3000/healthcheck'; | |
const ping = async () => { | |
try { | |
const response = await fetch(apiUrl); | |
console.log('status', response.status); | |
} catch (error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from 'express'; | |
const app = express(); | |
app.get('/healthcheck', (...args) => { | |
const [, res] = args; | |
res.json({ ok: true }); | |
}); | |
app.listen(3000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: cron | |
labels: | |
app: cron | |
spec: | |
ports: | |
- port: 3000 | |
targetPort: 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: api | |
labels: | |
app: api | |
spec: | |
ports: | |
- port: 3000 | |
targetPort: 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = { | |
...configuration, | |
entry: './src/client', | |
optimization: { | |
// https://webpack.js.org/plugins/split-chunks-plugin/#optimization-splitchunks | |
splitChunks: { | |
chunks: 'all', | |
}, | |
}, | |
}; |
OlderNewer