Skip to content

Instantly share code, notes, and snippets.

@expalmer
Last active August 4, 2017 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save expalmer/271d1a1f77035d5c47dd1902d6fd791c to your computer and use it in GitHub Desktop.
Save expalmer/271d1a1f77035d5c47dd1902d6fd791c to your computer and use it in GitHub Desktop.
Budo + React + ES6 + Babel
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>App</title>
</head>
<body>
<div id="app"></div>
<script src="index.js"></script>
</body>
</html>
{
"name": "app",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"start": "budo src/index.js --live --pushstate -- -t [ babelify --presets [ react es2015 ] ]"
},
"devDependencies": {
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babelify": "^7.3.0",
"budo": "^10.0.4"
},
"dependencies": {
"react": "^15.6.1",
"react-dom": "^15.6.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment