@criticalmanufacturing/dev-tasks

8.2.0 • Public • Published

CMF MES HTML Development Tasks

@criticalmanufacturing/dev-tasks is a set of reusable gulp tasks that enable CMF MES developers to jump start their projects by providing state-of-the-art tooling.

This package is meant to be used in conjunction with html-starter.

Tasks available

Repository root

Install

$ gulp install [options]

Runs gulp install for each app, dependency or package within the repository.

Additional flags

The same as package install additional flags.

Build

$ gulp build [options]

Runs gulp build for each app, dependency or package within the repository.

Additional flags

The same as package build additional flags.

Start

$ gulp start [options]

Runs gulp start on the main app, configured within the gulpfile.js present at the repository root.

Package

Install

$ gulp install [options]

Install all package dependencies declared in package.json into the node_modules folder.

Additional Flags

--link

Make symbolic links to another packages. Links are read from package.json file, under the property cmfLinkDependencies.

This is active by default.

When importing, it will also link all links dependencies. Links with a lower deep-level will have more priority.

// package.json file
{
    "name": "my-module",
    "cmfLinkDependencies": {
        "my-module-A": "file:../packages/my-module-A/"
    }
}

Use --no-link to disable this option.

--link-external

Make symbolic links to another packages outside the project dir.

This is active by default.

Use --no-link-external to disable this option.

Build

$ gulp build [options]

Builds the package in developer mode (every typescript file is transpiled into a respective javascript file)

Additional Flags

--production

Builds the package in production mode (creates a bundle all i18n files, another for the metadata, and another with the remaining package code).

--dist

Should be used in conjunction with --production. On top of the packages, it also generates typescript definition files and individual javascript transpiled files.

This flag should be used if the package is meant to be redistributed and extended by others.

App

Start

$ gulp start [options]

Starts the application. By default starts on developer mode.

Additional Flags

--production

Starts the application in production mode.

Additional Information

This package was developed during the UX-FAB: Universal Experience for Advanced Fabs project.

Portugal2020

Readme

Keywords

Package Sidebar

Install

npm i @criticalmanufacturing/dev-tasks

Weekly Downloads

16

Version

8.2.0

License

GPL-3.0

Unpacked Size

138 kB

Total Files

21

Last publish

Collaborators

  • pedroapap
  • adeliofernandes
  • jagoncalves
  • francisco-maciel
  • jsantoscmf
  • criticalmanufacturing.com
  • msilva_cmf
  • lmponte