From 370b5cc7fabf9df0f2b0c7cc58280432cbebe1cb Mon Sep 17 00:00:00 2001 From: Benjamin Boudreau Date: Sat, 26 May 2018 14:53:54 -0400 Subject: [PATCH] initial setup of widget --- .eslintrc | 16 + .gitignore | 1 + README.md | 56 + package-lock.json | 12332 ++++++++++++++++++++++++++++++++++++++++++++ package.json | 46 + src/index.js | 8 + src/widget.js | 41 + src/widget.scss | 17 + webpack.config.js | 47 + 9 files changed, 12564 insertions(+) create mode 100644 .eslintrc create mode 100644 .gitignore create mode 100644 README.md create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 src/index.js create mode 100644 src/widget.js create mode 100644 src/widget.scss create mode 100644 webpack.config.js diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..bedb322 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,16 @@ +{ + "env": { + "browser": true, + "jest": true + }, + "parser": "babel-eslint", + "extends": "airbnb", + "rules": { + "semi": [2, "never"], + "no-underscore-dangle": 0 + }, + "plugins": ["react"], + "settings": { + "import/resolver": "webpack" + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/README.md b/README.md new file mode 100644 index 0000000..9a24266 --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# Embeddable React Widget + +Easy creation of an embeddable widget. + +## Goal + +The create-react-app of embeddable widgets. + +## Features + +* Full ES6/ES2015 support (with Babel) +* Package fonts, css, json, javascripts together into one simple repository (with Webpack) +* No css tyling conflicts between the host page and the widget (with https://github.com/premasagar/cleanslate) +* Obfuscating of the widget code + +## What is an emeddable widget? + +* Usable using a simple `