From 6fa0a44d094c541fd54c4c5d94e5d1d17558a3a4 Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Sat, 26 Aug 2017 21:42:22 -0700 Subject: [PATCH 1/4] chore(ignore): update ignore list --- .npmignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.npmignore b/.npmignore index b1467cd..c1e6b4b 100644 --- a/.npmignore +++ b/.npmignore @@ -9,6 +9,7 @@ src/ test/ !dist/src examples/ +symbols/ .travis.yml appveyor.yml jest-cld.json @@ -16,4 +17,6 @@ jest-cld-asm.json tsconfg.json tslint.json wallaby.js -dist/src/lib/README.md \ No newline at end of file +dist/src/lib/README.md +commitlint.config.js +tsconfig.json \ No newline at end of file From d20ecca377fc0fbf6e15fcc35796f18bd3289d2d Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Sat, 26 Aug 2017 21:42:39 -0700 Subject: [PATCH 2/4] docs(readme): update example link --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca8cce3..9668839 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,11 @@ create(minBytes?: number, maxBytes?: number): LanguageIdentifier `LanguageIdentifier` exposes minimal interfaces to cld3's `NNetLanguageIdentifier`. -- `findLanguage: (text: string): Readonly` : Finds the most likely language for the given text. +- `findLanguage(text: string): Readonly` : Finds the most likely language for the given text. - `findMostFrequentLanguages(text: string, numLangs: number): Array>` : Splits the input text into spans based on the script, predicts a language for each span, and returns a vector storing the top num_langs most frequent languages - `dispose(): void` : Destroy current instance of language identifier. It is important to note created instance will not be destroyed automatically. -There are simple [examples]() for each environments using different apis. In each example directory do `npm install && npm start`. +There are simple [examples](https://github.com/kwonoj/cld3-asm/tree/master/examples) for each environments. In each example directory do `npm install && npm start`. # Building / Testing From 63796437d687ae97b9d45ee352f774f4bf2b4d2d Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Sat, 26 Aug 2017 21:42:53 -0700 Subject: [PATCH 3/4] chore(package): update build script --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b65da49..9388302 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ ] }, "scripts": { - "prepublish": "npm prune && npm run build", + "prepublishOnly": "npm-run-all build test", "precommit": "lint-staged", "prepush": "npm-run-all build test", "commitmsg": "commitlint -e", @@ -30,7 +30,7 @@ "test": "npm-run-all test:*", "lint": "tslint --type-check -c tslint.json -p tsconfig.json \"src/**/*.ts\" \"spec/**/*.ts\"", "lint:staged": "lint-staged", - "build": "npm-run-all build:clean && tsc", + "build": "shx rm -rf ./dist && tsc && shx cp -r ./src/lib ./dist/src", "build:clean": "shx rm -rf ./dist", "commit": "git-cz -S", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s" From 1d4fd5822f8ad35b3f9e05b03228a836b13b8b90 Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Sat, 26 Aug 2017 21:43:12 -0700 Subject: [PATCH 4/4] chore(release): release 0.0.1 --- CHANGELOG.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..36db58a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,24 @@ + +## 0.0.1 (2017-08-27) + + +### Bug Fixes + +* **findmostfrequentlanguages:** update type definition ([ecdf032](https://github.com/kwonoj/cld3-asm/commit/ecdf032)) +* **findmostfrequentlanguages:** utf8 encode input ([b7c0b48](https://github.com/kwonoj/cld3-asm/commit/b7c0b48)) + + +### Features + +* **cld3:** add initial cld3 binaries ([3825273](https://github.com/kwonoj/cld3-asm/commit/3825273)) +* **cld3:** bump up cld3 ([398eb97](https://github.com/kwonoj/cld3-asm/commit/398eb97)) +* **cldasmmodule:** export asm module interfaces ([9c2f119](https://github.com/kwonoj/cld3-asm/commit/9c2f119)) +* **cldfactory:** export cldfactory interfaces ([bb4e308](https://github.com/kwonoj/cld3-asm/commit/bb4e308)) +* **cldloader:** implement cldloader ([c1b061c](https://github.com/kwonoj/cld3-asm/commit/c1b061c)) +* **index:** export loadModule ([3435c69](https://github.com/kwonoj/cld3-asm/commit/3435c69)) +* **index:** setup index export ([ea05fe5](https://github.com/kwonoj/cld3-asm/commit/ea05fe5)) +* **loadmodule:** implement loadmodule ([1ead2ec](https://github.com/kwonoj/cld3-asm/commit/1ead2ec)) +* **util:** add utility implementation ([cca4c79](https://github.com/kwonoj/cld3-asm/commit/cca4c79)) + + +