@abtasty/promotional-banner 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # AB-tasty promotional-banner
2
+
3
+ This widget was generated using AB Tasty Widget CLI. You can find more infomation and documentation about widgets at https://abtasty.gitbooks.io/widget/.
4
+
5
+ ## Preview your widget
6
+
7
+ Launch your widget in a new window and watch for changes.
8
+ ```bash
9
+ npm start
10
+ ```
11
+
12
+ ## Main files
13
+
14
+ * `main.js`
15
+ Main source code of your widget
16
+ * `form.js`
17
+ Configuration form for your widget
18
+
19
+ You can specify each file location in the `package.json` like this:
20
+ ```json
21
+ "main": "dist/main.js",
22
+ "form": "dist/form.js",
23
+ ```
24
+
25
+ ## Included
26
+
27
+ * [Rollup.js](https://rollupjs.org/) module bundler (like Webpack but smaller and faster).
28
+ * ES6 support using [Babel](https://babeljs.io/).
29
+ * JavaScript Linting with [ESLint](http://eslint.org/) and [Airbnb style](https://github.com/airbnb/javascript).
30
+ * JavaScript minified with [UglifyJS](https://github.com/mishoo/UglifyJS2).
31
+ * [Prettier](https://prettier.io/) to format code.
32
+
33
+
34
+
35
+ **We heard your widget have an UI, so we allowed ourselves to include some extra:**
36
+ * [Pug](https://github.com/aMarCruz/rollup-plugin-pug) (aka Jade) to transforms html files into JS template.
37
+ * [PostCSS](https://github.com/egoist/rollup-plugin-postcss) to automatically append your CSS to head just using `import 'yourstyle.css'` and also use CSS plugins including:
38
+ * [CSSnext](http://cssnext.io/) to use the latest CSS syntax today.
39
+ * [cssnano](http://cssnano.co/) to minify CSS.
40
+
41
+
42
+
43
+ ## Add your widget to AB Tasty
44
+
45
+ 1. First, you'll need to have your widget on NPM:
46
+ * Create a minified bundle with `npm run build`
47
+ * Bump the version of your widget ([using semver](http://semver.org/)) with `npm version [patch|minor|major]`
48
+ * Publish it to NPM: `npm publish`
49
+ 2. Once your widget is on NPM, you can now add it on AB Tasty at https://marketplace.abtasty.com/publish.