Skip to content

Commit d6b8297

Browse files
committed
Initial commit
0 parents  commit d6b8297

Some content is hidden

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

41 files changed

+4273
-0
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
[*.{js,ts}]
12+
trim_trailing_whitespace = true
13+
charset = utf-8
14+
15+
16+
[{package.json,src/**.js,src/**.ts,spec/**.ts}]
17+
indent_style = space
18+
indent_size = 2

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
.nyc_output
3+
dist
4+
.DS_Store
5+
*.lcov

.nycrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"all": true,
3+
"include": [
4+
"src/**/*.ts"
5+
]
6+
}

.rollup.config.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import typescript from '@rollup/plugin-typescript';
2+
3+
import * as pkg from './package.json';
4+
5+
const banner = `/**
6+
* ${pkg.name} - ${pkg.description}
7+
* @version ${pkg.version}
8+
*
9+
* @copyright ${pkg.author}
10+
* @license ${pkg.license}
11+
*
12+
* Built at: ${Date()}
13+
*/`;
14+
15+
16+
const umd_build = {
17+
input: './src/index.ts',
18+
plugins: [
19+
typescript()
20+
],
21+
output: {
22+
banner,
23+
format: 'umd',
24+
file: './dist/leapdna.js',
25+
name: 'leapdna'
26+
}
27+
}
28+
29+
export default command => [umd_build];

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
node_js:
3+
- 12
4+
cache: yarn
5+
scripts:
6+
- npm install -g codecov
7+
- nyc npm test
8+
after_success:
9+
- "nyc report --reporter=text-lcov > coverage.lcov && codecov"

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Elias Hernandis
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.

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# leapdna.js
2+
3+
[![npm version](https://badge.fury.io/js/leapdna.svg)](https://badge.fury.io/js/leapdna)
4+
5+
A JavaScript implementation of the leapdna toolkit.
6+
7+
## Testing
8+
9+
Run `yarn test` to run the test suite. Tests are specified in `spec/`.
10+
11+
## Contributing
12+
13+
Contributions are welcome in any form!
14+
15+
## License
16+
17+
This project is released under the MIT License. See the `LICENSE` file for details.

0 commit comments

Comments
 (0)