Explorar el Código

make into "format"

master
Ludovic 'Archivist' Lagouardette hace 5 años
padre
commit
470c93af7f
Se han modificado 15 ficheros con 13 adiciones y 13 borrados
  1. +2
    -2
      .editorconfig
  2. +2
    -2
      Dockerfile
  3. +3
    -3
      shard.yml
  4. +3
    -3
      src/authenticate.cr
  5. +0
    -0
      src/authenticate/address.cr
  6. +0
    -0
      src/authenticate/category.cr
  7. +0
    -0
      src/authenticate/http/category.cr
  8. +0
    -0
      src/authenticate/http/product.cr
  9. +0
    -0
      src/authenticate/http/user.cr
  10. +0
    -0
      src/authenticate/invoice.cr
  11. +0
    -0
      src/authenticate/invoice_line.cr
  12. +0
    -0
      src/authenticate/product.cr
  13. +0
    -0
      src/authenticate/user.cr
  14. +3
    -0
      src/authenticate/version.cr
  15. +0
    -3
      src/sales_backend/version.cr

+ 2
- 2
.editorconfig Ver fichero

@ -4,6 +4,6 @@ root = true
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
indent_style = tabs
indent_size = 4
trim_trailing_whitespace = true

+ 2
- 2
Dockerfile Ver fichero

@ -10,6 +10,6 @@ RUN cd /opt/app/ && crystal spec
ENV KEMAL_ENV production
RUN cd /opt/app/ && crystal build --mcpu $(gcc -march=native -Q --help=target|grep march|awk '{print $2}'|head -n 1) --release src/sales_backend.cr
RUN cd /opt/app/ && crystal build --mcpu $(gcc -march=native -Q --help=target|grep march|awk '{print $2}'|head -n 1) --release src/authenticate.cr
CMD /opt/app/sales_backend
CMD /opt/app/authenticate

+ 3
- 3
shard.yml Ver fichero

@ -1,12 +1,12 @@
name: sales_backend
name: authenticate
version: 0.1.0
authors:
- Ludovic 'Archivist' Lagouardette <lagouardette.ludovic@gmail.com>
targets:
sales_backend:
main: src/sales_backend.cr
authenticate:
main: src/authenticate.cr
crystal: 0.25.0

src/sales_backend.cr → src/authenticate.cr Ver fichero

@ -1,7 +1,7 @@
require "kemal"
require "./sales_backend/http/user"
require "./sales_backend/http/product"
require "./sales_backend/http/category"
require "./authenticate/http/user"
require "./authenticate/http/product"
require "./authenticate/http/category"
get "/" do |context|
context.response.content_type = "application/json"

src/sales_backend/address.cr → src/authenticate/address.cr Ver fichero


src/sales_backend/category.cr → src/authenticate/category.cr Ver fichero


src/sales_backend/http/category.cr → src/authenticate/http/category.cr Ver fichero


src/sales_backend/http/product.cr → src/authenticate/http/product.cr Ver fichero


src/sales_backend/http/user.cr → src/authenticate/http/user.cr Ver fichero


src/sales_backend/invoice.cr → src/authenticate/invoice.cr Ver fichero


src/sales_backend/invoice_line.cr → src/authenticate/invoice_line.cr Ver fichero


src/sales_backend/product.cr → src/authenticate/product.cr Ver fichero


src/sales_backend/user.cr → src/authenticate/user.cr Ver fichero


+ 3
- 0
src/authenticate/version.cr Ver fichero

@ -0,0 +1,3 @@
module Authenticate
VERSION = "0.1.0"
end

+ 0
- 3
src/sales_backend/version.cr Ver fichero

@ -1,3 +0,0 @@
module SalesBackend
VERSION = "0.1.0"
end

Cargando…
Cancelar
Guardar