Thibault Malbranche 453b7dd3a0
feat(typescript): Source code rewrite using typescript (#425)
Rewrote the whole repository into typescript. This will provide way better and up to date documentation. This should also add some safety for people contributing 😄 .
Flow types were not working until now which is why this PR doesn't have them but feel free to PR.

This also fixes #384 #435 #206 #171 #168.
2019-03-20 12:35:13 +00:00

67 lines
1.3 KiB
YAML

defaults: &defaults
working_directory: ~/code
docker:
- image: circleci/node:10.6.0-browsers
version: 2
jobs:
setup:
<<: *defaults
steps:
- checkout
- restore_cache:
name: Restore node modules
keys:
- node_modules-{{ arch }}-{{ checksum "yarn.lock" }}
- run:
name: Install dependencies
command: yarn --pure-lockfile
- save_cache:
name: Save node modules
key: node_modules-{{ arch }}-{{ checksum "yarn.lock" }}
paths:
- node_modules
tests:
<<: *defaults
steps:
- checkout
- restore_cache:
name: Restore node modules
keys:
- node_modules-{{ arch }}-{{ checksum "yarn.lock" }}
- run:
name: Run Tests
command: yarn ci
publish:
<<: *defaults
steps:
- checkout
- restore_cache:
name: Restore node modules
keys:
- node_modules-{{ arch }}-{{ checksum "yarn.lock" }}
- run:
name: Publish to NPM
command: yarn ci:publish
workflows:
version: 2
ci:
jobs:
- setup
- tests:
requires:
- setup
- publish:
requires:
- tests
filters:
branches:
only: master