├── .travis.yml ├── .gitignore ├── test ├── test-run.js ├── test-util.js ├── react-bem.html ├── test-setup.js └── react-bem.test.js ├── example ├── index.html └── jsx │ └── test.jsx ├── bower.json ├── package.json ├── Gruntfile.js ├── license.txt ├── README.md └── src └── react-bem.js /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "4" 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | bower_components 3 | example/components 4 | -------------------------------------------------------------------------------- /test/test-run.js: -------------------------------------------------------------------------------- 1 | if (!window.PHANTOMJS) { 2 | mocha.run(); 3 | } 4 | -------------------------------------------------------------------------------- /test/test-util.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Clones / deep copies an object. 3 | * 4 | * @param Object obj 5 | * Any object. 6 | * 7 | * @return Object 8 | * obj--cloned. 9 | */ 10 | function clone(obj) { 11 | if (obj === null || typeof(obj) !== 'object') return obj; 12 | var temp = new Object(); 13 | for (var key in obj) { 14 | temp[key] = clone(obj[key]); 15 | } 16 | return temp; 17 | } 18 | -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |