diff --git a/.eslintrc b/.eslintrc
index c10de0c1..8f6cd62a 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,28 +1,10 @@
env:
browser: true
+ es6: true
parser: babel-eslint
-
plugins: [ "react" ]
-# enable ECMAScript features
-ecmaFeatures:
- arrowFunctions: true
- binaryLiterals: true
- blockBindings: true
- classes: true
- defaultParams: true
- destructuring: true
- forOf: true
- generators: true
- jsx: true
- modules: true
- objectLiteralShorthandMethods: true
- objectLiteralShorthandProperties: true
- octalLiterals: true
- spread: true
- templateStrings: true
-
rules:
# Possible Errors
# https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
diff --git a/.gitignore b/.gitignore
index 54664d63..76dc6e31 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ dist/
node_modules/
npm-debug.log
.DS_Store
+.tern-project
diff --git a/.storybook/config.js b/.storybook/config.js
index 21edff7e..1977c69a 100644
--- a/.storybook/config.js
+++ b/.storybook/config.js
@@ -2,7 +2,6 @@ import { configure } from '@kadira/storybook';
import '../src/index.css';
function loadStories() {
- require('../src/containers/stories/');
require('../src/components/stories/');
}
diff --git a/.storybook/webpack.config.js b/.storybook/webpack.config.js
index 08191f16..e62e19d4 100644
--- a/.storybook/webpack.config.js
+++ b/.storybook/webpack.config.js
@@ -1,34 +1 @@
-/* global module, __dirname, require */
-var webpack = require("webpack");
-const path = require("path");
-
-module.exports = {
- module: {
- loaders: [
- {
- test: /\.((png)|(eot)|(woff)|(woff2)|(ttf)|(svg)|(gif))(\?v=\d+\.\d+\.\d+)?$/,
- loader: 'url-loader?limit=100000'
- },
- { test: /\.json$/, loader: 'json-loader' },
- {
- test: /\.css$/,
- loader: 'style!css?modules&importLoaders=1!postcss'
- },
- {
- loader: 'babel',
- test: /\.js?$/,
- exclude: /(node_modules|bower_components)/,
- query: {
- cacheDirectory: true,
- presets: ['react', 'es2015'],
- plugins: ['transform-class-properties', 'transform-object-assign', 'transform-object-rest-spread']
- }
- }
- ]
- },
-
- postcss: [
- require("postcss-import")({addDependencyTo: webpack}),
- require("postcss-cssnext")()
- ],
-};
+module.exports = require('../webpack.base.js');
diff --git a/example/example.css b/example/example.css
new file mode 100644
index 00000000..3ec853c0
--- /dev/null
+++ b/example/example.css
@@ -0,0 +1,15 @@
+html, body {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-size: 14px;
+ color: #444;
+}
+body {
+ padding: 20px;
+}
+
+h1 {
+ font-weight: bold;
+ color: #666;
+ font-size: 32px;
+ margin-top: 20px;
+}
diff --git a/example/index.html b/example/index.html
index aa1c14e8..cbf4ef07 100644
--- a/example/index.html
+++ b/example/index.html
@@ -69,6 +69,26 @@