Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit eceedb3
Showing
17 changed files
with
2,833 additions
and
0 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,3 @@ | ||
{ | ||
"presets": ["react-app"] | ||
} |
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,21 @@ | ||
{ | ||
"extends": "airbnb", | ||
"rules": { | ||
# We use _ to define private variables and methods in clases | ||
"no-underscore-dangle": 0, | ||
# This seems to be buggy we don't want eslint to check this | ||
"import/no-extraneous-dependencies": 0, | ||
# This is a depricated rule. So we turned off it. | ||
"react/require-extension": 0, | ||
# We can write JSX in anyfile we want. | ||
"react/jsx-filename-extension": 0, | ||
This comment has been minimized.
Sorry, something went wrong. |
||
# We don't like this rule. | ||
"arrow-body-style": 0, | ||
# We don't like this rule. We write arrow functions only when we needed. | ||
"prefer-arrow-callback": 0, | ||
# We don't need to write function names always. | ||
"func-names": 0, | ||
# propTypes can be object | ||
"react/forbid-prop-types": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
*.log | ||
.idea | ||
dist |
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,2 @@ | ||
src | ||
.babelrc |
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,11 @@ | ||
// IMPORTANT | ||
// --------- | ||
// This is an auto generated file with React CDK. | ||
// Do not modify this file. | ||
|
||
const parse = require('git-url-parse'); | ||
var ghUrl = process.argv[2]; | ||
const parsedUrl = parse(ghUrl); | ||
|
||
const ghPagesUrl = 'https://' + parsedUrl.owner + '.github.io/' + parsedUrl.name; | ||
console.log(ghPagesUrl); |
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,16 @@ | ||
// IMPORTANT | ||
// --------- | ||
// This is an auto generated file with React CDK. | ||
// Do not modify this file. | ||
// Use `.scripts/user/pretest.js instead`. | ||
|
||
process.env.NODE_ENV = 'development'; | ||
require('babel-core/register'); | ||
require('babel-polyfill'); | ||
|
||
process.on('unhandledRejection', function (error) { | ||
console.error('Unhandled Promise Rejection:'); | ||
console.error(error && error.stack || error); | ||
}); | ||
|
||
require('./user/pretest.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# IMPORTANT | ||
# --------- | ||
# This is an auto generated file with React CDK. | ||
# Do not modify this file. | ||
# Use `.scripts/user/prepublish.sh instead`. | ||
|
||
echo "=> Transpiling 'src' into ES5 ..." | ||
echo "" | ||
rm -rf ./dist | ||
NODE_ENV=production ./node_modules/.bin/babel --ignore tests,stories --plugins "transform-runtime" ./src --out-dir ./dist | ||
echo "" | ||
echo "=> Transpiling completed." | ||
|
||
. .scripts/user/prepublish.sh |
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,47 @@ | ||
#!/bin/bash | ||
|
||
# IMPORTANT | ||
# --------- | ||
# This is an auto generated file with React CDK. | ||
# Do not modify this file. | ||
|
||
set -e # exit with nonzero exit code if anything fails | ||
|
||
# get GIT url | ||
|
||
GIT_URL=`git config --get remote.origin.url` | ||
if [[ $GIT_URL == "" ]]; then | ||
echo "This project is not configured with a remote git repo". | ||
exit 1 | ||
fi | ||
|
||
# clear and re-create the out directory | ||
rm -rf .out || exit 0; | ||
mkdir .out; | ||
|
||
# run our compile script, discussed above | ||
build-storybook -o .out | ||
|
||
# go to the out directory and create a *new* Git repo | ||
cd .out | ||
git init | ||
|
||
# inside this git repo we'll pretend to be a new user | ||
git config user.name "GH Pages Bot" | ||
git config user.email "hello@ghbot.com" | ||
|
||
# The first and only commit to this new Git repo contains all the | ||
# files present with the commit message "Deploy to GitHub Pages". | ||
git add . | ||
git commit -m "Deploy Storybook to GitHub Pages" | ||
|
||
# Force push from the current repo's master branch to the remote | ||
# repo's gh-pages branch. (All previous history on the gh-pages branch | ||
# will be lost, since we are overwriting it.) We redirect any output to | ||
# /dev/null to hide any sensitive credential data that might otherwise be exposed. | ||
git push --force --quiet $GIT_URL master:gh-pages > /dev/null 2>&1 | ||
cd .. | ||
rm -rf .out | ||
|
||
echo "" | ||
echo "=> Storybook deployed to: `node .scripts/get_gh_pages_url.js $GIT_URL`" |
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 @@ | ||
# Use this file to your own code to run at NPM `prepublish` event. |
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 @@ | ||
// Use this file to setup any test utilities. |
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,7 @@ | ||
# Contributing to Podda Component | ||
|
||
We welcome your help to make this component better. This document will help to streamline the contributing process and save everyone's precious time. | ||
|
||
## Development Setup | ||
|
||
This component has been setup with [React CDK](https://github.com/kadirahq/react-cdk). Refer [React CDK documentation](https://github.com/kadirahq/react-cdk)) to get started with the development. |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Your Name. <name@emailprovider.io> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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 @@ | ||
# Podda Component | ||
|
||
Podda Component |
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,42 @@ | ||
{ | ||
"name": "podda", | ||
"version": "0.0.0", | ||
"description": "Podda Component", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/you/repo.git" | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": ". ./.scripts/prepublish.sh", | ||
"lint": "eslint src", | ||
"lintfix": "eslint src --fix", | ||
"testonly": "mocha --require .scripts/mocha_runner src/**/tests/**/*.js", | ||
"test": "npm run lint && npm run testonly", | ||
"test-watch": "npm run testonly -- --watch --watch-extensions js" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.14.0", | ||
"babel-core": "^6.14.0", | ||
"babel-eslint": "^6.1.2", | ||
"babel-loader": "^6.2.5", | ||
"babel-plugin-transform-runtime": "^6.15.0", | ||
"babel-polyfill": "^6.13.0", | ||
"babel-preset-react-app": "^0.2.1", | ||
"chai": "^3.5.0", | ||
"eslint": "^3.6.0", | ||
"eslint-config-airbnb": "^12.0.0", | ||
"eslint-plugin-import": "^1.16.0", | ||
"eslint-plugin-jsx-a11y": "^2.2.2", | ||
"mocha": "^3.0.2", | ||
"sinon": "^1.17.6" | ||
}, | ||
"dependencies": { | ||
"babel-runtime": "^6.11.6", | ||
"eslint-plugin-react": "^6.6.0" | ||
}, | ||
"main": "dist/index.js", | ||
"engines": { | ||
"npm": "^3.0.0" | ||
} | ||
} |
Empty file.
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 @@ | ||
import { expect } from 'chai'; | ||
|
||
const { describe, it } = global; | ||
|
||
describe('Podda', () => { | ||
it('should be true', () => { | ||
expect(true).to.be.equal(true); | ||
}); | ||
}); |
Oops, something went wrong.
Научиться хочу, поможешь?