mirror of
https://github.com/micku7zu/vanilla-tilt.js
synced 2024-06-08 16:52:13 +02:00
Final changes for NPM publish
This commit is contained in:
parent
4911c6e2c2
commit
6a6b2cefd0
8
build.js
8
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',
|
||||
|
|
2
dist/vanilla-tilt.babel.js
vendored
2
dist/vanilla-tilt.babel.js
vendored
|
@ -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 () {
|
||||
|
|
2
dist/vanilla-tilt.js
vendored
2
dist/vanilla-tilt.js
vendored
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue