Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.1.3 lintfix tests ready test-watch
- Loading branch information
Showing
21 changed files
with
1,029 additions
and
84 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
colors.js |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.scripts | ||
.storybook | ||
src | ||
.babelrc | ||
*.log |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
call .\node_modules\.bin\eslint %1 --ext .jsx --ext .js %2 | ||
rem Please no errors |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@echo off | ||
echo Transpiling 'src' into ES5 ... | ||
echo ... | ||
if exist dist ( | ||
rem rmdir /S /Q dist | ||
) | ||
call .\node_modules\.bin\babel --ignore tests,stories --plugins "transform-runtime" ./src --out-dir ./dist | ||
echo ... | ||
echo Transpiling completed. |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@echo off | ||
|
||
setlocal enabledelayedexpansion | ||
|
||
set GIT_URL_CMD=git config --get remote.origin.url | ||
for /F "usebackq delims=" %%v in (`%GIT_URL_CMD%`) do set GIT_URL=%%v | ||
|
||
if %GIT_URL%=="" ( | ||
echo This project is not configured with a remote git repo | ||
exit 1 | ||
) | ||
|
||
if exist .out ( | ||
rmdir /S /Q .out | ||
) | ||
|
||
md .out | ||
|
||
call build-storybook -o .out | ||
|
||
cd .out | ||
|
||
git init | ||
git config user.name "GH Pages Bot" | ||
git config user.email "windows@ghbot.com" | ||
git add . | ||
git commit -m "Deploy Storybook to GitHub Pages" | ||
git push --force --quiet !GIT_URL! master:gh-pages | ||
|
||
cd .. | ||
rmdir /S /Q .out | ||
|
||
set GHP_URL_CMD=node .scripts/get_gh_pages_url.js !GIT_URL! | ||
for /F "usebackq delims=" %%w in (`%GHP_URL_CMD%`) do set GHP_URL=%%w | ||
|
||
echo ## Deploy >storybook.md | ||
echo Storybook deployed to: [!GHP_URL!](!GHP_URL!)>>storybook.md | ||
|
||
echo . | ||
echo Storybook deployed to: !GHP_URL! | ||
echo See the %cd%\storybook.md | ||
|
||
endlocal |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
e:\Develop\NodeJS\cmder\vendor\git-for-windows\usr\bin\mintty.exe /bin/bash -l |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
./node_modules/.bin/mocha --require .scripts/mocha_runner src/**/tests/**/*.js --watch --watch-extensions jsx | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo off | ||
call .\node_modules\.bin\mocha --require .scripts/mocha_runner src/**/tests/**/*.js | ||
rem Please no errors | ||
|
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 |
---|---|---|
@@ -1,3 +1,19 @@ | ||
# React Material Color Picker Component | ||
|
||
React Material Color Picker Component | ||
|
||
## Install | ||
|
||
$ npm i react-material-color-picker --save | ||
|
||
## Usage | ||
|
||
~~~ | ||
import React from 'react'; | ||
import MaterialColorPicker from 'react-material-color-picker'; | ||
<div> | ||
<MaterialColorPicker /> | ||
</div> | ||
~~~ | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
require.extensions['.png'] = function(){ return null; } |
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
Oops, something went wrong.