Git Product home page Git Product logo

webpack-boilerplate's Introduction

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 [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:

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

webpack-boilerplate's People

Contributors

db0sch avatar dependabot[bot] avatar dmilon avatar eschults avatar primaulia avatar ssaunier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webpack-boilerplate's Issues

Can't use async / await functions

Boilerplate setup can't handle javascript async / await functions.

Example:

const fetchApi = async () => {
  const response = await fetch("http://www.omdbapi.com/?s=harry potter&apikey=adf1f2d7");
  const data = await response.json();
  console.log(data);
};

fetchApi();

To fix that issue:

  1. Add "@babel/plugin-transform-runtime": "^7.17.10" in package.json dependencies.
  2. Add "@babel/plugin-transform-runtime" in babelrc file plugins section.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.