Skip to content

wowawiwa/frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A typical front end project setup.

Install & Run

In the repository root directory:

npm install
npm run dev

Choices

Intended is to take the most standard tooling at the time of writing.

  • Webpack: Is the "runtime": It 1) serves the files on http://localhost:8080, but also 2) orchestrates the pipeline to transform source files to servable files.
  • npm as 1) the CL interface and 2) to manage frontend packages (at development time): It downloads libraries and keeps track of their versions and dependencies (in package.json and package-lock.json).
  • Babel is a package that contains the logic to convert from ES5+ to browser-compatible ES5.

More precisely, the dependencies in package.json:

  • webpack to bundle all the modules
  • webpack-cli to run webpack from cli
  • webpack-dev-server to serve the compiled file.
  • css-loader to configure webpack for compiling the css
  • style-loader loads all the css in the head of HTML
  • babel-loader to configure webpack for using babel
  • @babel/core to transpile the jsx to js
  • @babel/preset-env to configure the transpiler for old browser

Resources & Thanks

Keywords

  • front end (implies that JavaScript is executed by the browser aka client-side, as opposed to server-side).
  • setup sums up that it is an actual project repository, but containing only the non-specific code.
  • Possibly also related: boilerplate, development environment, project bootstraping.

About

Front end boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published