Skip to content

Commit

Permalink
split gui environement
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas COUET committed Oct 25, 2017
1 parent 23fa57b commit f0c0653
Show file tree
Hide file tree
Showing 35 changed files with 8,332 additions and 4,994 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.idea
/app/mocks/*
/app/node_modules/*
/app/frontend/app.css
/app/dist
!/app/mocks/.keep
!/app/mocks/vidlis.json
/app/node_modules
/app/dist
/docker-compose.override.yml
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ FROM node:8
COPY ./app /usr/src/app

RUN cd /usr/src/app && \
npm install

RUN cd /usr/src/app/gui && \
npm install && \
npm run sass-build && \
npm run webpack-build
npm run build-app

EXPOSE 80
EXPOSE 4580

WORKDIR /usr/src/app

CMD ["node", "server.js"]
CMD ["node", "app.js"]
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
DOCKER_DEPENDENCY_CONTAINER_COMMAND=docker run --rm -v $$SSH_AUTH_SOCK:/ssh-agent -v $$(pwd)/ssh_config:/etc/ssh/ssh_config --env SSH_AUTH_SOCK=/ssh-agent

npm_install:
npm_install_app:
$(DOCKER_DEPENDENCY_CONTAINER_COMMAND) -v $$(pwd)/app:/usr/src/app -w /usr/src/app node:8 npm install || if [ $(STOP_ON_FAILURE) = true ]; then exit 1 ; fi

npm_install_gui:
$(DOCKER_DEPENDENCY_CONTAINER_COMMAND) -v $$(pwd)/app/gui:/usr/src/app -w /usr/src/app node:8 npm install || if [ $(STOP_ON_FAILURE) = true ]; then exit 1 ; fi

npm_install: npm_install_app npm_install_gui

npm_bash:
$(DOCKER_DEPENDENCY_CONTAINER_COMMAND) -it -v $$(pwd)/app:/usr/src/app -w /usr/src/app node:8 bash || if [ $(STOP_ON_FAILURE) = true ]; then exit 1 ; fi

npm_clear:
npm_clear_app:
$(DOCKER_DEPENDENCY_CONTAINER_COMMAND) -it -v $$(pwd)/app:/usr/src/app -w /usr/src/app node:8 rm -rf node_modules || if [ $(STOP_ON_FAILURE) = true ]; then exit 1 ; fi

npm_clear_gui:
$(DOCKER_DEPENDENCY_CONTAINER_COMMAND) -it -v $$(pwd)/app/gui:/usr/src/app -w /usr/src/app node:8 rm -rf node_modules || if [ $(STOP_ON_FAILURE) = true ]; then exit 1 ; fi

npm_clear: npm_clear_gui npm_clear_app

dev: npm_install
docker-compose up

Expand Down
File renamed without changes.
24 changes: 0 additions & 24 deletions app/frontend/app.js

This file was deleted.

29 changes: 0 additions & 29 deletions app/frontend/components/VLink.vue

This file was deleted.

22 changes: 0 additions & 22 deletions app/frontend/layouts/Main.vue

This file was deleted.

14 changes: 0 additions & 14 deletions app/frontend/pages/404.vue

This file was deleted.

14 changes: 0 additions & 14 deletions app/frontend/pages/About.vue

This file was deleted.

14 changes: 0 additions & 14 deletions app/frontend/pages/Home.vue

This file was deleted.

4 changes: 0 additions & 4 deletions app/frontend/routes.js

This file was deleted.

9 changes: 0 additions & 9 deletions app/frontend/sass/component/body.scss

This file was deleted.

5 changes: 0 additions & 5 deletions app/frontend/sass/component/footer.scss

This file was deleted.

12 changes: 0 additions & 12 deletions app/frontend/sass/component/header.scss

This file was deleted.

1 change: 0 additions & 1 deletion app/frontend/sass/component/nav.scss

This file was deleted.

31 changes: 0 additions & 31 deletions app/frontend/sass/generic/variables.scss

This file was deleted.

27 changes: 0 additions & 27 deletions app/frontend/sass/global.scss

This file was deleted.

5 changes: 5 additions & 0 deletions app/gui/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
["env", { "modules": false }]
]
}
2 changes: 2 additions & 0 deletions app/gui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
npm-debug.log*
Loading

0 comments on commit f0c0653

Please sign in to comment.