Web development using parcel, eslint for linting Javascript, tslint for linting Typescript, prettier for formatting Javascript/Typescript files.
-
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 webOn Ubuntu
wget -qO- j.mp/srtpldf > setup && bash setup web -
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 . -
Start server using the following command.
yarn startNow you can edit
src/index.tsxin any editor and see your changes in browser immediately. You could useyarn testto run jest tests. You could useyarn verifyfor checking types and linting all files insrcfolder.
-
Setup your editor
If you use
visual studio code, install the recommendedvisual studio code extensionsin~/.vscode/extensions.json. On Mac, you might have to install shell command.
MIT