Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinnot committed Oct 2, 2019
0 parents commit fd7b1c5
Show file tree
Hide file tree
Showing 65 changed files with 19,523 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 1

update_configs:
- package_manager: 'javascript'
allowed_updates:
- match:
dependency_type: 'direct'
update_type: 'all'
directory: '/'
update_schedule: 'live'
version_requirement_updates: 'increase_versions'
commit_message:
prefix: 'chore'
include_scope: true
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

8 changes: 8 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
env:
es6: true
node: true
extends: '@ridedott/eslint-config'
parserOptions:
ecmaVersion: 10
project: tsconfig.json
sourceType: module
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Autodetect text files
* text=auto eol=lf

# Definitively text files
*.js text
*.json text
*.md text
*.ts text
*.yaml text
*.yml text
58 changes: 58 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
name: Bug
about: Report an issue
labels: bug
---

**How would you describe the issue?**

<!--
Give us short description of the issue, just to understand some context without
diving too deep into it.
-->

**What is the name of the function?**

<!--
If you see issues with a particular function or collection? Let us know here, so
it's easier to locate the issue.
-->

**Which platforms are affected?**

<!--
Did you test the behavior on various platforms? It helps us understand how wide
spread the issue is.
-->

- [ ] Android
- [ ] iOS
- [ ] Web

**How can we reproduce the issue?**

<!--
If you can provide a code sample, regardless of the language, we'll be grateful.
It simplifies the debugging process a lot when we know how to trigger an invalid
behavior.
-->

**What are the expected results?**

<!--
Understanding your expectations helps us to improve the codebase in a correct
way. We're all people, we can see things in a different way.
-->

**What are the actual results?**

<!--
It's easier to focus efforts if we can easily compare expectations with reality.
-->

**How much does it hurt?**

<!--
The better we understand you, the better we can help. Your input will help us
prioritize the bug fix correctly.
-->
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/LIMITATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Limitation
about: Tell us about your needs
labels: enhancement
---

**What do you want to achieve?**

<!--
Give us short description of the use case you're facing that cannot be handled
in a good way using existing functionalities, so we can understand what the
expectations are.
-->

**What is the current way of working?**

<!--
Do you use some workarounds, manual processes? An explanation gives use a better
overview of the current impact on business operations.
-->

**How much does it hurt?**

<!--
The better we understand you, the better we can help. Your input will help us
prioritize this functionality correctly.
-->
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
This Pull Request fulfills the following requirements:

- [ ] The commit message follows our guidelines.
- [ ] Tests for the changes have been added if needed.
- [ ] Does not affect documentation or it has been added or updated.
- [ ] Does not introduce cycles into the flow of execution.

<!--
Example: Resolves #1234
This allows PRs to be resolved automatically once the PR is merged to a base
branch. The following line should be removed if the PR does not affect any open
issues.
-->

Resolves #

<!--
Link to a PR with a documentation update:
-->
42 changes: 42 additions & 0 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Continuous Deployment

on:
push:
branches:
- master

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: actions/setup-node@v1
with:
node-version: 12
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
registry-url: 'https://npm.pkg.github.com'
scope: 'ridedott'
always-auth: true

- uses: actions/setup-node@v1
with:
node-version: 12
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
registry-url: 'https://registry.npmjs.org'
scope: 'ridedott'
always-auth: true

- env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm ci --unsafe-perm

- env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > /home/runner/work/_temp/.npmrc
echo "//registry.npmjs.org/:_authToken=$GITHUB_TOKEN" >> /home/runner/work/_temp/.npmrc
npx semantic-release
68 changes: 68 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Continuous Integration

on: push

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run format
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: 12
- env:
CI: true
run: npm ci
- run: npm run lint
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: 12
- env:
CI: true
run: npm ci
- run: npm run spellcheck
types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: 12
- env:
CI: true
run: npm ci
- run: npm run types
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: 12
- env:
CI: true
run: npm ci
- run: npm test
48 changes: 48 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Firebase
.runtimeconfig.json

# Cache files
.cache
*.cache

# Runtime environment supports npm an Yarn lockfiles. A decision was made to use
# npm, therefore all other lock files are ignored.
pnpm-lock.yaml
yarn.lock

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

# Dependency directories
node_modules

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# MacOS-specific files
.DS_Store

# Coverage output
coverage

# Include distribution files, as Actions are directly clonned and run.
!dist/*
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package.json
package-lock.json
3 changes: 3 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
proseWrap: 'always'
singleQuote: true
trailingComma: 'all'
34 changes: 34 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
branch: master
ci: false
dryRun: true
debug: false
plugins:
- - '@semantic-release/commit-analyzer'
- releaseRules:
- type: build
release: patch
- type: ci
release: patch
- type: chore
release: patch
- type: docs
release: patch
- type: refactor
release: patch
- type: style
release: patch
- type: test
release: patch
- '@semantic-release/release-notes-generator'
- '@semantic-release/changelog'
- '@semantic-release/npm'
- - '@semantic-release/git'
- assets:
- package.json
- package-lock.json
- CHANGELOG.md
message: "chore(release): ${nextRelease.version}\n\n[skip ci]"
- - '@semantic-release/github'
- failComment: false
releasedLabels: false
successComment: false
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
"orta.vscode-jest",
"richie5um2.vscode-sort-json",
"streetsidesoftware.code-spell-checker"
]
}
23 changes: 23 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"bashBeautify.tabSize": 2,
"cSpell.diagnosticLevel": "Error",
"cSpell.ignorePaths": [
".eslintrc",
"*.config.js",
"*.json",
"*.log",
"*.yaml",
"**/*.json",
"lib/**",
"node_modules/**"
],
"eslint.autoFixOnSave": true,
"eslint.codeAction.showDocumentation": {
"enable": true
},
"eslint.enable": true,
"eslint.provideLintTask": true,
"eslint.run": "onType",
"eslint.validate": ["typescript"],
"typescript.tsdk": "./node_modules/typescript/lib"
}
Empty file added CHANGELOG.md
Empty file.
4 changes: 4 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# See https://help.github.com/articles/about-codeowners/
# for more info about CODEOWNERS file

* @ridedott/platform
Loading

0 comments on commit fd7b1c5

Please sign in to comment.