Skip to content

Commit

Permalink
feat: first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioramos committed May 27, 2020
0 parents commit f9766ee
Show file tree
Hide file tree
Showing 21 changed files with 47,571 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
dist
build
.build
logfile
.nyc_output
coverage
node_modules

.git/*
.DS_Store
.npmrc
.yarnclean
.eslintignore
.prettierignore
.upignore
.npmignore
.gitignore
.dockerignore
.yarnrc
.haxt
.flowconfig
.firebaserc
.graphqlconfig
.editorconfig
.next
_next

license
yarn.lock
Dockerfile.*
Dockerfile

_env*ac
.env.*
*.env
*.ico
*.html
*.xml
*.log
*.svg
*.map
*.png
*.snap
*.txt
*.sketch
*.ttf
*.eot
*.ttf
*.woff
*.woff2
*.out
*.dms
*.sh
*.tar.gz
*.pem
*.jpg
*.gif
*.graphcool
*.re
*.wasm
*.yml
*.toml
*.jar
*.zip
111 changes: 111 additions & 0 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Continuous Integration

on: push

jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: technote-space/auto-cancel-redundant-job@v1
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '13.x'
- name: Setup Cache
uses: actions/cache@v1
with:
path: .yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable
env:
YARN_CHECKSUM_BEHAVIOR: update

###############################################################################
# COMMITLINT #
###############################################################################
commitlint:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Commit Lint
uses: wagoid/commitlint-github-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

###############################################################################
# ESLINT #
###############################################################################
eslint:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '13.x'
- name: Setup Cache
uses: actions/cache@v1
with:
path: .yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: ESLint
run: yarn run eslint

###############################################################################
# TEST #
###############################################################################
test:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '13.x'
- name: Setup Cache
uses: actions/cache@v1
with:
path: .yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
# - name: Test
# run: yarn run test
# - uses: devmasx/coverage-check-action@v1.1.0
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# result_path: coverage/lcov.info
# min_coverage: 90
# type: lcov

###############################################################################
# RELEASE #
###############################################################################
release:
needs: [test, eslint, commitlint]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get branch
uses: rlespinasse/github-slug-action@1.1.0
# - name: Release
# uses: ridedott/release-me-action@master
# if: ${{ env.GITHUB_REF_SLUG == 'master' }}
# with:
# node-module: true
# env:
# GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continuous Delivery

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '13.x'
registry-url: https://npm.pkg.github.com/
scope: '@sergioramos'
- name: Install dependencies
run: yarn install --immutable
env:
YARN_CHECKSUM_BEHAVIOR: update
# - name: Publish
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
168 changes: 168 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
### Testing ###
/coverage

### Production ###
/build
/dist
/.next

### Misc ###
.env

### Yarn ###
yarn-debug.log*
yarn-error.log*

### Bower ###
bower_components
.bower-cache
.bower-registry
.bower-tmp

### Git ###
*.orig

### macOS ###
*.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


### Node ###
# Logs
logs
*.log
npm-debug.log*
*.out

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
coverage.html

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages
package-lock.json

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz


### SublimeText ###
# cache files for sublime text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# workspace files are user-specific
*.sublime-workspace

# project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using SublimeText
# *.sublime-project

# sftp configuration file
sftp-config.json

# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
bh_unicode_properties.cache

# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings


### Vim ###
# swap
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags


### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

### Application Specific ###
.lighthouseci
.yarn/cache
.yarn/install-state.gz
.yarn/build-state.yml
.yarn/unplugged
.npmrc
.serverless

0 comments on commit f9766ee

Please sign in to comment.