-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
186 lines (186 loc) · 6.36 KB
/
package.json
File metadata and controls
186 lines (186 loc) · 6.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"name": "proj.js",
"version": "0.9.2",
"description": "PROJ bindings for JavaScript - with a native port for Node.js and a WASM port for the browser",
"type": "module",
"main": "./native/index.cjs",
"types": "./lib/index.d.mts",
"exports": {
".": {
"types": "./lib/index.d.mts",
"browser": "./wasm/index.mjs",
"default": "./native/index.mjs"
},
"./native": {
"types": "./native/index.d.cts",
"default": "./native/index.cjs"
},
"./wasm": {
"types": "./lib/index.d.mts",
"browser": "./wasm/index.mjs",
"default": "./wasm/index-node.mjs"
},
"./capi": {
"types": "./lib/capi.d.mts",
"browser": "./wasm/capi.mjs",
"default": "./native/capi.mjs"
},
"./proj.db": "./lib/binding/proj/proj.db",
"./quickstart": {
"types": "./test/shared/quickstart.d.ts",
"default": "./test/shared/quickstart.mjs"
},
"./quickstart-capi": {
"types": "./test/shared/quickstart-capi.d.ts",
"default": "./test/shared/quickstart-capi.mjs"
}
},
"scripts": {
"preinstall": "npx @mmomtchev/xpm run npm-preinstall",
"install": "npx xpm run npm-install",
"test": "npm run test:nodejs && npm run test:browser",
"test:nodejs": "npx mocha",
"test:browser": "cd test/browser && npx webpack --mode=production && npx karma start ./karma.conf.cjs",
"test:integration": "npx mocha test/integration.test.ts",
"configure:native": "npx xpm run prepare --config native",
"configure:native-xpack": "npx xpm run prepare --config native-xpack",
"configure:wasm": "npx xpm run prepare --config wasm",
"swig": "npx xpm run generate",
"build:native": "npm run configure:native && npx xpm run build --config native",
"build:native-xpack": "npm run configure:native-xpack && npx xpm run build --config native-xpack",
"build:wasm": "npm run configure:wasm && npx xpm run build --config wasm",
"build:webpack": "cd test/browser && npx webpack --mode=production",
"start": "cd test/browser && npx webpack serve --mode=production",
"build": "npm run build:native && npm run build:wasm",
"lint": "npx eslint",
"preversion": "npm run lint && npm run test",
"postversion": "git push && git push --tags && node ./scripts/publish-packages.mjs",
"postpublish": "gh workflow run test-package.yml -F package=proj.js@$npm_package_version",
"dev": "cd test/browser && npx webpack serve --mode=production",
"gcov": "mkdir -p coverage && cd coverage && gcov -o ../build/native/proj.node.p/swig_proj_wrap.cc.o ../swig/proj_wrap.cc",
"lcov": "npx c8 report --reporter=text-lcov > coverage/tests.lcov"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mmomtchev/proj.js.git"
},
"keywords": [
"PROJ",
"GIS",
"projection",
"maps",
"cartography",
"WGS",
"EPSG",
"javascript",
"node.js",
"node-api",
"napi",
"wasm",
"xpack"
],
"author": "Momtchil Momtchev <momtchil@momtchev.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/mmomtchev/proj.js/issues"
},
"homepage": "https://github.com/mmomtchev/proj.js#readme",
"dependencies": {
"@emnapi/runtime": "1.8.1",
"@mmomtchev/hadron": "^1.1.0",
"@mmomtchev/prebuild-install": "^1.0.2",
"@mmomtchev/xpm": "^0.21.1",
"emnapi": "1.8.1",
"node-addon-api": "^8.5.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^10.0.1",
"@octokit/core": "^7.0.3",
"@types/chai": "^5.0.1",
"@types/mocha": "^10.0.6",
"@types/node": "^25.0.0",
"@types/tar": "^7.0.87",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/parser": "^8.10.0",
"c8": "^11.0.0",
"chai": "^6.0.1",
"eslint": "^10.0.0",
"eslint-plugin-mocha": "^11.1.0",
"glob": "^13.0.0",
"globals": "^17.0.0",
"karma": "^6.4.3",
"karma-chrome-launcher": "^3.2.0",
"karma-mocha": "^2.0.1",
"karma-verbose-reporter": "^0.0.8",
"mocha": "github:mmomtchev/mocha#mmom",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.0.4"
},
"binary": {
"module_name": "proj",
"module_path": "./lib/binding/{platform}-{arch}",
"remote_path": "v{version}",
"host": "https://github.com/mmomtchev/proj.js/releases/download/",
"package_name": "{platform}-{arch}.tar.gz",
"hosting": {
"provider": "github",
"repo": "mmomtchev/proj.js"
},
"napi_versions": [
8
]
},
"xpack": {
"minimumXpmRequired": "0.20.0",
"include": [
"@mmomtchev/hadron/hadron.json"
],
"devDependencies": {
"@xpack-dev-tools/cmake": "3.31.9-1.1"
},
"properties": {
"module_name": "proj",
"native": true,
"wasm": true,
"flavor": "sync",
"conan": true,
"commandInit": "node -e \"fs.mkdirSync('swig', { recursive: true });\"",
"commandGenerate": "swig-jse -javascript -napi -typescript -c++ -std=c++17 -outdir swig -exports ../native/index.cjs -o swig{{ path.sep }}{{ properties.module_name }}_wrap.cc -Ideps{{ path.sep }}PROJ{{ path.sep }}include src{{ path.sep }}{{ properties.module_name }}.i",
"commandGenerateCAPI": "swig-jse -javascript -napi -typescript -c++ -std=c++17 -outdir swig -exports ../native/capi.cjs -o swig{{ path.sep }}capi_wrap.cc -Ideps{{ path.sep }}PROJ{{ path.sep }}include src{{ path.sep }}proj_capi.i"
},
"actions": {
"npm-preinstall": [
"{% ifNpmOption regenerate %}npx @mmomtchev/xpm run generate{% endifNpmOption %}"
],
"generate": [
"npx xpm install --config generate",
"npx xpm run generate --config generate"
]
},
"buildConfigurations": {
"generate": {
"devDependencies": {
"@mmomtchev/swig-xpack": "5.0.12-1"
},
"actions": {
"generate": [
"{{ properties.commandInit }}",
"{{ properties.commandGenerate }}",
"{{ properties.commandGenerateCAPI }}"
]
}
},
"native": {
"properties": {
"profileConanStandaloneBuild": "hadron{{ path.sep }}{{ properties.toolchain }}-{{ os.platform }}.profile",
"argsConanInstall": "{% ifNpmOption standalone_build %}-pr:a={{ properties.profileConanStandaloneBuild }}{% endifNpmOption %}"
}
}
}
}
}