🔏
starhackit
  • README
  • Getting started
    • Requirements
    • Quick Start
  • Frontend
    • The Frontend
      • Npm scripts
    • Unit testing
    • End 2 End Testing
    • Multi Application
    • Production Build
    • Internationalization
    • Configuration
    • Cut and Paste detector
    • Webpack
  • Backend
    • Node Backend
      • Npm scripts
    • Development Enviromnent with docker-compose
    • Testing
      • Code Coverage
    • Configuration
    • Debugging
    • Database
    • Http Server
      • CORS
    • Authentication
      • Social Authentication
      • Local Authentication with JWT
    • Email
    • Redis
    • Api Model
      • Api Mocking
  • Deployment
    • Build, Tag and Push Docker Images
    • Releasing
    • Deploy Infrastructure with GruCloud
    • Deploy with Ansible
Powered by GitBook
On this page

Was this helpful?

  1. Frontend
  2. The Frontend

Npm scripts

These are the main npm commands for a normal developer workflow:

npm command
details

npm install

Install dependencies

npm start

Start a development web server to the basic frontend

npm test

Run the unit tests with Karma

npm run test:watch

Watch the code and run the unit test

npm run e2e

Run the end to end tests with Nigthwatch/Selenium

npm run build

Create a production build

npm run start:prod

start a web server to serve the production build

npm run lint

Lint the source code

npm run cpd

Run the copy and paste detector

npm run clean

Clean the project

PreviousThe FrontendNextUnit testing

Last updated 3 years ago

Was this helpful?