Skip to content

Commit

Permalink
Merge pull request #8 from grimmer0125/parcel
Browse files Browse the repository at this point in the history
Add parcel setting to build CDN bundle for browser script usage
  • Loading branch information
grimmer0125 authored Nov 11, 2021
2 parents 82d8c10 + 6af23cc commit 7e71383
Show file tree
Hide file tree
Showing 2 changed files with 3,562 additions and 91 deletions.
16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,21 @@
"name": "@d4c/numjs",
"version": "0.17.18",
"description": "Like NumPy, in TypeScript and JavaScript",
"source": "src/index.ts",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
"module": "build/module/index.js",
"targets": {
"main": false,
"module": {
"context": "browser",
"isLibrary": true,
"sourceMap": false,
"outputFormat": "esmodule",
"includeNodeModules": true
},
"types": false
},
"repository": "https://github.com/grimmer0125/numjs",
"homepage": "https://grimmer0125.github.io/numjs",
"license": "MIT",
Expand All @@ -30,14 +42,16 @@
"mocha": "^9.1.3",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"parcel": "^2.0.1",
"ts-node": "^10.2.1",
"typedoc": "^0.22.7",
"typescript": "^4.4.2"
},
"scripts": {
"build": "run-p build:*",
"build": "run-s build:parcel build:main build:module",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"build:parcel": "parcel build && mkdir -p dist && mv build/module/index.js dist/numjs.min.js",
"cov:html": "nyc report --reporter=html",
"doc:html": "typedoc src/lib/index.ts src/lib/ndarray.ts src/lib/errors.ts --out build/docs",
"doc:publish": "touch build/docs/.nojekyll && gh-pages -m \"[ci skip] Updates\" -d build/docs -t -r https://github.com/grimmer0125/numjs.git",
Expand Down
Loading

0 comments on commit 7e71383

Please sign in to comment.