0.4.0 • Published 10 years ago
resurge v0.4.0
________ _______ ___________ ____
/ ___/ _ \/ ___/ / / / ___/ __ `/ _ \
/ / / __(__ ) /_/ / / / /_/ / __/
/_/ \___/____/\__,_/_/ \__, /\___/
/____/Make and share a small React project with minimal effort. In response to @vjeux's fun challenge.
npm i resurge -g- Go to surge.sh and register an account (this is the place where we will put our apps)
mkdir your-project-name-here && cd your-project-name-heretouch index.js, add a React component and export it- Run
resurge
My project name is taken
Rename the directory and try again? :p
Other commands
resurge --listwill show you apps you have deployed to surge.shresurge --watchwill watch your directory for changes and publish them to surge automatically
Sample starter app
var React = require('react');
class App extends React.Component {
render() {
return (
<h1>Hello world</h1>
);
}
}
module.exports = App;