Skip to content

Commit

Permalink
🎉 Feat: npm package supported (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Feb 19, 2022
1 parent a66e460 commit b35f403
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "cell-watermark",
"version": "1.0.3",
"description": "Create watermark for webpage and automatic adjust when window resize",
"main": "src/watermark.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Lruihao/watermark.git"
},
"keywords": [
"watermark",
"cell-watermark"
],
"author": "Lruihao",
"license": "MIT",
"bugs": {
"url": "https://github.com/Lruihao/watermark/issues"
},
"homepage": "https://github.com/Lruihao/watermark#readme"
}
12 changes: 10 additions & 2 deletions watermark.js → src/watermark.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/* global Watermark */

var Watermark = (function () {
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory());
} else if (typeof module === 'object' && module.exports) {
module.exports = factory();
} else {
root['Watermark'] = factory();
}
})(this, function () {
var _parentEle;
var _wmContainer;
var _wmObserver;
Expand Down Expand Up @@ -199,4 +207,4 @@ var Watermark = (function () {
};
}
return Watermark;
})();
});
1 change: 1 addition & 0 deletions src/watermark.min.js

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

1 change: 0 additions & 1 deletion watermark.min.js

This file was deleted.

0 comments on commit b35f403

Please sign in to comment.