Skip to content

Commit

Permalink
chore: upgrade libundler
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Mar 19, 2022
1 parent 28f9c03 commit 41152b3
Show file tree
Hide file tree
Showing 8 changed files with 1,624 additions and 8,142 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
# naivebayes

[![GitHub stars](https://img.shields.io/github/stars/surmon-china/naivebayes.svg?style=for-the-badge)](https://github.com/surmon-china/naivebayes/stargazers)
 
[![npm](https://img.shields.io/npm/v/naivebayes?color=%23c7343a&label=npm&style=for-the-badge)](https://www.npmjs.com/package/naivebayes)
 
[![GitHub issues](https://img.shields.io/github/issues-raw/surmon-china/naivebayes.svg?style=for-the-badge)](https://github.com/surmon-china/naivebayes/issues)
[![GitHub last commit](https://img.shields.io/github/last-commit/surmon-china/naivebayes.svg?style=for-the-badge)](https://github.com/surmon-china/naivebayes)
 
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=for-the-badge)](https://github.com/surmon-china/naivebayes/blob/master/LICENSE)


[![NPM](https://nodei.co/npm/naivebayes.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/naivebayes/)

Naive-Bayes classifier for JavaScript.
Expand Down
3 changes: 0 additions & 3 deletions abc.config.js

This file was deleted.

7 changes: 0 additions & 7 deletions dist/naivebayes.cjs.js

This file was deleted.

7 changes: 0 additions & 7 deletions dist/naivebayes.esm.js

This file was deleted.

7 changes: 0 additions & 7 deletions dist/naivebayes.js

This file was deleted.

10 changes: 10 additions & 0 deletions libundler.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from '@surmon-china/libundler'

export default defineConfig({
libName: 'NaiveBayes',
entry: 'src/naivebayes.js',
outDir: 'dist',
outFileName: 'naivebayes',
targets: ['esm', 'umd'],
sourcemap: false,
})
19 changes: 7 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "naivebayes",
"name": "NaiveBayes",
"version": "0.5.0",
"description": "Naive Bayes Classifier for JavaScript.",
"author": {
Expand All @@ -10,28 +10,23 @@
"type": "git",
"url": "git+https://github.com/surmon-china/naivebayes.git"
},
"main": "dist/naivebayes.js",
"main": "dist/naivebayes.umd.js",
"module": "dist/naivebayes.esm.js",
"browser": "dist/naivebayes.js",
"jsdelivr": "dist/naivebayes.js",
"unpkg": "dist/naivebayes.js",
"jspm": {
"main": "dist/naivebayes.esm.js",
"registry": "npm",
"format": "esm"
},
"browser": "dist/naivebayes.umd.js",
"jsdelivr": "dist/naivebayes.umd.js",
"unpkg": "dist/naivebayes.umd.js",
"files": [
"src",
"dist/*.js"
],
"scripts": {
"build": "rm -rf ./dist/* && abc build",
"build": "libundler",
"test": "node test/index.js"
},
"private": false,
"license": "MIT",
"devDependencies": {
"@surmon-china/abc-factory": "^0.3.0",
"@surmon-china/libundler": "^2.2.0",
"segment": "^0.1.3"
}
}
Loading

0 comments on commit 41152b3

Please sign in to comment.