Commit 3c820524 authored by Barath Kumar's avatar Barath Kumar

feat: add frontend config

parent d08a35be
# Browsers we support
> 1%
not dead
not ie <= 11
not op_mini all
# See http://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
node_modules
package-lock.json
yarn-error.log
npm-debug.log
data
# dev dependencies
.browserslistrc
.dockerignore
.eslintrc.js
.eslintignore
.flowconfig
.markdownlint.json
.prettierrc
.prettierignore
/Dockerfile
/docker-compose.yml
/flow-typed
/scripts
# CI / Deployment
.gitlab-ci.yml
/chart
# Docs
README.md
# test
coverage
codeclimate.html
# database
/data
# build output
build
# git
/.git
.gitignore
# misc
.DS_Store
.env
*.log
.truffle-solidity-loader
# secrets
*.crt
*.key
*.rsa
.env
.env.example
.ci-env
# tmp files
~*
.#*
.editorconfig
.cache-loader
.gitlab-ci
.vscode
Session.vim
coverage
flow-typed/npm
node_modules
module.exports = {
extends: [
'@brickblock/eslint-config-base',
'@brickblock/eslint-config-react'
]
}
[ignore]
.*/build/.*
[include]
[libs]
flow-typed
[lints]
all=warn
[options]
suppress_comment= \\(.\\|\n\\)*\\$FlowIgnore
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
module.system.node.resolve_dirname=node_modules
module.system.node.resolve_dirname=./src
[strict]
{
"default": true,
"MD013": {
"line_length": 160
}
}
\ No newline at end of file
package-lock=false
\ No newline at end of file
coverage
package.json
flow-typed/npm
{
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
# test directories
__tests__
test
tests
powered-test
# asset directories
docs
doc
website
images
# examples
example
examples
# code coverage directories
coverage
.nyc_output
# build scripts
Makefile
Gulpfile.js
Gruntfile.js
# configs
.tern-project
.gitattributes
.editorconfig
.*ignore
.eslintrc
.jshintrc
.flowconfig
.documentup.json
.yarn-metadata.json
.*.yml
*.yml
# misc
*.gz
*.md
# explicitly DON'T delete the following files and folders
!.svgo.yml
!esm.js.gz
!cypress/**/*
0.0.0.0:8080 {
root /srv
gzip
rewrite / {
if {path} not_starts_with /
to {path} {path}/ /
}
}
FROM node:10 as build
WORKDIR /app
# Copy dependency specifications first, so we only have to re-install
# dependencies when the package.json or yarn.lock change and can make
# full use of docker's layer caching
COPY package.json yarn.lock .npmrc .yarnclean /app/
RUN yarn install --frozen-lockfile
# Now copy the rest of the app into the container
COPY . /app
RUN yarn build
FROM abiosoft/caddy
COPY --from=build /app/build /srv
COPY Caddyfile /etc/Caddyfile
#!/bin/bash
#
# RUN ALL CHECKS
#
# https://sipb.mit.edu/doc/safe-shell/
set -euf -o pipefail
# What is chronic?
# Chronic runs a command quietly unless it fails to suppess overly verbose output
# It's part of moreutils (https://joeyh.name/code/moreutils/) and can be installed:
# - macOS: brew install moreutils
# - Debian: https://packages.debian.org/sid/utils/moreutils
# - Ubuntu: https://packages.ubuntu.com/search?keywords=moreutils
# - Alpine: https://pkgs.alpinelinux.org/package/edge/testing/x86/moreutils
required_binaries=(yarn chronic);
for binary in "${required_binaries[@]}"; do
type "$binary" >/dev/null 2>&1 || { echo >&2 "❌ ${binary} binary not found. Please install ${binary} before running this script."; exit 1; }
done
printf "1️⃣ Running linters…"
chronic yarn lint
printf " ✅\\n"
printf "2️⃣ Running flow typechecker…"
chronic yarn flow
printf " ✅\\n"
printf "3️⃣ Running application tests…"
CI=true chronic yarn test
printf " ✅\\n"
printf "4️⃣ Searching for open TODOs and FIXMEs in the code…\\n"
yarn todo
#!/bin/bash
# MIT © Sindre Sorhus - sindresorhus.com
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
}
# Usage
# In this example it's used to run `yarn` if yarn.lock changed
check_run yarn.lock "yarn install" || true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment