Skip to content

Commit

Permalink
Merge pull request #234 from yanyiwu/dev2407
Browse files Browse the repository at this point in the history
[submodule] rm dict and deps, use submodules/cppjieba instead
  • Loading branch information
yanyiwu authored Jul 16, 2024
2 parents 35afbf9 + b71d3a1 commit db984c7
Show file tree
Hide file tree
Showing 46 changed files with 20 additions and 613,573 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "submodules/cppjieba"]
path = submodules/cppjieba
url = https://github.com/yanyiwu/cppjieba.git
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ console.log(nodejieba.cut("你好世界"))
node test.js
```


## 应用

+ 支持中文搜索的 gitbook 插件: [gitbook-plugin-search-pro]
Expand Down
8 changes: 6 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@
"VCCLCompilerTool": { "ExceptionHandling": 1 },
},
"win_delay_load_hook": "true",
"sources": ["./lib/index.cpp", "./lib/nodejieba.cpp"],
"sources": [
"./lib/index.cpp",
"./lib/nodejieba.cpp",
],
"cflags": [
"-DLOGGING_LEVEL=LL_WARNING"
],
"include_dirs" : [
"<!(node -p \"require('node-addon-api').include_dir\")",
"./deps"
"./submodules/cppjieba/include",
"./submodules/cppjieba/deps/limonp/include",
],
'configurations': {
'Release': {
Expand Down
277 changes: 0 additions & 277 deletions deps/cppjieba/DictTrie.hpp

This file was deleted.

Loading

0 comments on commit db984c7

Please sign in to comment.