Skip to content

Commands

Marat Zimnurov edited this page Aug 30, 2020 · 1 revision

Useful commands

Installation commands

Installation wiki

Running the project without Docker

However you get the code, you can install dependencies and run the project in development mode with:

cd my-app
npm install # or yarn
npm run dev

Open up localhost:3000 and start clicking around.

Consult sapper.svelte.dev for help getting started.

Docker

Docker wiki

Formatter usage

# TypeScript/JavaScript/Svelte files
npm run prettier

# TypeScript files
npm run prettier:typescript

# JavaScript files
npm run prettier:javascript

# Svelte files
npm run prettier:svelte

Linter usage

# run the linting
npm run eslint

# show configuration of ESLint
# may be useful at pipeline usage
npm run eslint:dump

# fix code by ESLint
npm run eslint:fix

Storybook usage

# run the storybook
npm run storybook

Fontello usage

# any new icons can be added by update of fontello.config.json
# all icons placed at http://fontello.com/

# build icons & fonts based on fontello.config.json
npm run build

Update packages

# show all packages that can be updated
npm run update:pull

# increase and install versions of packages
npm run update:install