Skip to content

Commit

Permalink
ci: add gitpod config (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
nisarhassan12 committed Oct 26, 2020
1 parent b8d5245 commit 96e7c15
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .gitpod.yml
@@ -0,0 +1,6 @@
tasks:
- init: yarn install && yarn run build
command: yarn run start
ports:
- port: 8080
onOpen: open-preview
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -7,6 +7,7 @@
[![codecov](https://img.shields.io/codecov/c/gh/react-dropzone/react-dropzone/master.svg?style=flat-square)](https://codecov.io/gh/react-dropzone/react-dropzone)
[![Open Collective](https://img.shields.io/opencollective/backers/react-dropzone.svg?style=flat-square)](#backers)
[![Open Collective](https://img.shields.io/opencollective/sponsors/react-dropzone.svg?style=flat-square)](#sponsors)
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/react-dropzone/react-dropzone)

Simple React hook to create a HTML5-compliant drag'n'drop zone for files.

Expand Down
7 changes: 5 additions & 2 deletions styleguide.config.js
@@ -1,12 +1,15 @@
/* eslint import/no-extraneous-dependencies: 0 */
const path = require('path')
const { createConfig, babel, css } = require('webpack-blocks')
const { createConfig, babel, css, devServer } = require('webpack-blocks')

// https://react-styleguidist.js.org/docs/configuration.html
module.exports = {
title: 'react-dropzone',
styleguideDir: path.join(__dirname, 'styleguide'),
webpackConfig: createConfig([babel(), css()]),
webpackConfig: createConfig([babel(), css(), devServer({
disableHostCheck: true,
host: '0.0.0.0',
})]),
exampleMode: 'expand',
usageMode: 'expand',
showSidebar: false,
Expand Down

0 comments on commit 96e7c15

Please sign in to comment.