This file contains hidden or 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: "extensions/v1beta1" | |
kind: "Ingress" | |
metadata: | |
name: "outsrc-dev-ingress" | |
namespace: "outsrc" | |
annotations: | |
kubernetes.io/ingress.class: "kong" | |
kubernetes.io/tls-acme: "true" | |
cert-manager.io/cluster-issuer: "letsencrypt-prod" | |
spec: |
This file contains hidden or 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 NextLink, { LinkProps } from 'next/link' | |
import { format } from 'url' | |
import getConfig from 'next/config' | |
const { publicRuntimeConfig } = getConfig() | |
const Link: React.FunctionComponent<LinkProps> = ({ children, ...props }) => ( | |
<NextLink | |
{...props} | |
as={`${publicRuntimeConfig.basePath || ''}${format(props.href)}`} |
This file contains hidden or 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: Namespace | |
metadata: | |
name: outsrc | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: outsrc-dev-ingress | |
namespace: outsrc |
This file contains hidden or 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: Namespace | |
metadata: | |
name: outsrc-dev | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: dev-outsrc-dev-ingress | |
namespace: outsrc-dev |
This file contains hidden or 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: configuration.konghq.com/v1 | |
kind: KongPlugin | |
metadata: | |
name: ip-restriction | |
namespace: outsrc-dev | |
config: | |
whitelist: | |
- 202.110.224.38 | |
- 7.107.59.230 | |
plugin: ip-restriction |
This file contains hidden or 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 const sum = (a: number, b: number): number => a + b |
This file contains hidden or 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
Show hidden characters
{ | |
"compilerOptions": { | |
"outDir": "build", | |
"module": "esnext", | |
"target": "es5", | |
"lib": ["es6", "dom", "es2016", "es2017"], | |
"sourceMap": true, | |
"allowJs": false, | |
"declaration": true, | |
"moduleResolution": "node", |
This file contains hidden or 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 typescript from 'rollup-plugin-typescript2' | |
import commonjs from 'rollup-plugin-commonjs' | |
import external from 'rollup-plugin-peer-deps-external' | |
import resolve from 'rollup-plugin-node-resolve' | |
import pkg from './package.json' | |
export default { | |
input: 'src/index.ts', | |
output: [ |
This file contains hidden or 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 { sum } from '../index' | |
test('Sum 4 + 5 = 9', () => { | |
expect(sum(4, 5)).toBe(9) | |
}) |
This file contains hidden or 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
build/ |