File tree Expand file tree Collapse file tree 2 files changed +3562
-91
lines changed Expand file tree Collapse file tree 2 files changed +3562
-91
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " @d4c/numjs" ,
3
3
"version" : " 0.17.18" ,
4
4
"description" : " Like NumPy, in TypeScript and JavaScript" ,
5
+ "source" : " src/index.ts" ,
5
6
"main" : " build/main/index.js" ,
6
7
"typings" : " build/main/index.d.ts" ,
7
8
"module" : " build/module/index.js" ,
9
+ "targets" : {
10
+ "main" : false ,
11
+ "module" : {
12
+ "context" : " browser" ,
13
+ "isLibrary" : true ,
14
+ "sourceMap" : false ,
15
+ "outputFormat" : " esmodule" ,
16
+ "includeNodeModules" : true
17
+ },
18
+ "types" : false
19
+ },
8
20
"repository" : " https://github.com/grimmer0125/numjs" ,
9
21
"homepage" : " https://grimmer0125.github.io/numjs" ,
10
22
"license" : " MIT" ,
30
42
"mocha" : " ^9.1.3" ,
31
43
"npm-run-all" : " ^4.1.5" ,
32
44
"nyc" : " ^15.1.0" ,
45
+ "parcel" : " ^2.0.1" ,
33
46
"ts-node" : " ^10.2.1" ,
34
47
"typedoc" : " ^0.22.7" ,
35
48
"typescript" : " ^4.4.2"
36
49
},
37
50
"scripts" : {
38
- "build" : " run-p build:* " ,
51
+ "build" : " run-s build:parcel build:main build:module " ,
39
52
"build:main" : " tsc -p tsconfig.json" ,
40
53
"build:module" : " tsc -p tsconfig.module.json" ,
54
+ "build:parcel" : " parcel build && mkdir -p dist && mv build/module/index.js dist/numjs.min.js" ,
41
55
"cov:html" : " nyc report --reporter=html" ,
42
56
"doc:html" : " typedoc src/lib/index.ts src/lib/ndarray.ts src/lib/errors.ts --out build/docs" ,
43
57
"doc:publish" : " touch build/docs/.nojekyll && gh-pages -m \" [ci skip] Updates\" -d build/docs -t -r https://github.com/grimmer0125/numjs.git" ,
You can’t perform that action at this time.
0 commit comments