-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn if children are disabled (#212)
* Add error message * Add tests to make sure we are warned about disabled children * Implement disabled children warning * More descriptive test title * Fix formating (curlies arount if) * Add cross-env package so scripts can be executed on win machines
- Loading branch information
1 parent
2a370e8
commit c9c5f0e
Showing
5 changed files
with
91 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,12 +22,12 @@ | |
"prebuild": "npm run lint && flow check && npm run typescript && npm run test", | ||
"prepublishOnly": "npm run build", | ||
"prepush": "npm run prebuild", | ||
"test": "NODE_ENV=test ./node_modules/.bin/karma start --single-run", | ||
"test": "cross-env NODE_ENV=test ./node_modules/.bin/karma start --single-run", | ||
"test:dev": "karma start karma.conf.js", | ||
"tslint": "tslint typings/*.tsx typings/*.ts", | ||
"typescript": "npm run tslint && tsc typings/test.tsx --noEmit --jsx react --target es6 --module es2015 --moduleResolution node", | ||
"storybook": "start-storybook -p 9001", | ||
"storybook:preact": "REACT_IMPL=preact npm run storybook" | ||
"storybook:preact": "cross-env REACT_IMPL=preact npm run storybook" | ||
}, | ||
"author": "Joshua Comeau <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -67,6 +67,7 @@ | |
"babel-preset-stage-0": "6.24.1", | ||
"chai": "4.1.2", | ||
"create-react-class": "15.6.2", | ||
"cross-env": "^5.1.3", | ||
"enzyme": "3.0.0", | ||
"enzyme-adapter-react-16": "^1.0.0", | ||
"eslint": "3.10.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2295,7 +2295,14 @@ [email protected]: | |
loose-envify "^1.3.1" | ||
object-assign "^4.1.1" | ||
|
||
cross-spawn@^5.0.1: | ||
cross-env@^5.1.3: | ||
version "5.1.3" | ||
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.1.3.tgz#f8ae18faac87692b0a8b4d2f7000d4ec3a85dfd7" | ||
dependencies: | ||
cross-spawn "^5.1.0" | ||
is-windows "^1.0.0" | ||
|
||
cross-spawn@^5.0.1, cross-spawn@^5.1.0: | ||
version "5.1.0" | ||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" | ||
dependencies: | ||
|
@@ -4195,6 +4202,10 @@ is-utf8@^0.2.0: | |
version "0.2.1" | ||
resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" | ||
|
||
is-windows@^1.0.0: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.1.tgz#310db70f742d259a16a369202b51af84233310d9" | ||
|
||
[email protected]: | ||
version "0.0.1" | ||
resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" | ||
|