The project building tool with declarative YAML configuration based on Gulp and Webpack. Specializing on Pug, Stylus and TypeScript as source code languages; also works with images, fonts, videos and audios. Could be used for development of websites, web applications, console utilities and libraries.
npm i @yamato-daiwa/automation -D -E
Please familiarize with the YDF terminology because it is being used in documentation.
YDA required the configuration filed. As default, yda.config.yaml file will be searched in the project root directory.
- Common settings
- Markup processing settings
- Styles processing settings
- ECMAScript logic processing settings
- Plain copying
yda build
- Type
- string
- Is required
- YES
- Shortcut
- m
- Allowed alternatives
-
- STATIC_PREVIEW
- LOCAL_DEVELOPMENT
- TESTING
- STAGING
- PRODUCTION
The project building mode; affecting on, for example, output directory or code minification. See buildingModeDependent configuration of each task.
yda build --mode LOCAL_DEVELOPMENT
- Type
- string
- Default value
- yda.config.yaml
The relative path to configuration file. The file name extension ("yaml" of "yml") could be omitted.
yda build --configurationFile automation.yaml --mode DEVELOPMENT
- Type
- string
- Is required
- NO
The ID of selective execution which must be defined in configuration file if to use this option.
yda build --selectiveExecution StaticPreview --mode DEVELOPMENT
Depending on Gulp, pre-processors and other utils, YDA inherits theirs vulnerabilities. Once these vulnerabilities will be fixed in dependencies, it will be fixed in YDA.
The most problematic packages are:
- gulp
- access-sniff