From 6929700e97d0e98cc9e91f34a830702c376a2fa2 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Sun, 21 Feb 2021 14:10:11 +0100 Subject: [PATCH] 0.1.1 --- .npmignore | 7 +++- package.json | 3 +- rollup.config.js | 55 ++++++++++++++----------- src/components/sliders/AnimatedPlane.js | 1 - src/index.css | 2 + 5 files changed, 40 insertions(+), 28 deletions(-) diff --git a/.npmignore b/.npmignore index 2204803..df065a9 100644 --- a/.npmignore +++ b/.npmignore @@ -1,2 +1,7 @@ docs -screenshots \ No newline at end of file +screenshots +.eslintrc.js +.gitignore +index.html +rollup.config.js +vite.config.js diff --git a/package.json b/package.json index c958999..33e387b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "troisjs", - "version": "0.1.0", + "version": "0.1.1", "scripts": { "dev": "vite", "build": "vite build", @@ -25,6 +25,7 @@ "eslint-plugin-standard": "^4.0.1", "eslint-plugin-vue": "^6.2.2", "rollup-plugin-vue": "^6.0.0-beta.10", + "rollup-plugin-terser": "^7.0.2", "sass": "^1.26.10", "vite": "^2.0.1" }, diff --git a/rollup.config.js b/rollup.config.js index d11f799..8ba3655 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,4 +1,4 @@ -import commonjs from '@rollup/plugin-commonjs'; +// import commonjs from '@rollup/plugin-commonjs'; import vue from 'rollup-plugin-vue'; import buble from '@rollup/plugin-buble'; import { terser } from "rollup-plugin-terser"; @@ -8,20 +8,25 @@ const input = 'src/export.js'; const external = [ 'three', 'three/examples/jsm/controls/OrbitControls.js', + 'three/examples/jsm/deprecated/Geometry.js', 'three/examples/jsm/loaders/GLTFLoader.js', 'three/examples/jsm/postprocessing/BokehPass.js', 'three/examples/jsm/postprocessing/EffectComposer.js', 'three/examples/jsm/postprocessing/FilmPass.js', 'three/examples/jsm/postprocessing/HalftonePass.js', 'three/examples/jsm/postprocessing/RenderPass.js', + 'three/examples/jsm/postprocessing/Pass.js', 'three/examples/jsm/postprocessing/SAOPass.js', + 'three/examples/jsm/postprocessing/SMAAPass.js', + 'three/examples/jsm/postprocessing/ShaderPass.js', 'three/examples/jsm/postprocessing/UnrealBloomPass.js', + 'three/examples/jsm/shaders/FXAAShader.js', 'gsap', 'vue', ]; const plugins = [ - commonjs(), + // commonjs(), vue(), buble({ // transforms: { forOf: false }, @@ -123,27 +128,27 @@ export default [ terser(), ], }, - { - input, - external, - output: { - format: 'cjs', - file: 'build/trois.js', - sourcemap: true, - }, - plugins, - }, - { - input, - external, - output: { - format: 'cjs', - file: 'build/trois.min.js', - sourcemap: true, - }, - plugins: [ - ...plugins, - terser(), - ], - }, + // { + // input, + // external, + // output: { + // format: 'cjs', + // file: 'build/trois.js', + // sourcemap: true, + // }, + // plugins, + // }, + // { + // input, + // external, + // output: { + // format: 'cjs', + // file: 'build/trois.min.js', + // sourcemap: true, + // }, + // plugins: [ + // ...plugins, + // terser(), + // ], + // }, ]; diff --git a/src/components/sliders/AnimatedPlane.js b/src/components/sliders/AnimatedPlane.js index df8c09c..4d034b2 100644 --- a/src/components/sliders/AnimatedPlane.js +++ b/src/components/sliders/AnimatedPlane.js @@ -1,5 +1,4 @@ import { - BufferGeometry, DoubleSide, Face3, InstancedBufferAttribute, diff --git a/src/index.css b/src/index.css index 0374d80..01ffd78 100644 --- a/src/index.css +++ b/src/index.css @@ -2,3 +2,5 @@ body { margin: 0; font-family: 'Montserrat', sans-serif; } + +body, html, #app, .app { height: 100%; } \ No newline at end of file