Console commands

Before using console commands Node.js and Git must be installed. See the Introduction page.

Commands list

Command Description
npm install Install NPM packages.
npm run bower:install Install Bower packages.
npm run bower:update Update Bower packages.
npm start Run local server. After launching this command visit http://localhost:8000.
npm run compile Compile SCSS and JS sources.
npm run compile:scss Compile SCSS sources.
npm run compile:js Compile concatenated version sources.
npm run compile:amd Compile RequireJS version sources.
npm run compile:angular Compile angular version sources.
npm run compile:js:all Compile all versions.
npm run watch

Poll the source dirs for changes. When any source file change then the corresponding compile:* command will be executed.

The watch command watches the next directories:

  • js/src
  • scss
  • custom/js (if exists)
  • custom/scss (if exists)

For example

  • if you change any file in the js/src or custom/js, then compile:js:all command will be executed.
  • if you change any file in the scss or custom/scss, then compile:scss command will be executed.

Open terminal

First of all, you need to open a terminal window and move to the PixelAdmin's source or custom build directory.

Windows

On Windows you can open terminal in two ways:




Linux(Ubuntu)

On Ubuntu you can open terminal in two ways:





Mac OS X
  1. Open Launchpad Other Terminal.
  2. Move to the targeted directory.

Usage

Before you run npm run compile:* or npm run watch commands, make sure that NPM and Bower packages are installed:

npm install
npm run bower:install

Now you can run npm run compile:* and npm run watch commands.