formation 4 éve
szülő
commit
eb50c3ac90

+ 12 - 0
angular-client/Dockerfile

@@ -0,0 +1,12 @@
+FROM node:10
+RUN mkdir -p /var/www/app
+WORKDIR /var/www/app
+COPY package.json /var/www/app
+RUN npm cache verify
+#RUN npm cache clean
+RUN npm install
+COPY . /var/www/app
+EXPOSE 4200
+CMD ["npm","start"]
+
+

+ 12 - 0
angular-client/browserslist

@@ -0,0 +1,12 @@
+# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
+# For additional information regarding the format and rule options, please see:
+# https://github.com/browserslist/browserslist#queries
+
+# You can see what browsers were selected by your queries by running:
+#   npx browserslist
+
+> 0.5%
+last 2 versions
+Firefox ESR
+not dead
+not IE 9-11 # For IE 9-11 support, remove 'not'.

+ 16 - 0
angular-client/firebase.json

@@ -0,0 +1,16 @@
+{
+  "hosting": {
+    "public": "dist/fatboar",
+    "ignore": [
+      "firebase.json",
+      "**/.*",
+      "**/node_modules/**"
+    ],
+    "rewrites": [
+      {
+        "source": "**",
+        "destination": "/index.html"
+      }
+    ]
+  }
+}

+ 65 - 0
angular-client/karma-ci.conf.js

@@ -0,0 +1,65 @@
+// Karma configuration file, see link for more information
+// https://karma-runner.github.io/1.0/config/configuration-file.html
+
+//process.env.CHROME_BIN = '/usr/bin/google-chrome'
+
+// Karma configuration file, see link for more information
+// https://karma-runner.github.io/1.0/config/configuration-file.html
+
+//process.env.CHROME_BIN = '/usr/bin/google-chrome'
+
+// Karma configuration file, see link for more information
+// https://karma-runner.github.io/1.0/config/configuration-file.html
+
+//process.env.CHROME_BIN = '/usr/bin/google-chrome'
+
+
+module.exports = function (config) {
+  config.set({
+    basePath: '',
+    frameworks: ['jasmine', '@angular-devkit/build-angular'],
+    plugins: [
+      require('karma-jasmine'),
+      require('karma-chrome-launcher'),
+      require('karma-jasmine-html-reporter'),
+      require('karma-coverage-istanbul-reporter'),
+      require('@angular-devkit/build-angular/plugins/karma'),
+      require('karma-junit-reporter'),
+      require('karma-coverage'),
+      require('karma-jenkins-reporter')
+    ],
+    client:{
+      clearContext: false // leave Jasmine Spec Runner output visible in browser
+    },
+    coverageIstanbulReporter: {
+      reports: [ 'html', 'lcovonly'],
+      fixWebpackSourcePaths: true
+    },
+    // changes type to `cobertura`
+    coverageReporter: {
+        type: 'cobertura',
+        dir: 'target/coverage-reports/'
+    },
+    // saves report at `target/surefire-reports/TEST-*.xml` because Jenkins
+    // looks for this location and file prefix by default.
+    junitReporter: {
+        outputDir: 'target/surefire-reports/TESTS-TestSuite.xml'
+    },
+    angularCli: {
+      environment: 'dev'
+    },
+    reporters: ['progress', 'kjhtml', 'junit'],
+    browsers: ['ChromeHeadless'],
+    customLaunchers: {
+      ChromeHeadlessCI: {
+        base: 'ChromeHeadless',
+        flags: ['--no-sandbox']
+     }
+    },
+    logLevel: config.LOG_ERROR,
+    autoWatch: false,
+    singleRun: true,
+    browserNoActivityTimeout: 40000,
+    concurrency: Infinity,
+  });
+};