Skip to content

Commit

Permalink
0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
klevron committed Mar 3, 2021
1 parent 92ffc04 commit 1c0fb60
Show file tree
Hide file tree
Showing 13 changed files with 3,047 additions and 1,917 deletions.
3,007 changes: 3,007 additions & 0 deletions build/trois.js

Large diffs are not rendered by default.

924 changes: 13 additions & 911 deletions build/trois.module.cdn.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/trois.module.cdn.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/trois.module.cdn.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/trois.module.cdn.min.js.map

Large diffs are not rendered by default.

925 changes: 14 additions & 911 deletions build/trois.module.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/trois.module.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/trois.module.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/trois.module.min.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "troisjs",
"version": "0.1.5",
"version": "0.1.6",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand All @@ -9,11 +9,10 @@
"dependencies": {
"gsap": "^3.5.1",
"three": "^0.125",
"vue": "^3.0.5"
"vue": "3.0.5"
},
"devDependencies": {
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-node-resolve": "^11.2.0",
"@rollup/plugin-replace": "^2.3.3",
"@vitejs/plugin-vue": "^1.1.4",
"@vue/compiler-sfc": "^3.0.5",
Expand Down
38 changes: 5 additions & 33 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import vue from 'rollup-plugin-vue';
import buble from '@rollup/plugin-buble';
import { terser } from "rollup-plugin-terser";
import replace from '@rollup/plugin-replace';
import resolve from '@rollup/plugin-node-resolve';

const input = 'src/export.js';
const external = [
Expand All @@ -26,7 +25,7 @@ const external = [
'vue',
];

const cdn_replaces = {
const cdnReplaces = {
'from \'vue\'': 'from \'https://unpkg.com/vue@3.0.5/dist/vue.esm-browser.prod.js\'',
'from \'three\'': 'from \'https://unpkg.com/three@0.125.2/build/three.module.js\'',
'from \'three/examples': 'from \'https://unpkg.com/three@0.125.2/examples',
Expand All @@ -53,7 +52,7 @@ export default [
sourcemap: true,
},
plugins: [
replace(cdn_replaces),
replace(cdnReplaces),
...plugins,
],
},
Expand All @@ -67,7 +66,7 @@ export default [
sourcemap: true,
},
plugins: [
replace(cdn_replaces),
replace(cdnReplaces),
...plugins,
terser(),
],
Expand Down Expand Up @@ -99,39 +98,12 @@ export default [
},
{
input,
external: [
'gsap',
'vue',
],
external,
output: {
format: 'cjs',
file: 'build/trois.js',
sourcemap: false,
},
plugins: [
...plugins,
resolve({
moduleDirectories: ['node_modules'],
}),
],
plugins,
},
// {
// input,
// external: [
// 'gsap',
// 'vue',
// ],
// output: {
// format: 'cjs',
// file: 'build/trois.min.js',
// sourcemap: true,
// },
// plugins: [
// ...plugins,
// resolve({
// moduleDirectories: ['node_modules'],
// }),
// terser(),
// ],
// },
];
39 changes: 0 additions & 39 deletions src/components/examples/Example1.vue

This file was deleted.

14 changes: 0 additions & 14 deletions src/components/examples/Matcap.vue

This file was deleted.

0 comments on commit 1c0fb60

Please sign in to comment.