Skip to content

Commit

Permalink
Issue #18 Migrate build to use Vite
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmas committed Mar 14, 2024
1 parent 7845f1f commit 7c63f92
Show file tree
Hide file tree
Showing 14 changed files with 2,110 additions and 6,129 deletions.
2 changes: 2 additions & 0 deletions dist/vue-authenticate.cjs.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/vue-authenticate.cjs.js.map

Large diffs are not rendered by default.

882 changes: 882 additions & 0 deletions dist/vue-authenticate.es.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/vue-authenticate.es.js.map

Large diffs are not rendered by default.

1,355 changes: 0 additions & 1,355 deletions dist/vue-authenticate.esm.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/vue-authenticate.esm.min.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions dist/vue-authenticate.umd.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/vue-authenticate.umd.js.map

Large diffs are not rendered by default.

1,363 changes: 0 additions & 1,363 deletions dist/vue-authenticate.umd.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/vue-authenticate.umd.min.js.map

This file was deleted.

4,564 changes: 1,191 additions & 3,373 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 13 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "vue-authenticate-2",
"version": "2.1.0",
"description": "Authentication library for Vue.js",
"module": "dist/vue-authenticate.esm.min.js",
"browser": "dist/vue-authenticate.umd.min.js",
"main": "dist/vue-authenticate.esm.min.js",
"module": "dist/vue-authenticate.es.js",
"browser": "dist/vue-authenticate.umd.js",
"main": "dist/vue-authenticate.es.js",
"types": "types/index.d.ts",
"typings": "types/index.d.ts",
"scripts": {
"build": "rollup -c",
"build": "vite build",
"lint": "eslint src",
"lint:fix": "eslint --fix src"
},
Expand Down Expand Up @@ -41,21 +41,19 @@
],
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.19.6",
"acorn": "^8.8.0",
"ajv": "^6.10.0",
"eslint": "^8.26.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.3.0",
"@vitejs/plugin-vue": "^5.0.4",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-vue": "^9.6.0",
"rollup": "^3.2.3"
"eslint-plugin-vue": "^9.23.0",
"vite": "^5.1.6"
},
"peerDependencies": {
"axios": "1.x",
"vue": "3.x"
"axios": "^1.6.7",
"vue": "^3.4.21"
},
"type": "module",
"tags": [
Expand Down
21 changes: 0 additions & 21 deletions rollup.config.js

This file was deleted.

17 changes: 17 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
build: {
sourcemap: true,
lib: {
// Could also be a dictionary or array of multiple entry points
entry: 'src/index.js',
name: 'vue-authenticate-2',
formats: ['es', 'cjs', 'umd'],
fileName: (format) => `vue-authenticate.${format}.js`,
},
}
})

0 comments on commit 7c63f92

Please sign in to comment.