Improvements to template and configs
parent
26f4fbefaa
commit
79b5a6e662
|
|
@ -35,6 +35,19 @@
|
||||||
"url": ""
|
"url": ""
|
||||||
},
|
},
|
||||||
"build": [
|
"build": [
|
||||||
|
{
|
||||||
|
"activity": {
|
||||||
|
"category": "BUILD",
|
||||||
|
"id": "make",
|
||||||
|
"name": "Make command",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"config": "",
|
||||||
|
"guide": "",
|
||||||
|
"id": "make:build",
|
||||||
|
"platform": "windows",
|
||||||
|
"script": "--file Makefile build"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"activity": {
|
"activity": {
|
||||||
"category": "BUILD",
|
"category": "BUILD",
|
||||||
|
|
@ -161,6 +174,19 @@
|
||||||
"version": "0.0.1"
|
"version": "0.0.1"
|
||||||
},
|
},
|
||||||
"test": [
|
"test": [
|
||||||
|
{
|
||||||
|
"activity": {
|
||||||
|
"category": "TEST",
|
||||||
|
"id": "make",
|
||||||
|
"name": "Make command",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"config": "",
|
||||||
|
"guide": "",
|
||||||
|
"id": "make:test",
|
||||||
|
"platform": "windows",
|
||||||
|
"script": "--file Makefile test"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"activity": {
|
"activity": {
|
||||||
"category": "TEST",
|
"category": "TEST",
|
||||||
|
|
|
||||||
|
|
@ -38,74 +38,86 @@ scan:
|
||||||
regex: []
|
regex: []
|
||||||
activities:
|
activities:
|
||||||
engines:
|
engines:
|
||||||
- osEnvironment: windows
|
- category: BUILD
|
||||||
category: BUILD
|
osEnvironment: windows
|
||||||
|
id: "make"
|
||||||
|
name: Make command
|
||||||
|
command: "make.exe"
|
||||||
|
option: ""
|
||||||
|
- category: BUILD
|
||||||
|
osEnvironment: windows
|
||||||
id: '*default'
|
id: '*default'
|
||||||
name: Default Windows engine
|
name: Default Windows engine
|
||||||
command: pwsh.exe
|
command: pwsh.exe
|
||||||
option: -Command
|
option: -Command
|
||||||
- osEnvironment: windows
|
- category: BUILD
|
||||||
category: BUILD
|
osEnvironment: windows
|
||||||
id: pwsh-command
|
id: pwsh-command
|
||||||
name: ""
|
name: ""
|
||||||
command: pwsh.exe
|
command: pwsh.exe
|
||||||
option: -Command
|
option: -Command
|
||||||
- osEnvironment: windows
|
- category: BUILD
|
||||||
category: BUILD
|
osEnvironment: windows
|
||||||
id: pwsh-script
|
id: pwsh-script
|
||||||
name: ""
|
name: ""
|
||||||
command: pwsh.exe
|
command: pwsh.exe
|
||||||
option: -File
|
option: -File
|
||||||
- osEnvironment: windows
|
- category: BUILD
|
||||||
category: BUILD
|
osEnvironment: windows
|
||||||
id: cmd-command
|
id: cmd-command
|
||||||
name: ""
|
name: ""
|
||||||
command: cmd.exe
|
command: cmd.exe
|
||||||
option: ""
|
option: ""
|
||||||
- osEnvironment: windows
|
- category: BUILD
|
||||||
category: BUILD
|
osEnvironment: windows
|
||||||
id: no-command
|
id: no-command
|
||||||
name: ""
|
name: ""
|
||||||
command: '*null'
|
command: '*null'
|
||||||
option: ""
|
option: ""
|
||||||
- osEnvironment: linux
|
- category: BUILD
|
||||||
category: BUILD
|
osEnvironment: linux
|
||||||
id: '*default'
|
id: '*default'
|
||||||
name: Default Linux engine
|
name: Default Linux engine
|
||||||
command: /bin/sh
|
command: /bin/sh
|
||||||
option: -c
|
option: -c
|
||||||
- osEnvironment: linux
|
- category: BUILD
|
||||||
category: BUILD
|
osEnvironment: linux
|
||||||
id: pwsh-command
|
id: pwsh-command
|
||||||
name: ""
|
name: ""
|
||||||
command: pwsh
|
command: pwsh
|
||||||
option: -Command
|
option: -Command
|
||||||
- osEnvironment: linux
|
- category: BUILD
|
||||||
category: BUILD
|
osEnvironment: linux
|
||||||
id: pwsh-script
|
id: pwsh-script
|
||||||
name: ""
|
name: ""
|
||||||
command: pwsh
|
command: pwsh
|
||||||
option: -File
|
option: -File
|
||||||
- osEnvironment: darwin
|
- category: BUILD
|
||||||
category: BUILD
|
osEnvironment: darwin
|
||||||
id: '*default'
|
id: '*default'
|
||||||
name: ""
|
name: ""
|
||||||
command: /bin/sh
|
command: /bin/sh
|
||||||
option: -c
|
option: -c
|
||||||
- osEnvironment: windows
|
- category: TEST
|
||||||
category: TEST
|
osEnvironment: windows
|
||||||
|
id: "make"
|
||||||
|
name: Make command
|
||||||
|
command: "make.exe"
|
||||||
|
option: ""
|
||||||
|
- category: TEST
|
||||||
|
osEnvironment: windows
|
||||||
id: '*default'
|
id: '*default'
|
||||||
name: Default Windows engine
|
name: Default Windows engine
|
||||||
command: pwsh.exe
|
command: pwsh.exe
|
||||||
option: -Command
|
option: -Command
|
||||||
- osEnvironment: windows
|
- category: TEST
|
||||||
category: TEST
|
osEnvironment: windows
|
||||||
id: pwsh-command
|
id: pwsh-command
|
||||||
name: ""
|
name: ""
|
||||||
command: pwsh.exe
|
command: pwsh.exe
|
||||||
option: -Command
|
option: -Command
|
||||||
- osEnvironment: windows
|
- category: TEST
|
||||||
category: TEST
|
osEnvironment: windows
|
||||||
id: pwsh-script
|
id: pwsh-script
|
||||||
name: ""
|
name: ""
|
||||||
command: pwsh.exe
|
command: pwsh.exe
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,57 @@
|
||||||
|
# Project
|
||||||
|
|
||||||
|
One Paragraph of project description goes here
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
|
||||||
|
|
||||||
|
## MakeFile
|
||||||
|
|
||||||
|
Build the application
|
||||||
|
|
||||||
|
```bash
|
||||||
|
qaskx-cli run -t make:build
|
||||||
|
```
|
||||||
|
|
||||||
|
Run the application
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make run
|
||||||
|
```
|
||||||
|
|
||||||
|
Create DB container
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make docker-run
|
||||||
|
```
|
||||||
|
|
||||||
|
Shutdown DB Container
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make docker-down
|
||||||
|
```
|
||||||
|
|
||||||
|
DB Integrations Test:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make itest
|
||||||
|
```
|
||||||
|
|
||||||
|
Live reload the application:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make watch
|
||||||
|
```
|
||||||
|
|
||||||
|
Run the test suite:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
qaskx-cli run -t make:test
|
||||||
|
```
|
||||||
|
|
||||||
|
Clean up binary from the last build:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make clean
|
||||||
|
```
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"id": "goblueprint",
|
"id": "goblueprint",
|
||||||
"script": "go-blueprint",
|
"script": "go-blueprint",
|
||||||
"pre":[
|
"pre":[
|
||||||
"create --name distribute_message --framework echo --driver sqlite --advanced --feature docker --git commit"
|
"create --name distribute_message --framework echo --driver sqlite --advanced --feature docker --git skip"
|
||||||
],
|
],
|
||||||
"post": []
|
"post": []
|
||||||
}
|
}
|
||||||
|
|
@ -38,6 +38,14 @@
|
||||||
"post": []
|
"post": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"engine": "",
|
||||||
|
"section": "",
|
||||||
|
"folder": "{{.TemplateDefinition.SelfFolder}}/definitions/golang",
|
||||||
|
"file_name": "*",
|
||||||
|
"output_folder": "^/",
|
||||||
|
"output_name": "*"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"engine": "",
|
"engine": "",
|
||||||
"section": "",
|
"section": "",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue