Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lewagon/webpack-boilerplate
https://github.com/lewagon/webpack-boilerplate
boilerplate es6 webpack
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lewagon/webpack-boilerplate
- Owner: lewagon
- Created: 2017-07-29T09:21:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-25T14:08:22.000Z (over 1 year ago)
- Last Synced: 2023-08-06T10:11:55.607Z (over 1 year ago)
- Topics: boilerplate, es6, webpack
- Language: JavaScript
- Size: 209 KB
- Stars: 43
- Watchers: 12
- Forks: 41
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Requirements
You must have Node and Yarn installed on your computer [with the same versions than in our setup](https://github.com/lewagon/setup/blob/master/macos.md#nodejs). Check it with:
```bash
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](https://github.com/lewagon/setup/blob/master/macos.md#nodejs), [Windows](https://github.com/lewagon/setup/blob/master/windows.md#installing-some-gems) or [Ubuntu](https://github.com/lewagon/setup/blob/master/ubuntu.md#installing-some-gems) setup.
## Installation
First clone this repository to your laptop:
```bash
cd ~/code/
git clone [email protected]: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`:
```bash
echo $PATH
# You should see `./node_modules/.bin` in the list
```If it's not the case, add it:
```bash
cd ~/code/dotfiles/
echo 'export PATH="./bin:./node_modules/.bin:${PATH}"' >> zshrc
cd ~/code//my-js-project
source ~/.zshrc
```This way you can run:
```bash
eslint lib
webpack-dev-server
```Once a file has been updated in your text editor, you can run it with:
```bash
node lib/01_types.js
```