Skip to content

Commit ccf1f53

Browse files
committed
Initial commit with contributors
v0.1.3 lintfix tests ready test-watch
1 parent bac0298 commit ccf1f53

21 files changed

+1029
-84
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
colors.js

.eslintrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
.scripts
2+
.storybook
13
src
24
.babelrc
5+
*.log

.scripts/lint.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
call .\node_modules\.bin\eslint %1 --ext .jsx --ext .js %2
3+
rem Please no errors

.scripts/prepublish.cmd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@echo off
2+
echo Transpiling 'src' into ES5 ...
3+
echo ...
4+
if exist dist (
5+
rem rmdir /S /Q dist
6+
)
7+
call .\node_modules\.bin\babel --ignore tests,stories --plugins "transform-runtime" ./src --out-dir ./dist
8+
echo ...
9+
echo Transpiling completed.

.scripts/publish_storybook.cmd

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@echo off
2+
3+
setlocal enabledelayedexpansion
4+
5+
set GIT_URL_CMD=git config --get remote.origin.url
6+
for /F "usebackq delims=" %%v in (`%GIT_URL_CMD%`) do set GIT_URL=%%v
7+
8+
if %GIT_URL%=="" (
9+
echo This project is not configured with a remote git repo
10+
exit 1
11+
)
12+
13+
if exist .out (
14+
rmdir /S /Q .out
15+
)
16+
17+
md .out
18+
19+
call build-storybook -o .out
20+
21+
cd .out
22+
23+
git init
24+
git config user.name "GH Pages Bot"
25+
git config user.email "windows@ghbot.com"
26+
git add .
27+
git commit -m "Deploy Storybook to GitHub Pages"
28+
git push --force --quiet !GIT_URL! master:gh-pages
29+
30+
cd ..
31+
rmdir /S /Q .out
32+
33+
set GHP_URL_CMD=node .scripts/get_gh_pages_url.js !GIT_URL!
34+
for /F "usebackq delims=" %%w in (`%GHP_URL_CMD%`) do set GHP_URL=%%w
35+
36+
echo ## Deploy >storybook.md
37+
echo Storybook deployed to: [!GHP_URL!](!GHP_URL!)>>storybook.md
38+
39+
echo .
40+
echo Storybook deployed to: !GHP_URL!
41+
echo See the %cd%\storybook.md
42+
43+
endlocal

.scripts/test-watch.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
e:\Develop\NodeJS\cmder\vendor\git-for-windows\usr\bin\mintty.exe /bin/bash -l

.scripts/test-watch.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
./node_modules/.bin/mocha --require .scripts/mocha_runner src/**/tests/**/*.js --watch --watch-extensions jsx
4+

.scripts/test.cmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
call .\node_modules\.bin\mocha --require .scripts/mocha_runner src/**/tests/**/*.js
3+
rem Please no errors
4+

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
# React Material Color Picker Component
22

33
React Material Color Picker Component
4+
5+
## Install
6+
7+
$ npm i react-material-color-picker --save
8+
9+
## Usage
10+
11+
~~~
12+
import React from 'react';
13+
import MaterialColorPicker from 'react-material-color-picker';
14+
15+
<div>
16+
<MaterialColorPicker />
17+
</div>
18+
~~~
19+

0 commit comments

Comments
 (0)