Skip to content

Commit

Permalink
Prepared package to publish in NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
benatespina committed Jun 7, 2018
1 parent 58ca877 commit 31f87b0
Show file tree
Hide file tree
Showing 12 changed files with 73 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
package-lock.json
yarn-error.log
yarn.lock
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# i18n helpers

Provides components and functions to make i18n apps with ease.
# React i18n routing
> Provides components and functions to make i18n routing React apps with ease.
## Language strategies

Expand Down
50 changes: 50 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "@foes/react-i18n-routing",
"version": "0.1.0",
"license": "MIT",
"description": "Provides components and functions to make i18n routing React apps with ease.",
"keywords": [
"i18n",
"react",
"routing"
],
"authors": [
{
"name": "Beñat Espiña Diaz",
"email": "benatespina@gmail.com",
"homepage": "https://benatespina.com"
},
{
"name": "Gorka Laucirica Ibarra",
"email": "gorka.lauzirika@gmail.com"
}
],
"main": "src/index.js",
"repository": {
"type": "git",
"url": "https://github.com/FriendsOfECMAScript/ReactI18nRouting"
},
"bugs": {
"url": "https://github.com/FriendsOfECMAScript/ReactI18nRouting/issues"
},
"scripts": {
"test": "yarn test --env=jsdom",
"fixer-js": "node_modules/.bin/prettier 'server/**/*.js' 'src/**/*.js' --write --single-quote --no-bracket-spacing --trailing-comma all",
"fixer-css": "node_modules/.bin/stylelint -c .stylelintrc.js src/**/*.css --fix"
},
"devDependencies": {
"prettier": "^1.10.2",
"stylelint": "^9.0.0",
"stylelint-order": "^0.8.0",
"stylelint-selector-bem-pattern": "^2.0.0"
},
"peerDependencies": {
"react": "16.x",
"react-intl": "2.x",
"react-redux": "5.x",
"prop-types": "15.x",
"react-router-dom": "4.x",
"react-router-named-routes": "0.x",
"lodash.flatmap": "4.x"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import {IntlProvider} from 'react-intl';
import PropTypes from 'prop-types';
import {LANGUAGE_CHANGE} from "../reducer";
import {connect} from "react-redux";
import {LANGUAGE_CHANGE} from './../reducer';
import {connect} from 'react-redux';

class BrowserIntlProvider extends React.Component {
static propTypes = {
Expand Down
File renamed without changes.
15 changes: 15 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import BrowserIntlProvider from './component/BrowserIntlProvider.js';
import FormattedLink from './component/FormattedLink.js';
import defaultUnPrefixed from './languageStrategy/defaultUnprefixed.js';
import subdomainBased from './languageStrategy/subdomainBased.js';
import * as Reducer from './reducer.js';
import * as RenderTranslatedRoutes from './renderTranslatedRoutes.js';

export {
BrowserIntlProvider,
FormattedLink,
defaultUnPrefixed,
subdomainBased,
Reducer,
RenderTranslatedRoutes
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 31f87b0

Please sign in to comment.