Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

first commit

  • Loading branch information...
christophehurpeau committed Jun 10, 2016
0 parents commit d1873d3b2935afc26b16d4af4e8a3d98dc8d2809
@@ -0,0 +1,25 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org

root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml,eslintrc.js,.eslintrc.yml,.eslintrc.yaml}]
indent_style = space
indent_size = 2
@@ -0,0 +1,2 @@
!**/*.{js,jsx}
**/*.min.{js,jsx}
@@ -0,0 +1,2 @@
---
extends: pob/react
@@ -0,0 +1,19 @@
node_modules
/docs
/coverage
/build

/.settings
/.project
/.idea
*.sublime-project
*.sublime-workspace

#*
*$
*.BAK
*.bak
*.log
*.old
*~
.#*
@@ -0,0 +1,23 @@
/examples
/samples
/docs
/coverage
/build
/test
circle.yml
.codeclimate.yml

/.settings
/.project
/.idea
*.sublime-project
*.sublime-workspace

#*
*$
*.BAK
*.bak
*.log
*.old
*~
.#*
@@ -0,0 +1,10 @@
{
"envs": [
"node5",
"node6",
"webpack",
"webpack-modern-browsers"
],
"react": true,
"testing": false
}
15 LICENSE
@@ -0,0 +1,15 @@
Copyright (c) 2016 Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)

Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all
copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,27 @@
# react-alp-link [![NPM version][npm-image]][npm-url] [![Dependency Status][daviddm-image]][daviddm-url]

react link with limosa router

[![Dependency Status][daviddm-image]][daviddm-url]


## Install

```sh
npm install --save react-alp-link
```

## Usage

```js
import Link from 'react-alp-link';
export function MyComponent() {
return <Link to="home" />
}
```

[npm-image]: https://img.shields.io/npm/v/react-alp-link.svg?style=flat-square
[npm-url]: https://npmjs.org/package/react-alp-link
[daviddm-image]: https://david-dm.org/alpjs/react-alp-link.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/alpjs/react-alp-link
@@ -0,0 +1,45 @@
#!/bin/sh

if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi

# If you want to allow non-ASCII filenames set this variable to true.
allownonascii=$(git config --bool hooks.allownonascii)

# Redirect output to stderr.
exec 1>&2

# Cross platform projects tend to avoid non-ASCII filenames; prevent
# them from being added to the repository. We exploit the fact that the
# printable range starts at the space character and ends with tilde.
if [ "$allownonascii" != "true" ] &&
# Note that the use of brackets around a tr range is ok here, (it's
# even required, for portability to Solaris 10's /usr/bin/tr), since
# the square bracket bytes happen to fall in the designated range.
test $(git diff --cached --name-only --diff-filter=A -z $against |
LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
then
cat <<\EOF
Error: Attempt to add a non-ASCII file name.
This can cause problems if you want to work with people on other platforms.
To be portable it is advisable to rename the file.
If you know what you are doing you can disable this check using:
git config hooks.allownonascii true
EOF
exit 1
fi

# If there are whitespace errors, print the offending file names and fail.
git diff-index --check --cached $against -- || exit 1

echo 'Lint check'
npm run lint || exit 1
@@ -0,0 +1,6 @@
var production = process.env.NODE_ENV === 'production';
if (process.version.startsWith && process.version.startsWith('v6.'))
return module.exports = require('./lib-node6' + (production ? '' : '-dev') + '/');
if (process.version.startsWith && process.version.startsWith('v5.'))
return module.exports = require('./lib-node5' + (production ? '' : '-dev') + '/');
throw new Error('Platform not supported: ' + process.version + '.');

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit d1873d3

Please sign in to comment.
You can’t perform that action at this time.