Skip to content

Instantly share code, notes, and snippets.

@joaoneto
Created June 3, 2018 04:29
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 joaoneto/7fab74853165240c277f5b75a203c862 to your computer and use it in GitHub Desktop.
Save joaoneto/7fab74853165240c277f5b75a203c862 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
mkdir -p ./app
echo '{
"name": "my-project",
"version": "0.0.0",
"scripts": {
"dev": "webpack-recipes devserver 9000",
"build": "webpack-recipes build --mode=production"
},
"devDependencies": {
"babel-plugin-transform-react-jsx": "^6.24.1",
"webpack-recipes": "0.1.0",
"webpack-recipes-devserver": "joaoneto/webpack-recipes-devserver#master",
"webpack-recipes-es6": "joaoneto/webpack-recipes-es6#master"
}
}' > package.json
echo '<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
</body>
</html>' > app/index.html
npm install --loglevel=silent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment