Skip to content

Commit

Permalink
feat: use standard-version and conventional-commits (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpshr committed Jun 27, 2019
1 parent 26e4868 commit 9d9a6a0
Show file tree
Hide file tree
Showing 22 changed files with 7,524 additions and 1,862 deletions.
16 changes: 0 additions & 16 deletions .babelrc

This file was deleted.

74 changes: 55 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
checkout:
docker:
- image: circleci/node:10-browsers
- image: circleci/node:12-browsers
working_directory: ~/repo
steps:
- checkout
Expand All @@ -16,58 +12,86 @@ jobs:

install:
docker:
- image: circleci/node:10-browsers
- image: circleci/node:12-browsers
working_directory: ~/repo
steps:
- attach_workspace:
at: ~/repo
- restore_cache:
keys:
- v4-dependencies-{{ checksum "yarn.lock" }}
- v4-dependencies- # fallback to latest cache if no exact match is found
- v2-yarn-dependencies-{{ checksum "yarn.lock" }}
- v2-yarn-dependencies- # fallback to latest cache if no exact match is found
- run: yarn install --frozen-lockfile
- save_cache:
key: v4-dependencies-{{ checksum "yarn.lock" }}
key: v2-yarn-dependencies-{{ checksum "yarn.lock" }}
paths:
- node_modules
- flow-typed
- .yarn-cache

build:
docker:
- image: circleci/node:12-browsers
working_directory: ~/repo
steps:
- attach_workspace:
at: ~/repo
- restore_cache:
keys:
- v2-yarn-dependencies-{{ checksum "yarn.lock" }}
- v2-yarn-dependencies- # fallback to latest cache if no exact match is found
- run: DEBUG=abstract:* yarn flow

lint:
docker:
- image: circleci/node:12-browsers
working_directory: ~/repo
steps:
- attach_workspace:
at: ~/repo
- restore_cache:
keys:
- v2-yarn-dependencies-{{ checksum "yarn.lock" }}
- v2-yarn-dependencies- # fallback to latest cache if no exact match is found
- run: DEBUG=abstract:* yarn lint

test:
docker:
- image: circleci/node:10-browsers
- image: circleci/node:12-browsers
working_directory: ~/repo
steps:
- attach_workspace:
at: ~/repo
- restore_cache:
keys:
- v4-dependencies-{{ checksum "yarn.lock" }}
- v4-dependencies- # fallback to latest cache if no exact match is found
- run: DEBUG=abstract:* yarn ci
- v2-yarn-dependencies-{{ checksum "yarn.lock" }}
- v2-yarn-dependencies- # fallback to latest cache if no exact match is found
- run: DEBUG=abstract:* yarn test

deploy:
docker:
- image: circleci/node:10-browsers
- image: circleci/node:12-browsers
working_directory: ~/repo
steps:
- attach_workspace:
at: ~/repo
- restore_cache:
keys:
- v4-dependencies-{{ checksum "yarn.lock" }}
- v4-dependencies- # fallback to latest cache if no exact match is found
- v2-yarn-dependencies-{{ checksum "yarn.lock" }}
- v2-yarn-dependencies- # fallback to latest cache if no exact match is found
- run: sh .circleci/deploy

publish:
docker:
- image: circleci/node:10-browsers
- image: circleci/node:12-browsers
working_directory: ~/repo
steps:
- attach_workspace:
at: ~/repo
- restore_cache:
keys:
- v4-dependencies-{{ checksum "yarn.lock" }}
- v4-dependencies- # fallback to latest cache if no exact match is found
- v2-yarn-dependencies-{{ checksum "yarn.lock" }}
- v2-yarn-dependencies- # fallback to latest cache if no exact match is found
- run: npm publish --access public

tagged: &tagged
Expand All @@ -92,18 +116,30 @@ workflows:
<<: *any
requires:
- checkout
- build:
<<: *any
requires:
- install
- lint:
<<: *any
requires:
- install
- test:
<<: *any
requires:
- install
- deploy:
<<: *any
requires:
- build
- lint
- test
filters:
branches:
only: docs
- publish:
<<: *tagged
requires:
- build
- lint
- test
8 changes: 4 additions & 4 deletions .circleci/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

BUCKET=abstract-sdk-website

# make sure aws cli is installed first
# Install the AWS CLI
sudo apt-get update
sudo apt-get install -y awscli

# generate the static HTML
# Generate static HTML
cd website
yarn install --frozen-lockfile
yarn run build

# Upload all assets first, then upload html
# Upload assets then HTML
aws s3 cp ./build/abstract-sdk/ s3://$BUCKET/ --recursive --include "*" --acl public-read

# Purge the fastly cache
# Purge Fastly cache
curl -X POST --header "Fastly-Key: $FASTLY_TOKEN" https://api.fastly.com/service/6ArsCpVh1jHIbscuig0Ric/purge_all
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

14 changes: 0 additions & 14 deletions .flowconfig-ci

This file was deleted.

8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
.yarn-cache
/lib
/website/build/
/website/i18n/*
/website/translated_docs
/website/i18n/
coverage
flow-typed
node_modules
npm-debug.log
package-lock.json
yarn-error.log
yarn.lock
run.js
coverage
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v12.4.0
6 changes: 1 addition & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"flow.useNPMPackagedFlow": true,
"flow.runOnAllFiles": true,
"typescript.format.enable": false,
"javascript.validate.enable": false,
"javascript.format.enable": false
"javascript.validate.enable": false
}
3 changes: 0 additions & 3 deletions .yarnrc

This file was deleted.

Loading

0 comments on commit 9d9a6a0

Please sign in to comment.