Skip to content

Commit

Permalink
Update demo build
Browse files Browse the repository at this point in the history
  • Loading branch information
johndatserakis committed May 18, 2022
1 parent 1c17ab1 commit 20ea554
Show file tree
Hide file tree
Showing 13 changed files with 1,057 additions and 4,441 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG.md

## 4.0.3
## 4.0.4

- Upgrade package to support Vue 3. Vue 2 support can be found at `v3.4.2`. Thank you @danielelkington.

Expand Down
1 change: 1 addition & 0 deletions docs/assets/index.9c466f18.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/assets/index.9dbd9956.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/build.js

This file was deleted.

7 changes: 5 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous"
/>
<link href="/vue-simple-context-menu/main.css" rel="stylesheet"></head>
<script type="module" crossorigin src="/vue-simple-context-menu/assets/index.9dbd9956.js"></script>
<link rel="stylesheet" href="/vue-simple-context-menu/assets/index.9c466f18.css">
</head>

<body>
<div id="app"></div>
<script type="text/javascript" src="/vue-simple-context-menu/build.js"></script></body>

</body>
</html>
5 changes: 0 additions & 5 deletions docs/main.css

This file was deleted.

1 change: 0 additions & 1 deletion docs/main.css.map

This file was deleted.

1 change: 1 addition & 0 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@

<body>
<div id="app"></div>
<script type="module" src="/index.js"></script>
</body>
</html>
File renamed without changes.
22 changes: 6 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@vitejs/plugin-vue": "^2.3.3",
"@vue/compiler-sfc": "^3.2.31",
"@vue/test-utils": "^2.0.0-rc.18",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^24.8.0",
"babel-loader": "^8.0.6",
"cross-env": "^5.2.0",
"css-loader": "^3.0.0",
"file-loader": "^4.0.0",
"html-webpack-plugin": "^3.2.0",
"jest": "^24.8.0",
"jest-serializer-vue": "^2.0.2",
"mini-css-extract-plugin": "^0.11.2",
"minimist": "^1.2.0",
"regenerator-runtime": "^0.13.2",
"rimraf": "^3.0.2",
Expand All @@ -37,14 +32,9 @@
"rollup-plugin-terser": "^5.0.0",
"rollup-plugin-vue": "^6.0.0",
"sass": "^1.49.9",
"sass-loader": "^7.1.0",
"terser-webpack-plugin": "^1.3.0",
"vite": "^2.9.9",
"vue": "^3.2.31",
"vue-jest": "^5.0.0-alpha.10",
"vue-loader": "^17.0.0",
"webpack": "^4.34.0",
"webpack-cli": "^3.3.4",
"webpack-dev-server": "^3.7.2"
"vue-jest": "^5.0.0-alpha.10"
},
"jest": {
"moduleFileExtensions": [
Expand Down Expand Up @@ -84,14 +74,14 @@
"scripts": {
"build": "npm run test && npm run build:example && npm run build:library",
"build:es": "rollup --config rollup.config.js --format es --file dist/vue-simple-context-menu.esm.js",
"build:example": "rimraf docs && cross-env NODE_ENV=production webpack --progress --hide-modules --mode production",
"build:example": "rimraf docs && vite build",
"build:library": "rimraf dist && npm run build:umd & npm run build:es & npm run build:umd & npm run build:unpkg",
"build:umd": "rollup --config rollup.config.js --format umd --file dist/vue-simple-context-menu.umd.js",
"build:unpkg": "rollup --config rollup.config.js --format iife --file dist/vue-simple-context-menu.min.js",
"test": "jest",
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot"
"dev": "vite"
},
"sideEffects": false,
"unpkg": "dist/vue-simple-context-menu.min.js",
"version": "4.0.3"
"version": "4.0.4"
}
11 changes: 11 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
base: '/vue-simple-context-menu/', // For GitHub docs support
build: {
outDir: '../docs',
},
plugins: [vue()],
root: 'example',
});
120 changes: 0 additions & 120 deletions webpack.config.js

This file was deleted.

Loading

0 comments on commit 20ea554

Please sign in to comment.