https://github.com/melezhik/sparrowdo-vsts-angular-build
Sparrowdo module to generate VSTS yaml steps to build angular project
https://github.com/melezhik/sparrowdo-vsts-angular-build
angular angularjs perl6 vsts vsts-agent yaml
Last synced: about 2 months ago
JSON representation
Sparrowdo module to generate VSTS yaml steps to build angular project
- Host: GitHub
- URL: https://github.com/melezhik/sparrowdo-vsts-angular-build
- Owner: melezhik
- Created: 2018-08-07T21:03:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T20:31:51.000Z (over 7 years ago)
- Last Synced: 2025-04-10T00:56:29.436Z (about 1 year ago)
- Topics: angular, angularjs, perl6, vsts, vsts-agent, yaml
- Language: Perl
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# Sparrowdo::VSTS::YAML:Solution
Sparrowdo module to generate VSTS yaml steps to build angular project.
$ cat sparrowfile
module_run "VSTS::YAML::Angular::Build", %(
build-dir => "cicd/build"
);
$ sparrowdo --local_mode --no_sudo
# Build configuration
The module uses "per branch" build configuration. User should `define commands` to `describe build logic`
The Command files should be located at `src/env/$source_code_branch/` where:
- `$source_code_branch` is SCM branch name
The commands are executed in order defined by their files names ( alphabetic order )
Example:
# $source_code_branch = production
ls -1 src/env/production/
00-command.cmd # executed first
01-command.cmd # executed second
02-command.cmd # executed third, so on
You can use Powershell or Perl scripts as well:
00-command.cmd # windows batch script
01-command.pl # Perl script
02-command.ps1 # Powershell script
You may define `default` branch to execute command for any branch not matching listed branches:
src/env/default/
The example of command:
# cat src/env/dev/00-build.cmd
npm run -- ng build --configuration=dev
# Dependencies
Perl
# Author
Alexey Melezhik