Skip to content

Commit 0c67dc9

Browse files
committed
Initial release
0 parents  commit 0c67dc9

27 files changed

+16044
-0
lines changed

.gitignore

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
# Only exists if Bazel was run
8+
/bazel-out
9+
10+
# dependencies
11+
/node_modules
12+
13+
# profiling files
14+
chrome-profiler-events*.json
15+
speed-measure-plugin*.json
16+
17+
# IDEs and editors
18+
/.idea
19+
.project
20+
.classpath
21+
.c9/
22+
*.launch
23+
.settings/
24+
*.sublime-workspace
25+
26+
# misc
27+
/.sass-cache
28+
/connect.lock
29+
/coverage
30+
/libpeerconnection.log
31+
npm-debug.log
32+
yarn-error.log
33+
testem.log
34+
/typings
35+
36+
# System Files
37+
.DS_Store
38+
Thumbs.db

.npmignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
src/
2+
*.spec.ts
3+
*.spec.d.ts
4+
*.spec.js
5+
node_modules/
6+
.idea/
7+
.github/
8+
tsconfig.json
9+
package-lock.json

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
## 0.0.1
4+
5+
- Initial release.

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Cothema s.r.o.
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

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# @cothema/ngx-nlp-sdk
2+
3+
SDK for natural language processing (NLP) TypeScript packages.
4+
5+
[![NPM version](https://img.shields.io/npm/v/@cothema/ngx-nlp-sdk.svg?style=flat)](https://www.npmjs.com/package/@cothema/ngx-nlp-sdk)
6+
[![NPM downloads](https://img.shields.io/npm/dm/@cothema/ngx-nlp-sdk.svg?style=flat)](https://www.npmjs.com/package/@cothema/ngx-nlp-sdk)
7+
8+
## Installation
9+
10+
```bash
11+
npm install @cothema/ngx-nlp-sdk
12+
```
13+
14+
## Build
15+
16+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
17+
18+
## Running unit tests
19+
20+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
21+
22+
## Running end-to-end tests
23+
24+
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
25+
26+
## Further help
27+
28+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.

angular.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"$schema": "node_modules/@angular/cli/lib/config/schema.json",
3+
"cli": {
4+
"analytics": "e617edd9-a9f6-4243-8f10-7bacfff22a7a"
5+
},
6+
"version": 1,
7+
"newProjectRoot": "projects",
8+
"projects": {
9+
"sdk": {
10+
"projectType": "library",
11+
"root": "",
12+
"sourceRoot": "src",
13+
"prefix": "lib",
14+
"architect": {
15+
"build": {
16+
"builder": "@angular-devkit/build-angular:ng-packagr",
17+
"options": {
18+
"tsConfig": "tsconfig.lib.json",
19+
"project": "ng-package.json"
20+
},
21+
"configurations": {
22+
"production": {
23+
"tsConfig": "tsconfig.lib.prod.json"
24+
}
25+
}
26+
},
27+
"test": {
28+
"builder": "@angular-devkit/build-angular:karma",
29+
"options": {
30+
"main": "src/test.ts",
31+
"tsConfig": "tsconfig.spec.json",
32+
"karmaConfig": "karma.conf.js"
33+
}
34+
},
35+
"lint": {
36+
"builder": "@angular-devkit/build-angular:tslint",
37+
"options": {
38+
"tsConfig": [
39+
"tsconfig.lib.json",
40+
"tsconfig.spec.json"
41+
],
42+
"exclude": [
43+
"node_modules/**"
44+
]
45+
}
46+
}
47+
}
48+
}
49+
},
50+
"defaultProject": "sdk"
51+
}

barrelsby.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"directory": "src",
3+
"delete": true,
4+
"include": [".ts$"],
5+
"exclude": [".spec.ts$", "src/test.ts"],
6+
"name": "public-api.ts"
7+
}

karma.conf.js

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Karma configuration file, see link for more information
2+
// https://karma-runner.github.io/1.0/config/configuration-file.html
3+
4+
module.exports = function (config) {
5+
config.set({
6+
basePath: 'sdk',
7+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
8+
plugins: [
9+
require('karma-jasmine'),
10+
require('karma-chrome-launcher'),
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage'),
13+
require('@angular-devkit/build-angular/plugins/karma')
14+
],
15+
client: {
16+
jasmine: {
17+
// you can add configuration options for Jasmine here
18+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19+
// for example, you can disable the random execution with `random: false`
20+
// or set a specific seed with `seed: 4321`
21+
},
22+
clearContext: false // leave Jasmine Spec Runner output visible in browser
23+
},
24+
jasmineHtmlReporter: {
25+
suppressAll: true // removes the duplicated traces
26+
},
27+
coverageReporter: {
28+
dir: require('path').join(__dirname, '../../coverage/sdk'),
29+
subdir: '.',
30+
reporters: [
31+
{ type: 'html' },
32+
{ type: 'text-summary' }
33+
]
34+
},
35+
reporters: ['progress', 'kjhtml'],
36+
port: 9876,
37+
colors: true,
38+
logLevel: config.LOG_INFO,
39+
autoWatch: true,
40+
browsers: ['Chrome'],
41+
singleRun: false,
42+
restartOnFileChange: true
43+
});
44+
};

ng-package.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "node_modules/ng-packagr/ng-package.schema.json",
3+
"dest": "dist",
4+
"lib": {
5+
"entryFile": "src/public-api.ts"
6+
}
7+
}

0 commit comments

Comments
 (0)