diff --git a/build.js b/build.js index 2633c9d..8b63bb1 100644 --- a/build.js +++ b/build.js @@ -63,13 +63,13 @@ rollup({ bundle.write({ moduleName: 'VanillaTilt', format: 'iife', - dest: pkg.dist, + dest: pkg.distrib, }).then(() => { - const code = minify(pkg.dist, { + const code = minify(pkg.distrib, { mangle: {except: ['VanillaTilt']} }).code; - fs.writeFileSync(pkg.dist.replace('.js', '.min.js'), code); + fs.writeFileSync(pkg.distrib.replace('.js', '.min.js'), code); return bundle; }) }).catch(err => console.log(err.stack)); @@ -87,7 +87,7 @@ rollup({ ], external: external }).then((bundle) => { - const dest = pkg.dist.replace('.js', '.babel.js'); + const dest = pkg.distrib.replace('.js', '.babel.js'); bundle.write({ moduleName: 'VanillaTilt', format: 'iife', diff --git a/dist/vanilla-tilt.babel.js b/dist/vanilla-tilt.babel.js index 4462d11..ad46a33 100644 --- a/dist/vanilla-tilt.babel.js +++ b/dist/vanilla-tilt.babel.js @@ -11,7 +11,7 @@ var classCallCheck = function (instance, Constructor) { * Created by Șandor Sergiu (micku7zu) on 1/27/2017. * Original idea: https://github.com/gijsroge/tilt.js * MIT License. - * Version 1.2.1 + * Version 1.3.0 */ var VanillaTilt = function () { diff --git a/dist/vanilla-tilt.js b/dist/vanilla-tilt.js index 8a7805b..2fe8d3b 100644 --- a/dist/vanilla-tilt.js +++ b/dist/vanilla-tilt.js @@ -5,7 +5,7 @@ var VanillaTilt = (function () { * Created by Șandor Sergiu (micku7zu) on 1/27/2017. * Original idea: https://github.com/gijsroge/tilt.js * MIT License. - * Version 1.2.1 + * Version 1.3.0 */ class VanillaTilt { diff --git a/lib/vanilla-tilt.es2015.js b/lib/vanilla-tilt.es2015.js index 0664420..20c9e61 100644 --- a/lib/vanilla-tilt.es2015.js +++ b/lib/vanilla-tilt.es2015.js @@ -2,7 +2,7 @@ * Created by Șandor Sergiu (micku7zu) on 1/27/2017. * Original idea: https://github.com/gijsroge/tilt.js * MIT License. - * Version 1.2.1 + * Version 1.3.0 */ class VanillaTilt { diff --git a/lib/vanilla-tilt.js b/lib/vanilla-tilt.js index 55829f0..ceed1f4 100644 --- a/lib/vanilla-tilt.js +++ b/lib/vanilla-tilt.js @@ -10,7 +10,7 @@ var classCallCheck = function (instance, Constructor) { * Created by Șandor Sergiu (micku7zu) on 1/27/2017. * Original idea: https://github.com/gijsroge/tilt.js * MIT License. - * Version 1.2.1 + * Version 1.3.0 */ var VanillaTilt = function () { diff --git a/package.json b/package.json index 437cc31..eb4c09f 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "vanilla-tilt", - "version": "1.2.1", + "version": "1.3.0", "description": "A smooth 3D tilt javascript library forked from Tilt.js", "main": "lib/vanilla-tilt.js", - "dist": "dist/vanilla-tilt.js", "module": "lib/vanilla-tilt.es2015.js", "jsnext:main": "lib/vanilla-tilt.es2015.js", + "distrib": "dist/vanilla-tilt.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "npm run build:lib && cp ./README.md ./lib", @@ -43,7 +43,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/micku7zu/vanilla-tilt.js.git" + "url": "https://github.com/micku7zu/vanilla-tilt.js.git" }, "keywords": [ "tilt", @@ -54,7 +54,7 @@ "smooth", "tilt.js" ], - "author": "Sergiu Șandor ", + "author": "Sergiu Șandor ", "license": "MIT", "bugs": { "url": "https://github.com/micku7zu/vanilla-tilt.js/issues" diff --git a/src/vanilla-tilt.js b/src/vanilla-tilt.js index fadf56f..7fac9b8 100644 --- a/src/vanilla-tilt.js +++ b/src/vanilla-tilt.js @@ -2,7 +2,7 @@ * Created by Șandor Sergiu (micku7zu) on 1/27/2017. * Original idea: https://github.com/gijsroge/tilt.js * MIT License. - * Version 1.2.1 + * Version 1.3.0 */ export default class VanillaTilt {