sh-core
Advanced tools
Comparing version 0.1.13 to 0.1.14
{ | ||
"name": "sh-core", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "Base SASS and React files for SuperheroUI components", | ||
"main": "bin/sh-core.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"clean": "rm -r ./bin", | ||
"test": "./node_modules/.bin/karma start", | ||
"test-watch": "./node_modules/.bin/karma start --no-single-run", | ||
"coveralls": "./node_modules/.bin/coveralls < ./bin/coverage/lcov/lcov.info", | ||
"build": "./node_modules/.bin/webpack -d --config webpack.config.js & node-sass --output-style compressed src/main.scss bin/main.css", | ||
"dev": "./node_modules/.bin/webpack -d --watch --config webpack.config.js", | ||
"css": "node-sass --output-style compressed src/main.scss bin/main.css & node-sass --output-style compressed -w src/main.scss bin/main.css", | ||
"build": "./node_modules/.bin/webpack -d --config webpack.config.js & node-sass --output-style compressed src/main.scss bin/main.css" | ||
"css": "node-sass --output-style compressed src/main.scss bin/main.css & node-sass --output-style compressed -w src/main.scss bin/main.css" | ||
}, | ||
@@ -33,2 +36,3 @@ "repository": { | ||
"babel-preset-react": "^6.11.1", | ||
"coveralls": "^2.11.12", | ||
"css-loader": "^0.23.1", | ||
@@ -35,0 +39,0 @@ "isparta-loader": "^2.0.0", |
@@ -1,2 +0,18 @@ | ||
# shCore | ||
Core module for supporting SuperheroUI Components | ||
# SuperheroUI [![Build Status](https://travis-ci.org/SuperheroUI/shCore.svg?branch=master)](https://travis-ci.org/SuperheroUI/shCore) [![Coverage Status](https://coveralls.io/repos/github/SuperheroUI/shCore/badge.svg)](https://coveralls.io/github/SuperheroUI/shCore) | ||
InsideSales.com React UI | ||
## ShCore | ||
### Website (For examples, limits, and usage) | ||
https://superheroui.github.io/ | ||
### Installation | ||
Use npm to install the module | ||
```sh | ||
npm install sh-core --save | ||
``` | ||
Now you can import it into your project | ||
```js | ||
require('../node_modules/sh-core/bin/main.css'); | ||
``` |
@@ -16,8 +16,10 @@ import * as _ from 'lodash'; | ||
let className = _.kebabCase(key); | ||
if (_.isBoolean(check) && check) { | ||
classNames.push(className); | ||
} else if (_.isFunction(check) && check()) { | ||
classNames.push(className); | ||
if (_.isFunction(check)) { | ||
if (check()) { | ||
classNames.push(className); | ||
} | ||
} else if (_.isString(check)) { | ||
classNames.push(className + '-' + _.kebabCase(check)); | ||
} else if (check) { | ||
classNames.push(className); | ||
} | ||
@@ -24,0 +26,0 @@ } |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
2
19
2967368
21
179
1