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": { | |
"declaration": true, | |
"declarationDir": "build", | |
"module": "esnext", | |
"target": "es5", | |
"lib": ["es6", "dom", "es2016", "es2017"], | |
"sourceMap": true, | |
"jsx": "react", | |
"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
module.exports = { | |
roots: ["<rootDir>/src"], | |
transform: { | |
"^.+\\.tsx?$": "ts-jest", | |
}, | |
preset: "ts-jest", | |
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$", | |
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "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
{ | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"ecmaVersion": 2020, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true | |
} | |
}, | |
"settings": { |
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 commonjs from "@rollup/plugin-commonjs"; | |
import resolve from "@rollup/plugin-node-resolve"; | |
import peerDepsExternal from "rollup-plugin-peer-deps-external"; | |
import typescript from "rollup-plugin-typescript2"; | |
import packageJson 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 React from "react"; | |
import styled from "styled-components"; | |
import { TextField } from "@thepeaklab/styled-material-ui"; | |
const StyledTextField = styled(TextField)` | |
& .input { | |
background-color: #eeeeee; | |
} | |
`; | |
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
const dev = { | |
API_ENDPOINT: "" | |
}; | |
const prod = { | |
API_ENDPOINT: "" | |
}; | |
const config = process.env.REACT_APP_STAGE === "production" ? prod : 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
### STAGE 1: Build ### | |
FROM node:9.11.1 as build | |
RUN mkdir /usr/src/app | |
WORKDIR /usr/src/app | |
ENV PATH /usr/src/app/node_modules/.bin:$PATH | |
COPY package.json /usr/src/app/package.json | |
RUN npm install --silent | |
RUN npm install react-scripts -g --silent | |
COPY . /usr/src/app | |
RUN npm run build |
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 default { | |
name: 'Hello World', | |
data() { | |
return { | |
msg: 'Hello World', | |
}; | |
}, | |
}; |
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
# Enable recursive globbing in Bash: | |
shopt -s globstar | |
# Then, a simple loop, replacing the output filename: | |
for f in **/*.mkv; do avconv -i "$f" -c copy "${f%.mkv}.mp4"; done |
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
cd ~/.vagrant.d/boxes/BaseBoxName/virtualbox | |
openssl sha1 *.vmdk *.ovf > box.mf |