Skip to content

Commit 1c6d7b1

Browse files
Initial commit
0 parents  commit 1c6d7b1

34 files changed

+11910
-0
lines changed

.babelrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"browsers": [
8+
"last 2 versions",
9+
"safari >= 7"
10+
],
11+
"node": "8"
12+
}
13+
}
14+
]
15+
],
16+
"plugins": [
17+
"@babel/plugin-proposal-class-properties"
18+
]
19+
}

.circleci/config.yml

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
5+
defaults: &defaults
6+
working_directory: ~/repo
7+
docker:
8+
- image: circleci/node:10.13.0
9+
10+
tag_matcher: &tag_matcher
11+
tags:
12+
only: /^v.*/
13+
branches:
14+
ignore: /.*/
15+
16+
version: 2
17+
jobs:
18+
test:
19+
<<: *defaults
20+
21+
steps:
22+
- checkout
23+
24+
# Download and cache dependencies
25+
- restore_cache:
26+
keys:
27+
- v1-dependencies-{{ checksum "package.json" }}
28+
# fallback to using the latest cache if no exact match is found
29+
- v1-dependencies-
30+
31+
- run:
32+
name: 'Install dependencies'
33+
command: npm install
34+
35+
- save_cache:
36+
paths:
37+
- node_modules
38+
key: v1-dependencies-{{ checksum "package.json" }}
39+
40+
- run:
41+
name: 'Lint project'
42+
command: npm run lint -- --format junit -o reports/eslint/results.xml
43+
44+
- run:
45+
name: 'Run tests'
46+
environment:
47+
JEST_JUNIT_OUTPUT: reports/jest/results.xml
48+
command: npm run test:all -- --runInBand --ci --reporters=default --reporters=jest-junit
49+
50+
- store_test_results:
51+
path: reports/
52+
53+
- store_artifacts:
54+
path: reports/
55+
56+
- persist_to_workspace:
57+
root: ~/repo
58+
paths: .
59+
60+
build:
61+
<<: *defaults
62+
63+
steps:
64+
- attach_workspace:
65+
at: ~/repo
66+
67+
- run: npm run build
68+
69+
- persist_to_workspace:
70+
root: ~/repo
71+
paths: .
72+
73+
deploy:
74+
<<: *defaults
75+
76+
steps:
77+
- attach_workspace:
78+
at: ~/repo
79+
- run:
80+
name: Authenticate with registry
81+
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
82+
- run:
83+
name: Release/Publish to github and npm
84+
command: npm run publish
85+
86+
workflows:
87+
version: 2
88+
test-build:
89+
jobs:
90+
- test
91+
- build:
92+
requires:
93+
- test
94+
95+
test-build-and-publish:
96+
jobs:
97+
- test:
98+
filters:
99+
<<: *tag_matcher
100+
- build:
101+
requires:
102+
- test
103+
filters:
104+
<<: *tag_matcher
105+
# - approve-deployment:
106+
# type: approval
107+
# requires:
108+
# - build
109+
# filters:
110+
# <<: *tag_matcher
111+
- deploy:
112+
requires:
113+
- build
114+
filters:
115+
<<: *tag_matcher

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 2
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.cmd]
13+
end_of_line = crlf
14+
15+
[*.md]
16+
trim_trailing_whitespace = false
17+
18+
[{package.json}]
19+
indent_style = space
20+
indent_size = 2

.eslintrc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parser": "babel-eslint",
3+
"parserOptions": {
4+
"ecmaFeatures": {
5+
"jsx": true,
6+
"modules": true
7+
}
8+
},
9+
"plugins": [
10+
"jest"
11+
],
12+
"extends": [
13+
"eslint:recommended",
14+
"airbnb-base"
15+
],
16+
"rules": {
17+
"import/prefer-default-export": "off",
18+
"no-restricted-globals": "off",
19+
"no-plusplus": "off"
20+
},
21+
"env": {
22+
"jest/globals": true
23+
},
24+
"globals": {
25+
"__DEV__": true,
26+
"TEST": true
27+
}
28+
}

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# IDES and tools
4+
.vscode/
5+
.idea/
6+
.DS_Store
7+
8+
# eslint
9+
.eslintcache
10+
11+
# Builds and temps
12+
lib/
13+
.coverage/
14+
.reports/
15+
16+
# dependencies
17+
/node_modules
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

CONTRIBUTING.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Contributing to reword-js
2+
3+
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
4+
5+
- Reporting a bug
6+
- Discussing the current state of the code
7+
- Submitting a fix
8+
- Proposing new features
9+
10+
## We Develop with Github
11+
12+
We use github to host code, to track issues and feature requests, as well as accept pull requests.
13+
14+
## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests
15+
16+
Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:
17+
18+
1. Create your branch from `master`.
19+
2. If you've added code that should be tested, add tests.
20+
3. If you've added or changed APIs, update the documentation.
21+
4. Ensure the test suite passes.
22+
5. Make sure your code lints.
23+
6. Issue that pull request!
24+
25+
## Any contributions you make will be under the MIT Software License
26+
27+
In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern.
28+
29+
## Report bugs using Github's [issues](https://github.com/briandk/transcriptase-atom/issues)
30+
31+
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](); it's that easy!
32+
33+
## Write bug reports with detail, background, and sample code
34+
35+
[This is an example](http://stackoverflow.com/q/12488905/180626) of a bug report I wrote, and I think it's not a bad model. Here's [another example](http://www.openradar.me/11905408).
36+
37+
**Great Bug Reports** tend to have:
38+
39+
- A quick summary and/or background
40+
- Steps to reproduce
41+
- Be specific!
42+
- Give sample code if you can
43+
- What you expected would happen
44+
- What actually happens
45+
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
46+
47+
People _love_ thorough bug reports. I'm not even kidding.
48+
49+
## Use a Consistent Coding Style
50+
51+
- Use prettier with eslint integration for formatting code
52+
- Use an `editor config` extendsion for your editor to respect indentation rules. (2 spaces)
53+
- You can try running `npm run lint` for style unification
54+
55+
## License
56+
57+
By contributing, you agree that your contributions will be licensed under its MIT License.
58+
59+
## References
60+
61+
This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Devbridge group, https://www.devbridge.com
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)