Skip to content

Commit 3d33602

Browse files
bessbdmojito317ricellisemlavervmatyus
authored
Import initial code (#1)
Co-authored-by: Ildikó Eigel <17944122+mojito317@users.noreply.github.com> Co-authored-by: Rich Ellis <ricellis@users.noreply.github.com> Co-authored-by: Esteban Laver <emlaver@us.ibm.com> Co-authored-by: Veronika Mátyus <26717393+vmatyusgithub@users.noreply.github.com> Co-authored-by: Eric Avdey <eiri@eiri.ca>
1 parent 8a77287 commit 3d33602

63 files changed

Lines changed: 40668 additions & 27 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.bumpversion.cfg‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[bumpversion]
2+
current_version = 0.0.5
3+
parse = ^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
4+
serialize =
5+
{major}.{minor}.{patch}-{prerelease}+{buildmetadata}
6+
{major}.{minor}.{patch}-{prerelease}
7+
{major}.{minor}.{patch}+{buildmetadata}
8+
{major}.{minor}.{patch}
9+
10+
[bumpversion:file:README.md]
11+
search = {current_version}
12+
replace = {new_version}

‎.eslintignore‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# http://eslint.org/docs/user-guide/configuring#ignoring-files-and-directories
2+
jsdoc/
3+
doc/
4+
coverage/
5+
dist/
6+
node_modules/
7+
examples/**/node_modules/
8+
9+
test/resources/auth.js
10+
# ignore emitted js
11+
**/*v*.js
12+
!test/**/*.js
13+
lib/*.js
14+
scripts/typedoc/
15+
16+
cloudant/v1.js
17+
test/unit/cloudant.v1.test.js

‎.eslintrc.js‎

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/**
2+
* © Copyright IBM Corporation 2020. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
module.exports = {
17+
'env': {
18+
'node': true,
19+
},
20+
'plugins': ['node', 'prettier', 'header'],
21+
'extends': [
22+
'eslint:recommended',
23+
'google',
24+
'plugin:node/recommended',
25+
'prettier',
26+
'plugin:import/errors',
27+
'plugin:import/warnings',
28+
'plugin:import/typescript',
29+
],
30+
'rules': {
31+
'prettier/prettier': ['error', { 'singleQuote': true, 'printWidth': 100 }],
32+
'prefer-const': 'error',
33+
'prefer-rest-params': 'off', // https://github.com/mysticatea/eslint-plugin-node/issues/63
34+
// The rest of these override rules that are enabled by one of the configs we extend but not compatible with current codebase
35+
// todo: fix issues and then remove overrides here
36+
'valid-jsdoc': 'off', // too many issues; drowns out everything else
37+
'camelcase': 'off', // todo: determine if we should keep this off globally, or disable it on a per-line basis
38+
'import/extensions': 'off',
39+
'header/header': [
40+
2,
41+
'block',
42+
[
43+
'*',
44+
{
45+
pattern:
46+
' * © Copyright IBM Corporation 20\\d\\d(?:, 20\\d\\d)?\\. All Rights Reserved\\.',
47+
template: ' * © Copyright IBM Corporation 2020. All Rights Reserved.',
48+
},
49+
' *',
50+
' * Licensed under the Apache License, Version 2.0 (the "License");',
51+
' * you may not use this file except in compliance with the License.',
52+
' * You may obtain a copy of the License at',
53+
' *',
54+
' * http://www.apache.org/licenses/LICENSE-2.0',
55+
' *',
56+
' * Unless required by applicable law or agreed to in writing, software',
57+
' * distributed under the License is distributed on an "AS IS" BASIS,',
58+
' * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.',
59+
' * See the License for the specific language governing permissions and',
60+
' * limitations under the License.',
61+
' ',
62+
],
63+
],
64+
},
65+
settings: {
66+
'import/resolver': {
67+
node: {
68+
paths: ['lib', 'test'],
69+
extensions: ['.js', '.ts'],
70+
moduleDirectory: ['node_modules'],
71+
},
72+
},
73+
},
74+
};
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
List the steps that can be used to demonstrate the bug. Include the name of the service and operation that you're trying to invoke, if applicable. Be sure to describe any relevant info regarding parameter values used with your API invocation.
15+
16+
**Expected behavior**
17+
A clear and concise description of what you expected to happen.
18+
19+
**Screenshots**
20+
If applicable, add screenshots to help explain your problem.
21+
22+
**Must gather (please complete the following information):**
23+
- SDK Version [e.g. 1.2.1]
24+
- Node Version [e.g. 12.2]
25+
- Name of service that you're trying to use (if applicable)
26+
- Name of operation that you're trying to invoke (if applicable)
27+
28+
**Additional context**
29+
Add any other context about the problem here.
30+
Were you able to avoid the problem by changing your application code slightly?
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

‎.github/dco.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This enables DCO bot - https://github.com/probot/dco for more details.
2+
# Exclude org members from DCO sign-off on commits
3+
require:
4+
members: false

‎.github/pull_request_template.md‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## PR summary
2+
3+
<!-- please include a brief summary of the changes in this PR -->
4+
5+
Fixes: <! -- link to issue -->
6+
7+
**Note: An existing issue is [required](https://github.com/IBM/cloudant-node-sdk/blob/master/CONTRIBUTING.md#PRs) before opening a PR.**
8+
9+
## PR Checklist
10+
11+
Please make sure that your PR fulfills the following requirements:
12+
13+
- [ ] The commit message follows the
14+
[Angular Commit Message Guidelines](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines).
15+
- [ ] Tests for the changes have been added (for bug fixes / features)
16+
- [ ] Docs have been added / updated (for bug fixes / features)
17+
18+
## PR Type
19+
<!-- Please check the one that applies to this PR using "x". -->
20+
- [ ] Bugfix
21+
- [ ] Feature
22+
- [ ] Code style update (formatting, local variables)
23+
- [ ] Refactoring (no functional changes, no api changes)
24+
- [ ] New tests
25+
- [ ] Build/CI related changes
26+
- [ ] Documentation content changes
27+
- [ ] Other (please describe)
28+
29+
## What is the current behavior?
30+
<!-- Please describe the current behavior that you are modifying. -->
31+
32+
## What is the new behavior?
33+
<!-- Please describe the new behavior after your change. -->
34+
35+
## Does this PR introduce a breaking change?
36+
37+
- [ ] Yes
38+
- [ ] No
39+
40+
<!-- If this PR contains a breaking change, please describe the impact and
41+
migration path for existing applications below. -->
42+
43+
## Other information
44+
45+
<!-- Please add any additional information that would help reviewers evaluate
46+
your PR-->

‎.gitignore‎

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
### Specific to this repository ###
2+
# tsc outputs
3+
lib/*.js
4+
auth/*.js
5+
**/*.d.ts
6+
**/*.js.map
7+
8+
# service-specific tsc outputs (js files)
9+
# IGNORE YOUR SERVICE FILES HERE
10+
11+
# file holding service credentials
12+
test/resources/auth.js
13+
14+
# release folder for typescript-generated source files
15+
dist/
16+
17+
### GitHub recommended ###
18+
# Logs
19+
logs
20+
*.log
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# Runtime data
26+
pids
27+
*.pid
28+
*.seed
29+
*.pid.lock
30+
31+
# Directory for instrumented libs generated by jscoverage/JSCover
32+
lib-cov
33+
34+
# Coverage directory used by tools like istanbul
35+
coverage
36+
37+
# nyc test coverage
38+
.nyc_output
39+
40+
# Compiled binary addons (https://nodejs.org/api/addons.html)
41+
build/Release
42+
43+
# Dependency directories
44+
node_modules/
45+
46+
# TypeScript v1 declaration files
47+
typings/
48+
49+
# Optional npm cache directory
50+
.npm
51+
52+
# Optional eslint cache
53+
.eslintcache
54+
55+
# Optional REPL history
56+
.node_repl_history
57+
58+
# Output of 'npm pack'
59+
*.tgz
60+
61+
# Yarn Integrity file
62+
.yarn-integrity
63+
64+
# dotenv environment variables file
65+
*.env
66+
67+
# next.js build output
68+
.next
69+
70+
# MacOS
71+
.DS_Store
72+
73+
# IDE files
74+
.idea
75+
.vscode/
76+
77+
# secrets.tar produced by scripts/update-auth-file.sh
78+
secrets.tar
79+
80+
.project
81+
.classpath
82+
83+
# SDK generator
84+
.openapi-generator*

‎.npmignore‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
test
2+
coverage
3+
.travis.yml
4+
scripts/
5+
tslint.json
6+
.eslintrc.js
7+
.eslintcache
8+
.eslintignore
9+
.github
10+
Jenkinsfile
11+
*.env
12+
stubs/
13+
.releaserc
14+
.prettierrc.js
15+
CODE_OF_CONDUCT.md
16+
CONTRIBUTING.md
17+
KNOWN_ISSUES.md

‎.prettierrc.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
trailingComma: "es5",
3+
singleQuote: true,
4+
printWidth: 100,
5+
quoteProps: 'preserve',
6+
};

0 commit comments

Comments
 (0)