Onemedia Build Tools
Getting started
mkdir new-project
npm init -y
npm install --save-dev @onemedia/build-tools
This will automatically place a Makefile
in the project folder. Once done, just run make bootstrap
This will install the basic dependencies for your project (based off the project name). The rules for naming are simple - if the folder name has the word service
in it, then it's assumed to be a backend project. Otherwise it's assumed to be a frontend project.
Other commands
make config
Will attempt to download the environment variables configured for the application. You must have the aws
cli tool installed and a onemedia
credentials profile configured to use locally.
On CircleCI it will not use the credentials profile as the required environment variables should be set by the build config context.
make help
Will provide a list of available commands with a description for each.