Skip to content

Javascript Style Guide & Best Practices

Notifications You must be signed in to change notification settings

wappla/docs_javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript docs

Javascript Style Guide & Best Practices

React

Eslint

npm i --save-dev eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-react

React

Eslint

npm i --save-dev eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jest

Package.json

Frontend

"scripts": {
    "modules:install": "...",
    "modules:remove": "...",
    "modules:update": "...",
    "modules:reset": "...",
    "test": "...",
    "test:unit": "...",
    "test:integration": "...",
    "build": "...",
    "dev": "...",
    "debug": "...",
    "deploy:staging": "...",
    "deploy:production": "...",
}

Mobile

"scripts": {
    "modules:install": "...",
    "modules:remove": "...",
    "modules:update": "...",
    "modules:reset": "...",
    "test": "...",
    "test:unit": "...",
    "test:integration": "...",
    "build:ios": "...",
    "build:android": "...",
    "dev:ios": "...",
    "dev:android": "...",
    "publish:staging": "...",
    "publish:production": "...",
}

Backend

"scripts": {
    "modules:install": "...",
    "modules:remove": "...",
    "modules:update": "...",
    "docker:start": "docker-compose up -d",
    "docker:stop": "docker-compose stop",
    "docker:down": "docker-compose down",
    "test": "...",
    "test:unit": "...",
    "test:integration": "...",
    "start": "...",
    "dev": "...",
    "debug": "...",
    "migrate:make": "...",
    "migrate:latest": "...",
    "migrate:rollback": "...",
    "deploy:staging": "...",
    "deploy:production": "...",
}

Turbo global setup

"scripts": {
    "dev": "turbo run dev",
    "docker:start": "docker compose --profile develop up -d",
    "docker:stop": "docker compose stop",
    "docker:down": "docker compose down",
    "init": "npm run copy:env && npm run lingui:compile",
    "copy:env": "cp .env.example .env && (cd packages/api && cp .env.example .env); (cd packages/app && cp .env.example .env);",
    "lint": "eslint ./packages/*",
    "modules:install": "npm i",
    "modules:remove": "rm -rf ./node_modules",
    "modules:reset": "npm run modules:remove && npm run modules:install",
    "test": "turbo run test",
    "lingui:compile": "turbo run lingui:compile"
    },

About

Javascript Style Guide & Best Practices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •