Git Product home page Git Product logo

resurge's Introduction

   ________  _______  ___________ ____
  / ___/ _ \/ ___/ / / / ___/ __ `/ _ \
 / /  /  __(__  ) /_/ / /  / /_/ /  __/
/_/   \___/____/\__,_/_/   \__, /\___/
                          /____/

Make and share a small React project with minimal effort. In response to @vjeux's fun challenge.

  1. npm i resurge -g
  2. mkdir your-project && cd your-project
  3. touch index.js, add a React component and export it
  4. Run resurge

My project name is taken

Rename the directory and try again? :p

Commands

  • resurge will build and publish your app
  • resurge --watch will watch your directory for changes and publish them to surge automatically
  • resurge --list will show you apps you have deployed to surge.sh

Can I use xyz?

  • Install any npm package you want. Your project will have react/react-dom by default.
  • This uses Babel/Browserfiy, with stage-3 and react plugins.

Sample starter app

'use strict';
var React = require('react');

class App extends React.Component {
  render() {
    return (
      <h1>Hello world</h1>
    );
  }
}

module.exports = App;

Contribute

  • Feel free to contribute in any way you want as long as it doesn't make this project any more difficult to get into. Creating a new project and publishing it should never take more than the 4 simple steps described above.
  • You could make the CLI better, like this: https://github.com/sintaxi/harp/blob/ko-with-surge/bin/harp

resurge's People

Contributors

brentvatne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

eiriklv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.