Skip to content

Commit 9c6f445

Browse files
committed
feat: initial commit ✨
0 parents  commit 9c6f445

31 files changed

+19819
-0
lines changed

.circleci/config.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
version: 2.1
2+
3+
commands:
4+
yarn_install:
5+
description: Install Javascript dependencies using Yarn. This command correctly configures the cache for any number of package.json and yarn.lock files.
6+
steps:
7+
- run:
8+
name: Create cache checksum file
9+
command: |
10+
mkdir -p ~/.tmp/checksumfiles
11+
find . -type f -name 'package.json' -not -path "*node_modules*" -exec cat {} + >> ~/.tmp/checksumfiles/package.json
12+
find . -type f -name 'yarn.lock' -not -path "*node_modules*" -exec cat {} + >> ~/.tmp/checksumfiles/yarn.lock
13+
- restore_cache:
14+
name: Restore Yarn cache
15+
keys:
16+
- yarn-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ checksum "~/.tmp/checksumfiles/yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
17+
- run:
18+
name: Install dependencies with Yarn
19+
command: yarn install --non-interactive --cache-folder ~/.cache/yarn
20+
- save_cache:
21+
name: Save Yarn cache
22+
paths:
23+
- ~/.cache/yarn
24+
key: |
25+
yarn-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ checksum "~/.tmp/checksumfiles/yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
26+
executors:
27+
node_10:
28+
docker:
29+
- image: circleci/node:10
30+
environment:
31+
- PATH: '/opt/yarn/yarn-v1.5.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
32+
33+
jobs:
34+
test_node_10:
35+
executor: node_10
36+
steps:
37+
- checkout
38+
- yarn_install
39+
- run:
40+
name: Remove example directory
41+
command: rm -rf example
42+
- run:
43+
name: Run tests
44+
command: yarn test
45+
release:
46+
executor: node_10
47+
steps:
48+
- checkout
49+
- yarn_install
50+
- run:
51+
name: Release the package
52+
command: yarn semantic-release
53+
54+
workflows:
55+
version: 2
56+
test_and_release:
57+
jobs:
58+
- test_node_10
59+
- release:
60+
requires:
61+
- test_node_10

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Unignore dotfiles
2+
!.*
3+
4+
# Node.js
5+
**/node_modules/
6+
7+
# Compilation artifacts
8+
/dist/

.eslintrc.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/** @type {import('@alkafinance/eslint-config/eslint').ESLintConfig} */
2+
module.exports = {
3+
extends: [
4+
'@alkafinance/eslint-config',
5+
'@alkafinance/eslint-config-typescript',
6+
'@alkafinance/eslint-config-react/native',
7+
'@alkafinance/eslint-config-typescript/react-native',
8+
],
9+
rules: {
10+
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin
11+
'@typescript-eslint/no-magic-numbers': 'off',
12+
// https://github.com/benmosher/eslint-plugin-import
13+
'import/extensions': 'off',
14+
'import/no-unresolved': 'off',
15+
// https://github.com/Intellicode/eslint-plugin-react-native
16+
'react-native/no-color-literals': 'off',
17+
},
18+
overrides: [
19+
{
20+
files: ['*.js', '**/.*.js'],
21+
...require('@alkafinance/eslint-config/script'),
22+
},
23+
],
24+
};

.github/demo.gif

1.69 MB
Loading

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# macOS
2+
**/.DS_Store
3+
4+
# Node.js
5+
**/node_modules/
6+
**/.yarn-integrity
7+
8+
# Logs
9+
/logs/
10+
**/*.log
11+
**/npm-debug.log*
12+
**/yarn-debug.log*
13+
**/yarn-error.log*
14+
15+
# Compilation artifacts
16+
/dist/
17+
/example/.expo/
18+
19+
# ESLint
20+
/.eslintcache

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Node.js
2+
**/node_modules/
3+
**/package.json

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"editorconfig.editorconfig",
5+
"esbenp.prettier-vscode"
6+
]
7+
}

.vscode/settings.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"editor.formatOnSave": false,
3+
"editor.insertSpaces": true,
4+
"editor.rulers": [80],
5+
"editor.tabSize": 2,
6+
"[javascript]": {
7+
"editor.formatOnSave": true
8+
},
9+
"[javascriptreact]": {
10+
"editor.formatOnSave": true
11+
},
12+
"[typescript]": {
13+
"editor.formatOnSave": true
14+
},
15+
"[typescriptreact]": {
16+
"editor.formatOnSave": true
17+
},
18+
"[json]": {
19+
"editor.formatOnSave": true
20+
},
21+
"[jsonc]": {
22+
"editor.formatOnSave": true
23+
},
24+
"[yaml]": {
25+
"editor.formatOnSave": true
26+
},
27+
28+
"files.exclude": {
29+
"**/.git/": true,
30+
"**/.DS_Store": true,
31+
".eslintcache": true
32+
},
33+
"search.exclude": {
34+
"**/node_modules/": true
35+
},
36+
37+
"eslint.nodePath": "./node_modules",
38+
"eslint.options": {
39+
"extensions": [".js", ".ts", ".tsx"],
40+
"rules": {
41+
"padding-line-between-statements": "off"
42+
}
43+
},
44+
"eslint.validate": [
45+
"javascript",
46+
"javascriptreact",
47+
{
48+
"language": "typescript",
49+
"autoFix": true
50+
},
51+
{
52+
"language": "typescriptreact",
53+
"autoFix": true
54+
}
55+
],
56+
57+
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
58+
"javascript.implicitProjectConfig.checkJs": true,
59+
"javascript.suggestionActions.enabled": false,
60+
"javascript.validate.enable": true,
61+
"typescript.tsdk": "./node_modules/typescript/lib",
62+
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
63+
"typescript.disableAutomaticTypeAcquisition": true,
64+
"typescript.format.enable": false,
65+
"typescript.preferences.quoteStyle": "single",
66+
"typescript.preferences.renameShorthandProperties": true,
67+
68+
"emmet.showExpandedAbbreviation": "never"
69+
}

@types/react-native.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
declare module 'react-native/Libraries/vendor/emitter/EventEmitter' {
2+
import {EventEmitter} from 'react-native';
3+
4+
const EventEmitter: EventEmitter;
5+
6+
export = EventEmitter;
7+
}

0 commit comments

Comments
 (0)