Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
geoRG77 committed Dec 16, 2015
0 parents commit 17a2211
Show file tree
Hide file tree
Showing 174 changed files with 6,568 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"stage": 0,
"loose": "all"
}
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs.
# editorconfig.org

root = true

[*]

# We recommend you to keep these unchanged.
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[package.json]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/dist/*
**/node_modules/*
lib/*
126 changes: 126 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
{
"env": {
"browser": true,
"mocha": true,
"node": true
},
"parser": "babel-eslint",
"rules": {
"array-bracket-spacing": 2,
"brace-style": [2, "stroustrup", {"allowSingleLine": true}],
"camelcase": 2,
"comma-dangle": 0,
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"computed-property-spacing": 2,
"consistent-this": [2, "self"],
"curly": 0,
"eol-last": 2,
"eqeqeq": [2, "allow-null"],
"guard-for-in": 0,
"indent": [2, 2, {
"SwitchCase": 1
}],
"key-spacing": 0,
"new-cap": [2, {"capIsNew": false, "newIsCap": true}],
"new-parens": 0,
"no-bitwise": 0,
"no-cond-assign": 2,
"no-console": 2,
"no-constant-condition": 2,
"no-debugger": 2,
"no-delete-var": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-eval": 2,
"no-ex-assign": 2,
"no-extend-native": 2,
"no-extra-parens": 0,
"no-floating-decimal": 0,
"no-func-assign": 2,
"no-implied-eval": 2,
"no-inner-declarations": 2,
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-iterator": 2,
"no-labels": 0,
"no-lonely-if": 2,
"no-loop-func": 2,
"no-mixed-spaces-and-tabs": 2,
"no-native-reassign": 2,
"no-negated-in-lhs": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-new-wrappers": 2,
"no-obj-calls": 2,
"no-octal": 2,
"no-plusplus": 0,
"no-process-env": 0,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-shadow": 0,
"no-spaced-func": 2,
"no-sparse-arrays": 2,
"no-throw-literal": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-undefined": 0,
"no-underscore-dangle": 0,
"no-unreachable": 2,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-use-before-define": 0,
"no-var": 2,
"no-warning-comments": [0, {"terms": ["todo", "fixme"]}],
"object-curly-spacing": 2,
"quote-props": [0, "as-needed"],
"quotes": [2, "single", "avoid-escape"],
"radix": 2,
"semi": 0,
"semi-spacing": [2, {"before": false, "after": true}],
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-return-throw-case": 2,
"space-unary-ops": [2, {"words": true, "nonwords": false}],
"strict": [0, "never"],
"use-isnan": 2,
"valid-typeof": 2,
"wrap-iife": [2, "inside"],
"yoda": 0,
// Node.js specific
"handle-callback-err": [2, "^(err|error)$"],
"no-mixed-requires": 2,
"no-new-require": 2,
"no-path-concat": 2,
// React
// Not needed. "react/display-name": 2,
"react/jsx-boolean-value": 2,
"react/jsx-no-undef": 2,
"react/jsx-sort-props": 2,
"react/jsx-sort-prop-types": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 2,
"react/no-unknown-property": 2,
"react/prop-types": 2,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
// Not ready yet. "react/sort-comp": 2,
"react/wrap-multilines": 2,
},
"plugins": [
"react"
],
"ecmaFeatures": {
"jsx": true
}
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.log
.DS_Store
coverage
lib
node_modules
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.log
/.*/
/.eslint*
/.gitignore
/.npmignore
/docs/
/example_app/
/test/
!lib
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Jiri Orsag

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Radium Bootstrap Grid

## Install

```sh
$ npm install --save radium-bootstrap-grid
```

## Add it to your project

look at example directory
and you need to add only:

```js
import Component from 'react-pure-render/component';
import React from 'react';
import {Column, Container, Row} from 'radium-bootstrap-grid';

@Radium
export default class Page extends Component {

render() {
return (
<Container>
<Row>
<Column
large={1}
medium={2}
phone={6}
small={3}
tablet={4}
>
Text
</Column>
</Row>
</Container>
);
}

}
```

## Example app

```
npm install
cd ./example_app
npm install
gulp
```
this will start development server at localhost:8000 and you can check the grid

## License

MIT © [Jiri Orsag](https://github.com/geoRG77)
32 changes: 32 additions & 0 deletions example_app/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"env": {
"production": {
"optional": [
"optimisation.react.constantElements",
"optimisation.react.inlineElements"
]
}
},
"whitelist": [
"es6.arrowFunctions",
"es6.blockScoping",
"es6.classes",
"es6.destructuring",
"es6.modules",
"es6.parameters",
"es6.properties.computed",
"es6.properties.shorthand",
"es6.spread",
"es6.templateLiterals",
"es7.classProperties",
"es7.decorators",
"es7.objectRestSpread",
"es7.trailingFunctionCommas",
"flow",
"react",
"react.displayName",
"regenerator",
"es6.constants",
"es7.asyncFunctions"
]
}
22 changes: 22 additions & 0 deletions example_app/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs.
# editorconfig.org

root = true

[*]

# We recommend you to keep these unchanged.
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[package.json]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
Loading

0 comments on commit 17a2211

Please sign in to comment.