Skip to content

Commit

Permalink
Merge pull request #10 from JB1905/1-next
Browse files Browse the repository at this point in the history
v1.2.1
  • Loading branch information
JB1905 committed Nov 11, 2018
2 parents 1f2b013 + 8a55765 commit fea55e5
Show file tree
Hide file tree
Showing 8 changed files with 231 additions and 247 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
#### Bug Fix
- fix animation performance

## 1.2.1 (2018-11-11)
#### Bug Fix
- fixed bug with `window` global variable in Node.js

## 1.2.0 beta 1 / 1.2.0 (2018-10-15)
#### Breaking Changes
- replaced `mobile` option with `exclude` (disable tilt effect on selected user agents)
Expand Down
19 changes: 2 additions & 17 deletions lib/universal-tilt.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/universal-tilt.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/universal-tilt.min.js

Large diffs are not rendered by default.

423 changes: 210 additions & 213 deletions package-lock.json

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "universal-tilt.js",
"version": "1.2.0",
"version": "1.2.1",
"description": "Parallax tilt effect library",
"main": "lib/universal-tilt.min.js",
"scripts": {
Expand Down Expand Up @@ -29,20 +29,19 @@
},
"homepage": "https://github.com/JB1905/universal-tilt.js#readme",
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/preset-env": "^7.1.0",
"@babel/cli": "^7.1.5",
"@babel/core": "^7.1.5",
"@babel/preset-env": "^7.1.5",
"@babel/register": "^7.0.0",
"babel-loader": "^8.0.4",
"babel-plugin-add-module-exports": "^1.0.0",
"chai": "^4.2.0",
"gh-pages": "^2.0.1",
"jsdom": "12.2.0",
"jsdom": "13.0.0",
"jsdom-global": "^3.0.2",
"mocha": "^5.2.0",
"mock-local-storage": "^1.1.7",
"webpack": "^4.22.0",
"webpack-cli": "^3.1.2",
"yargs": "^12.0.2"
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2"
}
}
2 changes: 0 additions & 2 deletions src/index.js

This file was deleted.

11 changes: 6 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,25 @@ let outputFile, mode, devtool;

if (env === 'build') {
mode = 'production';
outputFile = libraryName + '.min.js';
outputFile = `${libraryName}.min.js`;
devtool = false;
} else {
mode = 'development';
outputFile = libraryName + '.js';
outputFile = `${libraryName}.js`;
devtool = 'source-map';
}

const config = {
mode,
entry: __dirname + '/src/index.js',
entry: `${__dirname}/src/${libraryName}.js`,
devtool,
output: {
path: __dirname + '/lib',
path: `${__dirname}/lib`,
filename: outputFile,
library: 'UniversalTilt',
libraryTarget: 'umd',
umdNamedDefine: true
umdNamedDefine: true,
globalObject: 'global'
},
module: {
rules: [
Expand Down

0 comments on commit fea55e5

Please sign in to comment.