Skip to content

Commit

Permalink
Final changes for NPM publish
Browse files Browse the repository at this point in the history
  • Loading branch information
micku7zu committed Feb 23, 2017
1 parent 4911c6e commit 6a6b2ce
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion dist/vanilla-tilt.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion dist/vanilla-tilt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion lib/vanilla-tilt.es2015.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion lib/vanilla-tilt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/vanilla-tilt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6a6b2ce

Please sign in to comment.