mkbrut 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mkbrut/version.rb +1 -1
- data/templates/Base/.dockerignore +25 -0
- data/templates/Base/.env.development.erb +60 -0
- data/templates/Base/.env.development.local +2 -0
- data/templates/Base/.env.test.erb +8 -0
- data/templates/Base/.gitignore +31 -0
- data/templates/Base/.projections.json +59 -0
- metadata +7 -3
- data/templates/Base/bin/ci +0 -39
- data/templates/Base/bin/db +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a6753318ea2d645852f873847bafb54426eeac65bd56cf9db3cc63de2fd6589
|
4
|
+
data.tar.gz: 03b9062a1d669a654ed24fe0a0e49de52264d418bf32ea9a6a15f3ec5bb7d263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9874dc24521e55040c71c4e809b7c8c59528846d31cfaee60759c34508db71770764d232c10a23c6fe0d68a119131bdf2bb5487555b6a7383d039997ee6a63de
|
7
|
+
data.tar.gz: c46baff4083735a92f0164409605b9b3aa397cac4af40e40336d3ff027edf6c9d94a0bcecbdacdf0135b60fa2a7d23db2f90fcfc75a35236783e15c107ce3c5e
|
data/lib/mkbrut/version.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Ignore git directory.
|
2
|
+
/.git/
|
3
|
+
/.gitignore
|
4
|
+
|
5
|
+
# Ignore bundler config.
|
6
|
+
/.bundle
|
7
|
+
|
8
|
+
# Ignore all environment files
|
9
|
+
/.env*
|
10
|
+
|
11
|
+
# Ignore all logfiles and tempfiles.
|
12
|
+
/logs/*
|
13
|
+
/tmp/*
|
14
|
+
|
15
|
+
# The most important thing to ignore of all time
|
16
|
+
/node_modules/
|
17
|
+
|
18
|
+
# Ignore generated assets
|
19
|
+
/app/public/*
|
20
|
+
|
21
|
+
# Ignore Docker-related files
|
22
|
+
/.dockerignore
|
23
|
+
/Dockerfile*
|
24
|
+
/docker-compose.*
|
25
|
+
/deploy/docker-compose.*
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Environment variables needed for running in development. This file
|
2
|
+
# also serves as the canonical list of ALL environment variables the app
|
3
|
+
# must have in production.
|
4
|
+
#
|
5
|
+
# Each env var should be preceded by a comment explaining its purpose.
|
6
|
+
# The env var itself can be written in one of two ways:
|
7
|
+
#
|
8
|
+
# * Conventionally set a value:
|
9
|
+
#
|
10
|
+
# ```
|
11
|
+
# # the API key to interact with the OCP Widgets Service.
|
12
|
+
# WIDGETS_API_KEY=some-value
|
13
|
+
# ```
|
14
|
+
# Ideally, all values are set this way so that everyone is using the same
|
15
|
+
# value and the app just works without having to go to an external service
|
16
|
+
# to get a real secret for local development.
|
17
|
+
#
|
18
|
+
# * Indicates a local override is required:
|
19
|
+
#
|
20
|
+
# ```
|
21
|
+
# # the API key to interact with the OCP Widgets Service.
|
22
|
+
# LOCAL:WIDGETS_API_KEY
|
23
|
+
# ```
|
24
|
+
#
|
25
|
+
# In this form, bin/setup will ask the developer for the value and place
|
26
|
+
# it in .env.development.local. As your app evolves and adds more
|
27
|
+
# environment variables, you can add them like this and `bin/setup` will
|
28
|
+
# see which ones are present vs missing.
|
29
|
+
|
30
|
+
# Session secret used to encrypt the session
|
31
|
+
SESSION_SECRET=<%= session_secret %>
|
32
|
+
# URL to the database
|
33
|
+
DATABASE_URL=postgres://postgres:postgres@postgres:5432/<%= app_id %>_development
|
34
|
+
|
35
|
+
# Configures the endpoint where OTel traces are sent.
|
36
|
+
# In dev and test, it's the otel-desktop-viewer set up in
|
37
|
+
# docker-compose.dx.yml. For production, consult your
|
38
|
+
# OTel vendor's documentation.
|
39
|
+
OTEL_EXPORTER_OTLP_ENDPOINT="http://otel-desktop-viewer:4318"
|
40
|
+
|
41
|
+
# OTel exporter to use for sending traces to the endpoint. You usually
|
42
|
+
# want otlp, however, in production, consult your vendor's documentation to be sure.
|
43
|
+
OTEL_TRACES_EXPORTER="otlp"
|
44
|
+
|
45
|
+
# OTel exporter protocol. You usually want http/protobuf, however,
|
46
|
+
# in production, consult your vendor's documentation to be sure.
|
47
|
+
OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
|
48
|
+
|
49
|
+
# This controls the background thread used by the span processor.
|
50
|
+
# I swear I had to set this to false to make stuff work, however
|
51
|
+
# various corporate AI chatbots said it should be true for use with
|
52
|
+
# Puma. I'm going with my hazy memory for now.
|
53
|
+
OTEL_RUBY_BSP_START_THREAD_ON_BOOT=false
|
54
|
+
|
55
|
+
# OTel log level. Set this to "debug" to try to figure out why OTel isn't working.
|
56
|
+
OTEL_LOG_LEVEL=warn
|
57
|
+
|
58
|
+
# If set to true, Puma will log its configuration, which is handy to understand
|
59
|
+
# if what you think you configured actually got configured.
|
60
|
+
PUMA_LOG_CONFIG=true
|
@@ -0,0 +1,8 @@
|
|
1
|
+
SESSION_SECRET=<%= session_secret %>
|
2
|
+
DATABASE_URL=postgres://postgres:postgres@postgres:5432/<%= app_id %>_test
|
3
|
+
OTEL_EXPORTER_OTLP_ENDPOINT="http://otel-desktop-viewer:4318"
|
4
|
+
OTEL_TRACES_EXPORTER="otlp"
|
5
|
+
OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
|
6
|
+
OTEL_RUBY_BSP_START_THREAD_ON_BOOT=false
|
7
|
+
OTEL_LOG_LEVEL=warn
|
8
|
+
PUMA_LOG_CONFIG=true
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Never checkin tmp
|
2
|
+
/tmp
|
3
|
+
# This should never be checked in
|
4
|
+
/node_modules
|
5
|
+
# This contains generated code, so should not be checked in
|
6
|
+
/app/public/css
|
7
|
+
# This contains generated code, so should not be checked in
|
8
|
+
/app/public/js
|
9
|
+
# This contains generated code, so should not be checked in
|
10
|
+
/app/public/static/images/
|
11
|
+
# Don't want to check in the generated JSDocs dir
|
12
|
+
/jsdocs
|
13
|
+
# This is generated per environment
|
14
|
+
/app/config/asset_metadata.json
|
15
|
+
# Don't check in logs
|
16
|
+
/logs
|
17
|
+
|
18
|
+
# This could contain actual secrets and should not be checked in
|
19
|
+
/.env.development.local
|
20
|
+
|
21
|
+
# These are generated artifacts
|
22
|
+
/deploy/Dockerfile.*
|
23
|
+
/deploy/docker-compose.yml
|
24
|
+
|
25
|
+
# RSpec configuration should be in one place.
|
26
|
+
# Devs can override as needed, but this is not how
|
27
|
+
# configuration is to be shared
|
28
|
+
/.rspec
|
29
|
+
|
30
|
+
# Gems installed locally should not be checked in
|
31
|
+
/local-gems
|
@@ -0,0 +1,59 @@
|
|
1
|
+
{
|
2
|
+
"app/src/*.rb": {
|
3
|
+
"alternate": "specs/{}.spec.rb",
|
4
|
+
"type": "source"
|
5
|
+
},
|
6
|
+
"app/src/front_end/js/*.js": {
|
7
|
+
"alternate": "specs/front_end/js/{}.spec.js",
|
8
|
+
"type": "js"
|
9
|
+
},
|
10
|
+
"specs/*.spec.rb": {
|
11
|
+
"alternate": "app/src/{}.rb",
|
12
|
+
"type": "spec"
|
13
|
+
},
|
14
|
+
"specs/front_end/js/*.spec.js": {
|
15
|
+
"alternate": "app/src/front_end/js/{}.js",
|
16
|
+
"type": "jsspec"
|
17
|
+
},
|
18
|
+
"app/src/front_end/components/*.rb": {
|
19
|
+
"type": "component"
|
20
|
+
},
|
21
|
+
"app/src/front_end/forms/*.rb": {
|
22
|
+
"type": "form"
|
23
|
+
},
|
24
|
+
"app/src/front_end/handlers/*.rb": {
|
25
|
+
"type": "handler"
|
26
|
+
},
|
27
|
+
"app/src/front_end/pages/*.rb": {
|
28
|
+
"type": "page"
|
29
|
+
},
|
30
|
+
"app/src/front_end/pages/*.html.rb": {
|
31
|
+
"type": "erb"
|
32
|
+
},
|
33
|
+
"app/src/back_end/data_models/db/*.rb": {
|
34
|
+
"type": "db"
|
35
|
+
},
|
36
|
+
"app/src/back_end/data_models/migrations/*.rb": {
|
37
|
+
"type": "migration"
|
38
|
+
},
|
39
|
+
"app/src/back_end/data_models/migrations/*.sql": {
|
40
|
+
"type": "migration"
|
41
|
+
},
|
42
|
+
"app/src/back_end/data_models/seed/*.rb": {
|
43
|
+
"type": "seed"
|
44
|
+
},
|
45
|
+
"app/src/back_end/domain/*.rb": {
|
46
|
+
"type": "domain"
|
47
|
+
},
|
48
|
+
"app/src/back_end/jobs/*.rb": {
|
49
|
+
"type": "job"
|
50
|
+
},
|
51
|
+
"app/src/back_end/service_wrappers/*.rb": {
|
52
|
+
"type": "service_wrapper"
|
53
|
+
},
|
54
|
+
"specs/factories/*.factory.rb": {
|
55
|
+
"type": "factory",
|
56
|
+
"alternate": "app/src/back_end/data_models/{}.rb"
|
57
|
+
}
|
58
|
+
|
59
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mkbrut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Copeland
|
@@ -80,6 +80,12 @@ files:
|
|
80
80
|
- lib/mkbrut/version.rb
|
81
81
|
- lib/mkbrut/versions.rb
|
82
82
|
- package.json
|
83
|
+
- templates/Base/.dockerignore
|
84
|
+
- templates/Base/.env.development.erb
|
85
|
+
- templates/Base/.env.development.local
|
86
|
+
- templates/Base/.env.test.erb
|
87
|
+
- templates/Base/.gitignore
|
88
|
+
- templates/Base/.projections.json
|
83
89
|
- templates/Base/Dockerfile.dx
|
84
90
|
- templates/Base/Gemfile.erb
|
85
91
|
- templates/Base/Procfile.development
|
@@ -118,9 +124,7 @@ files:
|
|
118
124
|
- templates/Base/app/src/front_end/svgs/comment-button.svg
|
119
125
|
- templates/Base/bin/README.md.erb
|
120
126
|
- templates/Base/bin/build-assets
|
121
|
-
- templates/Base/bin/ci
|
122
127
|
- templates/Base/bin/console
|
123
|
-
- templates/Base/bin/db
|
124
128
|
- templates/Base/bin/dbconsole
|
125
129
|
- templates/Base/bin/dev
|
126
130
|
- templates/Base/bin/release
|
data/templates/Base/bin/ci
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
set -e
|
4
|
-
|
5
|
-
usage() {
|
6
|
-
echo "Usage: $0"
|
7
|
-
echo
|
8
|
-
echo " Run all tests and quality checks, as if on a CI server"
|
9
|
-
echo
|
10
|
-
}
|
11
|
-
|
12
|
-
for arg in "$@"; do
|
13
|
-
if [ "${arg}" = "-h" ] || [ "${arg}" = "--help" ] || [ "${arg}" = "help" ]; then
|
14
|
-
usage
|
15
|
-
exit 0
|
16
|
-
fi
|
17
|
-
done
|
18
|
-
|
19
|
-
|
20
|
-
echo "[ bin/ci ] Building Assets"
|
21
|
-
bin/build-assets
|
22
|
-
|
23
|
-
echo "[ bin/ci ] Running non E2E tests"
|
24
|
-
bin/test run --rebuild
|
25
|
-
|
26
|
-
echo "[ bin/ci ] Running JS tests"
|
27
|
-
bin/test js
|
28
|
-
|
29
|
-
echo "[ bin/ci ] Running E2E tests"
|
30
|
-
bin/test e2e --rebuild --rebuild-after
|
31
|
-
|
32
|
-
echo "[ bin/ci ] Analyzing Ruby gems for"
|
33
|
-
echo "[ bin/ci ] security vulnerabilities"
|
34
|
-
bundle exec bundle audit check --update
|
35
|
-
|
36
|
-
echo "[ bin/ci ] Checking to see that all classes have tests"
|
37
|
-
bin/test audit --ignore app/src/front_end/components/custom_element_registration.rb
|
38
|
-
|
39
|
-
echo "[ bin/ci ] Done"
|