Skip to content

Repository files navigation

Web Starter

Web development using parcel, eslint for linting Javascript, tslint for linting Typescript, prettier for formatting Javascript/Typescript files.

Usage

  1. Install nodejs. I highly recommend using nvm. If you are on mac or ubuntu, you could use the following command to install nodejs. It's from my lean-dotfiles configuration.

    On Mac

     curl -L j.mp/srtpldf > setup && bash setup web
    

    On Ubuntu

     wget -qO- j.mp/srtpldf > setup && bash setup web
    
  2. Clone this repository, install npm packages and open the project in visual studio code. Make sure you have git installed.

    npm install -g yarn
    git clone --depth=1 https://gitlab.com/pervezfunctor/web-starter.git && cd web-starter && rm -rf .git
    yarn install
    code .
    
  3. Start server using the following command.

    yarn start
    

    Now you can edit src/index.tsx in any editor and see your changes in browser immediately. You could use yarn test to run jest tests. You could use yarn verify for checking types and linting all files in src folder.

  1. Setup your editor

    If you use visual studio code, install the recommended visual studio code extensions in ~/.vscode/extensions.json. On Mac, you might have to install shell command.

License

MIT

About

Starter project for Javascript, Typescript or React development

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages