Final changes for NPM publish

This commit is contained in:
micku7zu 2017-02-24 00:27:03 +02:00
parent 4911c6e2c2
commit 6a6b2cefd0
7 changed files with 13 additions and 13 deletions

View file

@ -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',

View file

@ -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 () {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 () {

View file

@ -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 <mickuz7u@gmail.com>",
"author": "Sergiu Șandor <micku7zu@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/micku7zu/vanilla-tilt.js/issues"

View file

@ -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 {