@abtasty/scratchcard 1.1.2 → 1.2.0-0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +46 -0
- package/dist/form.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +3 -3
package/README.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# Scratch Card Widget
|
2
|
+
|
3
|
+
Forked from the **Image Popin Widget**.
|
4
|
+
|
5
|
+
A simple popin displaying scratchcad and content.
|
6
|
+
|
7
|
+
## Preview your widget
|
8
|
+
|
9
|
+
Launch your widget in a new window and watch for changes.
|
10
|
+
```bash
|
11
|
+
npm start
|
12
|
+
```
|
13
|
+
|
14
|
+
## Main files
|
15
|
+
|
16
|
+
* `main.js`
|
17
|
+
Main source code of your widget
|
18
|
+
* `form.js`
|
19
|
+
Configuration form for your widget
|
20
|
+
* `icon.png`
|
21
|
+
Icon for your widget (recommended size: 200x200px)
|
22
|
+
|
23
|
+
You can specify each file location in the `package.json` like this:
|
24
|
+
```json
|
25
|
+
"main": "dist/main.js",
|
26
|
+
"form": "dist/form.js",
|
27
|
+
"icon": "icon.png",
|
28
|
+
```
|
29
|
+
|
30
|
+
## Included
|
31
|
+
|
32
|
+
* [Rollup.js](https://rollupjs.org/) module bundler (like Webpack but smaller and faster).
|
33
|
+
* ES6 support using [Babel](https://babeljs.io/).
|
34
|
+
* JavaScript Linting with [ESLint](http://eslint.org/) and [Airbnb style](https://github.com/airbnb/javascript).
|
35
|
+
* JavaScript minified with [UglifyJS](https://github.com/mishoo/UglifyJS2).
|
36
|
+
* [Prettier](https://prettier.io/) to format code.
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
## Add your widget to AB Tasty
|
41
|
+
|
42
|
+
1. First, you'll need to have your widget on NPM:
|
43
|
+
* Create a minified bundle with `npm run build`
|
44
|
+
* Bump the version of your widget ([using semver](http://semver.org/)) with `npm version [patch|minor|major]`
|
45
|
+
* Publish it to NPM: `npm publish`
|
46
|
+
2. Once your widget is on NPM, you can now add it on AB Tasty at https://marketplace.abtasty.com/publish.
|