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
#!/bin/groovy | |
pipeline { | |
agent any | |
tools { | |
nodejs 'recent node' | |
} | |
stages { | |
stage('Prepare') { | |
steps { | |
script { |
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
version: '3' | |
services: | |
react-app: | |
image: reactApp:latest | |
deploy: | |
restart_policy: | |
condition: "any" | |
delay: "0" |
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
mkdir portainer portainer/data | |
echo 'Create docker web network' | |
docker network create --scope=swarm web | |
echo 'Running chmod on acme.json' | |
chmod 600 ./traefik/acme.json | |
echo 'Starting services....' | |
docker stack deploy proxy --compose-file docker-compose.yml |
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
version: '3' | |
services: | |
traefik: | |
image: traefik:1.7-alpine | |
restart: always | |
ports: | |
- 80:80 | |
- 443:443 | |
networks: |
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
debug = false | |
logLevel = "ERROR" | |
defaultEntryPoints = ["https","http"] | |
[entryPoints] | |
[entryPoints.http] | |
address = ":80" | |
[entryPoints.http.redirect] | |
entryPoint = "https" |
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 React from 'react'; | |
import DownShift from 'downshift'; | |
import { StyledInput, StyledLabel, ItemContainer, Item } from './Dropdown.styled'; | |
const items = [ | |
{ value: '🍎 apple' }, | |
{ value: '🍐 pear' }, | |
{ value: '🍌 banana' }, | |
{ value: '🍊 orange' }, |
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 styled from 'styled-components'; | |
const StyledInput = styled.input` | |
border-radius: 6px; | |
border: 1px solid #bdbdbd; | |
box-sizing: border-box; | |
padding: 10px 5px; | |
transition: all 0.2s ease-in-out; | |
width: 100%; |
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 Enzyme from 'enzyme'; | |
import * as Adapter from 'enzyme-adapter-react-16'; | |
Enzyme.configure({ | |
adapter: new Adapter() | |
}); |
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
{ | |
"roots": [ | |
"<rootDir>/src" | |
], | |
"transform": { | |
"^.+\\.tsx?$": "ts-jest" | |
}, | |
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(ts|tsx)$", | |
"testPathIgnorePatterns": [ | |
"./src/__tests__/setupEnzyme.ts" |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"allowSyntheticDefaultImports": true, | |
"jsx": "react", | |
"module": "amd", | |
"noImplicitAny": true, | |
"outDir": "./dist/", | |
"preserveConstEnums": true, | |
"removeComments": true, | |
"sourceMap": true, |
NewerOlder