diff --git a/.eslintrc.yml b/.eslintrc.yml deleted file mode 100644 index b56f2e1..0000000 --- a/.eslintrc.yml +++ /dev/null @@ -1,81 +0,0 @@ ---- - extends: - - plugin:react/recommended - - env: - browser: true - node: true - es6: true - - parserOptions: - ecmaVersion: 6 - sourceType: "module" - ecmaFeatures: - jsx: true - - globals: - __DEV__: true - __SERVER__: true - - plugins: - - react - - rules: - react/jsx-uses-vars: 1 - react/prop-types: [1, { ignore: [children] }] - - semi: 0 - key-spacing: 1 - curly: 0 - consistent-return: 0 - space-infix-ops: 1 - camelcase: 0 - no-spaced-func: 1 - no-alert: 1 - eol-last: 1 - comma-spacing: 1 - eqeqeq: 1 - - # possible errors - comma-dangle: 0 - no-cond-assign: 2 - no-console: 0 - no-constant-condition: 2 - no-control-regex: 2 - no-debugger: 2 - no-dupe-args: 2 - no-dupe-keys: 2 - no-duplicate-case: 2 - no-empty-character-class: 2 - no-empty: 2 - no-ex-assign: 2 - no-extra-boolean-cast: 2 - no-extra-parens: 0 - no-extra-semi: 2 - no-func-assign: 2 - no-inner-declarations: 2 - no-invalid-regexp: 2 - no-irregular-whitespace: 2 - no-negated-in-lhs: 2 - no-obj-calls: 2 - no-regex-spaces: 2 - no-sparse-arrays: 2 - no-unexpected-multiline: 2 - no-unreachable: 2 - use-isnan: 2 - valid-jsdoc: 2 - valid-typeof: 2 - - no-redeclare: 2 - - init-declarations: 2 - no-catch-shadow: 2 - no-delete-var: 2 - no-label-var: 2 - no-shadow-restricted-names: 2 - no-shadow: 2 - no-undef-init: 2 - no-undef: 2 - no-undefined: 2 - no-unused-vars: 2 - no-use-before-define: 2 diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 2b6f469..0000000 --- a/.jshintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "esversion": 6 -} diff --git a/package.json b/package.json index f018d52..aa33caa 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "build": "webpack --config webpack.production.config.js --progress --profile --colors", "start": "webpack-dev-server --progress --profile --colors", - "lint": "eslint --ext js --ext jsx src || exit 0" + "lint": "eslint --ext js --ext jsx src" }, "repository": { "type": "git", @@ -16,12 +16,40 @@ "license": "MIT", "homepage": "https://github.com/alicoding/react-webpack-babel#readme", "dependencies": { - "bootstrap": "^4.0.0-alpha.3", "node-sass": "^3.9.2", "react": "15.3.0", "react-dom": "15.3.0", + "react-geomicons": "^2.0.5", + "react-icons": "^2.2.1", + "react-map-gl": "^1.4.2", + "react-mapbox-gl": "^0.10.0", + "react-tap-event-plugin": "^1.0.0", + "rebass": "^0.3.1", "sass-loader": "^4.0.1" }, + "jshintConfig": { + "esversion": 6 + }, + "eslintConfig": { + "extend": [ + "plugin:react/recommended" + ], + "env": { + "browser": true, + "node": true, + "es6": true + }, + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "module", + "ecmaFeatures": { + "jsx": true + } + }, + "plugins": [ + "react" + ] + }, "devDependencies": { "babel-core": "6.14.0", "babel-loader": "6.2.4", @@ -35,11 +63,14 @@ "extract-text-webpack-plugin": "^1.0.1", "file-loader": "0.9.0", "html-webpack-plugin": "^2.22.0", + "json-loader": "^0.5.4", "react-hot-loader": "1.3.0", "style-loader": "0.13.1", + "transform-loader": "^0.2.3", "url-loader": "0.5.7", "webpack": "1.13.2", "webpack-cleanup-plugin": "^0.3.0", - "webpack-dev-server": "1.15.1" + "webpack-dev-server": "1.15.1", + "webworkify-webpack": "^1.1.7" } } diff --git a/src/app.jsx b/src/app.jsx index 09c33d1..f0800d7 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -1,16 +1,39 @@ import 'bootstrap/dist/css/bootstrap.min.css'; -import styles from './index.scss'; +import {Workspace} from './workspace.jsx'; +import {Map} from './map.jsx'; +import {Toolbar} from './toolbar.jsx'; import React from 'react'; +import styles from './layout.scss'; +import { Drawer, Container, Block, Fixed } from 'rebass' +import { LayerEditor } from './layers.jsx' +import theme from './theme.jsx' export default class App extends React.Component { + static childContextTypes = { + rebass: React.PropTypes.object, + reactIconBase: React.PropTypes.object + } + + getChildContext () { + return { + rebass: theme, + reactIconBase: { + size: 20, + } + } + } + render() { return ( -
This React project just works including module local styles.
-Global bootstrap css import works too as you can see on the following button.
- +