Skip to content

Commit a1b9c3e

Browse files
committed
Ajustando para utilizar projeto base angular-seed
1 parent d756b1e commit a1b9c3e

File tree

2,401 files changed

+26004
-20996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,401 files changed

+26004
-20996
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM node:6.6
2+
3+
# prepare a user which runs everything locally! - required in child images!
4+
RUN useradd --user-group --create-home --shell /bin/false app
5+
6+
ENV HOME=/home/app
7+
WORKDIR $HOME
8+
9+
ENV APP_NAME=angular-seed
10+
11+
# before switching to user we need to set permission properly
12+
# copy all files, except the ignored files from .dockerignore
13+
COPY . $HOME/$APP_NAME/
14+
RUN chown -R app:app $HOME/*
15+
16+
USER app
17+
WORKDIR $HOME/$APP_NAME
18+
19+
RUN npm install
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM node:6.6
2+
3+
# prepare a user which runs everything locally! - required in child images!
4+
RUN useradd --user-group --create-home --shell /bin/false app
5+
6+
ENV HOME=/home/app
7+
WORKDIR $HOME
8+
9+
ENV APP_NAME=angular-seed
10+
11+
# before switching to user we need to set permission properly
12+
# copy all files, except the ignored files from .dockerignore
13+
COPY . $HOME/$APP_NAME/
14+
RUN chown -R app:app $HOME/*
15+
16+
USER app
17+
WORKDIR $HOME/$APP_NAME
18+
19+
RUN npm install

.docker/nginx.conf

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
map $http_upgrade $connection_upgrade {
2+
default upgrade;
3+
'' close;
4+
}
5+
6+
server {
7+
8+
listen ${NGINX_PORT};
9+
10+
server_name ${NGINX_HOST};
11+
# ssl on;
12+
# ssl_certificate angular-seed_server.crt;
13+
# ssl_certificate_key angular-seed_server.pem;
14+
#
15+
# ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
16+
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
17+
# ssl_prefer_server_ciphers on;
18+
# ssl_session_cache shared:SSL:10m;
19+
# ssl_session_tickets off; # Requires nginx >= 1.5.9
20+
# add_header Strict-Transport-Security "max-age=63072000; preload";
21+
# add_header X-Frame-Options DENY;
22+
#
23+
# location /api/microservice1 {
24+
# rewrite ^/api/microservice1/(.*)$ /$1 break;
25+
# proxy_pass https://microservice1/;
26+
# proxy_http_version 1.1;
27+
# proxy_set_header X-Forwarded-For $remote_addr;
28+
# }
29+
30+
location / {
31+
root /var/www/dist/prod;
32+
try_files $uri /index.html;
33+
index index.html;
34+
gzip on;
35+
gzip_types text/css text/javascript application/x-javascript application/json;
36+
}
37+
38+
}

.dockerignore

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# compiled output
2+
dist
3+
tmp
4+
sme
5+
6+
# dependencies
7+
node_modules
8+
bower_components
9+
10+
# IDEs and editors
11+
.idea
12+
.vscode
13+
.project
14+
.classpath
15+
*.launch
16+
.settings/
17+
18+
# misc
19+
.sass-cache
20+
connect.lock
21+
coverage/*
22+
libpeerconnection.log
23+
npm-debug.log
24+
testem.log
25+
typings
26+
27+
# e2e
28+
e2e/*.js
29+
e2e/*.map
30+
31+
#System Files
32+
.DS_Store
33+
Thumbs.db

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
insert_final_newline = false
15+
trim_trailing_whitespace = false

.gitignore

+57-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,59 @@
1-
.idea
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
coverage_js
16+
17+
# Directory for source-map-explorer reports
18+
sme
19+
20+
# ignore documentation
21+
documentation
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Compiled binary addons (http://nodejs.org/api/addons.html)
27+
build/Release
28+
29+
# Dependency directory
30+
# Commenting this out is preferred by some people, see
31+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
232
node_modules
3-
jspm_packages
4-
npm-debug.log
5-
debug.log
6-
src/**/*.js
7-
!src/systemjs.config.extras.js
8-
!src/systemjs.config.js
9-
!src/systemjs-angular-loader.js
10-
*.js.map
11-
e2e/**/*.js
12-
e2e/**/*.js.map
13-
_test-output
14-
_temp
33+
typings
34+
ts-node
35+
36+
# Users Environment Variables
37+
.lock-wscript
38+
.tsdrc
39+
.typingsrc
40+
41+
#IDE configuration files
42+
.idea
43+
*.iml
44+
45+
/tools/**/*.js
1546
dist
47+
dev
48+
docs
49+
lib
50+
test
51+
tmp
52+
53+
gulpfile.js
54+
gulpfile.js.map
55+
56+
# OS X trash files
57+
.DS_Store
58+
src/client/app/shared/config/env.config.js
59+
src/client/app/shared/config/env.config.js.map

.travis.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
language: node_js
2+
node_js: stable
3+
4+
sudo: false
5+
6+
install: true # yarn bug
7+
8+
addons:
9+
firefox: "45.0"
10+
11+
os:
12+
- linux
13+
# - osx
14+
15+
before_install:
16+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
17+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated xctool || brew upgrade xctool; fi
18+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CHROME_BIN=chromium-browser; fi # Karma CI
19+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install google-chrome; fi # Karma CI
20+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
21+
22+
before_script:
23+
- npm i -g npm@^5.3.0 && npm --version
24+
- npm install
25+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
26+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then nohup bash -c "webdriver-manager start 2>&1 &"; fi # Protractor CI
27+
28+
after_failure:
29+
- cat /home/travis/build/mgechev/angular-seed/npm-debug.log
30+
31+
branches:
32+
only: master
33+
34+
notifications:
35+
email: true
36+
webhooks:
37+
urls: https://webhooks.gitter.im/e/565e4b2fed3b96c1b964
38+
on_success: change # options: [always|never|change] default: always
39+
on_failure: always # options: [always|never|change] default: always
40+
on_start: never # options: [always|never|change] default: always
41+
42+
cache:
43+
directories: node_modules
44+
45+
script:
46+
- npm run tests.all
47+

0 commit comments

Comments
 (0)