Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove rollup and replace with esbuild #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
${{ runner.os }}-
- name: Install dependencies
run: |
npm i jest typescript rollup typedoc -g
npm i jest typescript esbuild typedoc -g
npm ci
- name: Test coverage
run: |
Expand Down
18 changes: 1 addition & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,11 @@ jobs:
${{ runner.os }}-
- name: Install dependencies
run: |
npm i jest typescript rollup typedoc -g
npm i jest typescript esbuild typedoc -g
npm ci
# - name: Test coverage
# run: |
# jest --coverage --ci
# - name: Coveralls Parallel
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.github_token }}
# parallel: true
# path-to-lcov: ./coverage/lcov.info # optional (default value)

# - name: Coveralls Finished
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.github_token }}
# parallel-finished: true
- name: build files, docs
run: |
NODE_OPTIONS=--max-old-space-size=9000 npm run build
# # tsc && rollup -c && typedoc && sitedown manual/ -b docs/manual
- name: Test coverage
run: |
npm run test:ci
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ import { LinearRegression } from 'scikitjs/dist/cjs/index.js'

For those that wish to use script src tags, simply

```js
<script src="https://unpkg.com/scikitjs/dist/web/index.min.js"></script>
```html
<script type="module">
import * as sk from 'https://cdn.skypack.dev/scikitjs'
// or alternatively you can pull the bundle from unpkg
import * as sk from "https://unpkg.com/scikitjs/dist/web/index.min.js"
</script>
```

This will expose a `scikitjs` object on the window which houses all of the libraries Estimators and functions.

## Simple Example

```js
Expand Down
Loading