-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bbb5571
Showing
34 changed files
with
24,570 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
version: 2.1 | ||
|
||
executors: | ||
default: | ||
docker: | ||
- image: circleci/node:14 | ||
working_directory: ~/project | ||
|
||
commands: | ||
attach_project: | ||
steps: | ||
- attach_workspace: | ||
at: ~/project | ||
|
||
jobs: | ||
install-dependencies: | ||
executor: default | ||
steps: | ||
- checkout | ||
- attach_project | ||
- restore_cache: | ||
keys: | ||
- dependencies-{{ checksum "package.json" }} | ||
- dependencies- | ||
- restore_cache: | ||
keys: | ||
- dependencies-example-{{ checksum "example/package.json" }} | ||
- dependencies-example- | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
yarn install --cwd example --frozen-lockfile | ||
yarn install --frozen-lockfile | ||
- save_cache: | ||
key: dependencies-{{ checksum "package.json" }} | ||
paths: node_modules | ||
- save_cache: | ||
key: dependencies-example-{{ checksum "example/package.json" }} | ||
paths: example/node_modules | ||
- persist_to_workspace: | ||
root: . | ||
paths: . | ||
|
||
lint: | ||
executor: default | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Lint files | ||
command: | | ||
yarn lint | ||
typescript: | ||
executor: default | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Typecheck files | ||
command: | | ||
yarn typescript | ||
unit-tests: | ||
executor: default | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Run unit tests | ||
command: | | ||
yarn test --coverage | ||
- store_artifacts: | ||
path: coverage | ||
destination: coverage | ||
|
||
build-package: | ||
executor: default | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Build package | ||
command: | | ||
yarn prepare | ||
deploy: | ||
executor: default | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Authenticate with registry | ||
command: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | ||
- run: | ||
name: Set git config ability to create commits | ||
command: | | ||
git config --global user.name $GIT_AUTHOR | ||
git config --global user.email $GIT_AUTHOR_EMAIL | ||
- run: | ||
name: Add GitHub to known_hosts | ||
command: | | ||
mkdir ~/.ssh | ||
touch ~/.ssh/known_hosts | ||
ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
- run: | ||
name: Publish package | ||
command: npm run release -- --ci --no-git.requireCleanWorkingDir | ||
|
||
workflows: | ||
build-and-deploy: | ||
jobs: | ||
- install-dependencies | ||
- lint: | ||
requires: | ||
- install-dependencies | ||
- typescript: | ||
requires: | ||
- install-dependencies | ||
- unit-tests: | ||
requires: | ||
- install-dependencies | ||
- build-package: | ||
requires: | ||
- install-dependencies | ||
- deploy: | ||
requires: | ||
- install-dependencies | ||
- lint | ||
- typescript | ||
- unit-tests | ||
- build-package | ||
filters: | ||
branches: | ||
only: master |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
|
||
indent_style = space | ||
indent_size = 2 | ||
|
||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# OSX | ||
# | ||
.DS_Store | ||
|
||
# XDE | ||
.expo/ | ||
|
||
# VSCode | ||
.vscode/ | ||
jsconfig.json | ||
|
||
# Xcode | ||
# | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
*.xccheckout | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcuserstate | ||
project.xcworkspace | ||
|
||
# Android/IJ | ||
# | ||
.idea | ||
.gradle | ||
local.properties | ||
android.iml | ||
|
||
# Cocoapods | ||
# | ||
example/ios/Pods | ||
|
||
# node.js | ||
# | ||
node_modules/ | ||
npm-debug.log | ||
yarn-debug.log | ||
yarn-error.log | ||
|
||
# BUCK | ||
buck-out/ | ||
\.buckd/ | ||
android/app/libs | ||
android/keystores/debug.keystore | ||
|
||
# Expo | ||
.expo/* | ||
|
||
# generated by bob | ||
lib/ |
Empty file.
Oops, something went wrong.