Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from data-provider/release
Browse files Browse the repository at this point in the history
First pre-release
  • Loading branch information
javierbrea committed Feb 26, 2020
2 parents e6f104f + cf56cdc commit 0526aa8
Show file tree
Hide file tree
Showing 107 changed files with 28,566 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"parser": "babel-eslint",
"extends": ["plugin:react/recommended"],
"parserOptions": {
"sourceType": "module"
},
"plugins": ["prettier", "react", "react-hooks"],
"rules": {
"prettier/prettier": [
"error",
{
"printWidth": 99,
"parser": "flow"
}
],
"no-undef": "error",
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }]
},
"settings": {
"react": {
"pragma": "React",
"version": "^16.7.0"
}
}
}
35 changes: 35 additions & 0 deletions .gitignore
@@ -0,0 +1,35 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/.coverage
/coverage

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# idea
.idea


# idea
/.idea

# output files
/dist

# History files
/.history/**

# Vscode config
jsconfig.json
2 changes: 2 additions & 0 deletions .travis.yml
@@ -0,0 +1,2 @@
version: ~> 1.0
import: data-provider/ci-cd-shared-config:.travis.yml@master
15 changes: 15 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,15 @@
# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [unreleased]
### Added
### Changed
### Fixed
### Removed

## [1.0.0-alpha.1] - 2020-02-26
### Added
- feat: First pre-release
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 data-provider
Copyright (c) 2020 Javier Brea

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
36 changes: 34 additions & 2 deletions README.md
@@ -1,2 +1,34 @@
# react
@data-provider React hooks and HOCs
[![Build status][travisci-image]][travisci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url]

[![NPM dependencies][npm-dependencies-image]][npm-dependencies-url] [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com) [![Last commit][last-commit-image]][last-commit-url] [![Last release][release-image]][release-url]

[![NPM downloads][npm-downloads-image]][npm-downloads-url] [![License][license-image]][license-url]

# React bindings for @data-provider

> Set of hooks and HOCs for binding @data-provider to React components
## Contributing

Contributors are welcome.
Please read the [contributing guidelines](.github/CONTRIBUTING.md) and [code of conduct](.github/CODE_OF_CONDUCT.md).

[data-provider-url]: https://github.com/data-provider/core
[data-provider-instances-docs-url]: https://github.com/data-provider/core/blob/master/docs/instances/api.md

[coveralls-image]: https://coveralls.io/repos/github/data-provider/react/badge.svg
[coveralls-url]: https://coveralls.io/github/data-provider/react
[travisci-image]: https://travis-ci.com/data-provider/react.svg?branch=master
[travisci-url]: https://travis-ci.com/data-provider/react
[last-commit-image]: https://img.shields.io/github/last-commit/data-provider/react.svg
[last-commit-url]: https://github.com/data-provider/react/commits
[license-image]: https://img.shields.io/npm/l/@data-provider/react.svg
[license-url]: https://github.com/data-provider/react/blob/master/LICENSE
[npm-downloads-image]: https://img.shields.io/npm/dm/@data-provider/react.svg
[npm-downloads-url]: https://www.npmjs.com/package/@data-provider/react
[npm-dependencies-image]: https://img.shields.io/david/data-provider/react.svg
[npm-dependencies-url]: https://david-dm.org/data-provider/react
[quality-gate-image]: https://sonarcloud.io/api/project_badges/measure?project=data-provider-react&metric=alert_status
[quality-gate-url]: https://sonarcloud.io/dashboard?id=data-provider-react
[release-image]: https://img.shields.io/github/release-date/data-provider/react.svg
[release-url]: https://github.com/data-provider/react/releases
3 changes: 3 additions & 0 deletions babel.config.js
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@babel/preset-env", "@babel/preset-react"]
};
38 changes: 38 additions & 0 deletions jest.config.js
@@ -0,0 +1,38 @@
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html

module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,

// Indicates whether the coverage information should be collected while executing the test
collectCoverage: true,

// An array of glob patterns indicating a set of files for which coverage information should be collected
collectCoverageFrom: ["src/**"],

// The directory where Jest should output its coverage files
coverageDirectory: "coverage",

// An object that configures minimum threshold enforcement for coverage results
/* coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
}, */

// The test environment that will be used for testing
testEnvironment: "node",

// The glob patterns Jest uses to detect test files
testMatch: ["**/test/**/?(*.)+(spec|test).js?(x)"],

transform: {
".js$": "babel-jest"
},

setupFiles: ["<rootDir>/jest.init.js"]
};
1 change: 1 addition & 0 deletions jest.init.js
@@ -0,0 +1 @@
import "babel-polyfill";

0 comments on commit 0526aa8

Please sign in to comment.