Skip to content

Instantly share code, notes, and snippets.

@djtriptych
Last active July 26, 2018 20:33
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 djtriptych/b701577989a10838864c4c0e01fe8702 to your computer and use it in GitHub Desktop.
Save djtriptych/b701577989a10838864c4c0e01fe8702 to your computer and use it in GitHub Desktop.
JS Playground
# Basic directory structure
mkdir -p dist src
# Install and use the latest node 10.x.x
nvm install 10
nvm use 10
# Create package.json
node init -y
# Git is a must
touch README.md
touch .gitignore
git init .
echo "node_modules" >> .gitignore
echo "dist" >> .gitignore
git init .
# Webpack
npm install --save-dev webpack webpack-cli
npm install --save-dev @webpack-cli/init
npx webpack init .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment