@psk/sam-compiler
v1.21.4
Published
1. Install [Node.js](https://nodejs.org/en/download/). 2. `npm login` ('npm login' in Bitwarden). 3. `npm install -g @psk/sam-compiler`. 4. Verify installation by running `samc`.
Readme
SAM Compiler
Getting started
Install compiler
- Install Node.js.
npm login('npm login' in Bitwarden).npm install -g @psk/sam-compiler.- Verify installation by running
samc.
Setup configuration
- Clone the git repository into a new folder.
- Run
samc initin the new folder. - In
.env, fill in DOMINO_USER and DOMINO_PASSWORD.
Other useful stuff
Publish compiler
- Run
npm publish.
Update compiler
npm update -g @psk/sam-compiler.- Verify latest version by running
samc -v.
Update TeamCity build agents
- SSH into agents. (SSH-key in BitWarden: pskinfrastructure.aws.teamcity)
- Run
sudo npm -g update @psk/sam-compiler. - Verify latest version by running
samc -v.
Install development compiler
- If you already have the compiler installed, uninstall it via
npm uninstall -g @psk/sam-compiler. - Clone this git repository.
- Run
npm install. - Run
npm link.
Uninstall development compiler
- Run
npm unlink.
Commands
init
Creates a couple required initial files for the configuration folder.
compile
Compile the configuration and output the results.
publish
Compile the configuration and publish it to the configured endpoint.
The option -c lets you specify specific config for publish (samc -c config.staging.json publish)
analyse
Run an analysis program on the configuration.
Configuration
Settings
- api-view-design-method="direct"|"domino"
Controls how the compiler gets view designs. Default is "direct".
