RobertoBarros / batch_1070_1040_ajax

webpack-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requirements

You must have Node and Yarn installed on your computer with the same versions than in our setup. Check it with:

node -v
yarn -v
# Compare the versions with the ones in the setup

If it's not the case, go back to the dedicated section of the macOS, Windows or Ubuntu setup.

Installation

First clone this repository to your laptop:

cd ~/code/<your_github_nickname>
git clone git@github.com:lewagon/webpack-boilerplate.git my-js-project
cd my-js-project
rm -rf .git
yarn install
code . # Open this folder in your text editor

Make sure you have ./node_modules/.bin in your $PATH:

echo $PATH
# You should see `./node_modules/.bin` in the list

If it's not the case, add it:

cd ~/code/dotfiles/<your_github_nickname>
echo 'export PATH="./bin:./node_modules/.bin:${PATH}"' >> zshrc
cd ~/code/<your_github_nickname>/my-js-project
source ~/.zshrc

This way you can run:

eslint lib
webpack-dev-server

Once a file has been updated in your text editor, you can run it with:

node lib/01_types.js

About

webpack-boilerplate


Languages

Language:JavaScript 63.6%Language:HTML 36.4%