Skip to content

Commit

Permalink
Development (#5)
Browse files Browse the repository at this point in the history
* publish to npm

* Feature: Add options to select whether the close button can be hidden and if the modal can be closed by clicking outside modal content area

* increase package number

* change folder structure, use nwb build tools to package module

* include development branch in travis file

* update travis to run tests

* add deploy command and update travis to deploy when merged into master

* fix syntax

* remove end of file

* cache npm

* validate yml

* add demo dist folder

* delete gh pages before deploying

* update travis file

* update cache

* add deploy command
  • Loading branch information
raff-r authored Jul 13, 2017
1 parent 72c5cd9 commit eb20cd3
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

# production
/lib
/es
/dist
src/**/*.css

Expand Down
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@ script:
after_success:
- cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && npm run deploy

branches:
only:
- master

cache:
directories:
- node_modules # NPM packages
- node_modules

deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./demo/dist
on:
branch: master
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# React Redux Modal [demo](https://raff-r.github.io/redux-modal/)

[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]
[![Build Status](https://travis-ci.org/raff-r/redux-modal.svg?branch=master)](https://travis-ci.org/raff-r/redux-modal)
[![Coverage Status](https://coveralls.io/repos/github/raff-r/redux-modal/badge.svg?branch=master)](https://coveralls.io/github/raff-r/redux-modal?branch=master)

## Implementation Guide

Expand Down Expand Up @@ -130,14 +129,4 @@ hideCloseBtn | Hide close button or not | true, fals
closeOutsideModal | Allow modal to be closed outside content area | true, false |

### hideModal()
Remove the current open modal from the DOM


[build-badge]: https://img.shields.io/travis/raff-r/redux-modal/master.png?style=flat-square
[build]: https://travis-ci.org/raff-r/redux-modal

[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/npm-package

[coveralls-badge]: https://img.shields.io/coveralls/raff-r/redux-modal/master.png?style=flat-square
[coveralls]: https://coveralls.io/github/raff-r/redux-modal
Remove the current open modal from the DOM
2 changes: 2 additions & 0 deletions demo/dist/demo.0cebcd5b.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions demo/dist/demo.0cebcd5b.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions demo/dist/demo.9bb40905.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions demo/dist/demo.9bb40905.js.map

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions demo/dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>React Redux Modal</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.99.0/css/materialize.min.css">
<link href="demo.0cebcd5b.css" rel="stylesheet"></head>
<body>
<div id="root"></div>
<script src="demo.js"></script>
<script>!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,u){for(var i,a,f,l=0,s=[];l<t.length;l++)a=t[l],o[a]&&s.push(o[a][0]),o[a]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(r&&r(t,c,u);s.length;)s.shift()();if(u)for(l=0;l<u.length;l++)f=n(n.s=u[l]);return f};var t={},o={1:0};n.e=function(e){function r(){i.onerror=i.onload=null,clearTimeout(a);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var c=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=c;var u=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=12e4,n.nc&&i.setAttribute("nonce",n.nc),i.src=n.p+""+({0:"demo"}[e]||e)+"."+{0:"9bb40905"}[e]+".js";var a=setTimeout(r,12e4);return i.onerror=i.onload=r,u.appendChild(i),c},n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n.oe=function(e){throw console.error(e),e}}([]);</script>
<script type="text/javascript" src="demo.9bb40905.js"></script></body>
</html>
2 changes: 2 additions & 0 deletions demo/dist/manifest.b833ca30.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eb20cd3

Please sign in to comment.