From b4bb4ee5cd1a81d12c640bf04523086698b3af6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Wed, 27 Jan 2021 13:14:24 +0300 Subject: [PATCH 1/6] Travis credentials issue --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 643debd..0f3512f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,11 @@ language: node_js branches: - only: - - production + only: + - production deploy: provider: heroku app: metis-portal on: - branch: production + branch: production api_key: - secure: qcl0sqtknlTJcqQEu0rRj70h4SaRjbq5jy6j7HOr+iQIt+tSM/S/nE9g3se8AvPuIuLgD4JFVPXvQKLdBSvf3djuA0eja35cO9FWx3YGJ5boYavj1gX00cTNZChrr5HyIKDLJ2eO6MoRiFuOjT5+lLQH0xnRF4fVf1CSC/YXy/yGt8MM7GHOIYIZn/admhvibSNd70F0XtUNTXX5a25TFvyXdUrbaKafsQUNsXVuQnJPbT2VrXK5mTQHj8XQXedQMuTCfplahpHjmBXFxMtbGuXLNNTK2DwSiiSV1N7ozA65v5/B2sYwq8VqSX8za/Wy74p3YZTpueNCdZN4DORxrKUT/JiMZv2l2rqUUQsd0QiEzMoyK5FopiuCiwSeHZe14TEpwKHYMYzjQNytUKYn5aGcBWQSAkT00cyHo3q+u637H1WckFmxUJYL9Gn4unp0RopcpMAPiGgddDdVgW3LMwrMvsbwPmJ5/eIb3arF5X1FievvygkcWDZmMezZix6t4LcxS96OmxbWRAf7BxvThMZmu2KdHT/1E40ekgLtpVKpI/rJnKsvO0jSvaKOmL4UwgPdT2u6PI9bVj7++vPK8ekeIT1tn1AuMzF/C0fwSIlVdX++LSiy9bKmpNrINqjKO5JogxKmiV6zeXTuNS/anRSJyC6ACqqp8yq0SagQ8pE= + secure: SKDXgS2xwEoZQYtLSsRKiIhnZm0blAQA9UIBpRPB/cQVv3Js9bU9kiJFuOZG3KHFkZIb/j/O12ZvELOJBss6VzrkFSrVk7Jx1ClEFOG7fQoWe9uQHS1Q0ZCTXtdhdBzclooVEeWfFaImV6PT+LTzK1tj326u8Ae5mmM9+BKBiCZmq55MJP84npAb/e3fQ5ZyI1iWses73jInw/6g7tdQ97Lo5LiiKInYJGq/cKrfuAYCtULJxBs5UbE3XUadrkQbMQdQMufp3kMAqMOM7E1Yj9pVL/iuzDYGC9zejiZnKGP4ibK4nlcRP247SSlV6hkrPnZTek7RF60eS93pJWcspA0oeCC1YhSMZbErYL68f0cA04AHfFDnV+L6GEmpZCwWWhR4dorXYdJyIBXi8PbDASUBZpNMe6teNae1gSIDbZrLz1DyDzrDumkc2P8vsMPdqFWRp+/01/J5mYvurTR3TsF9XIKtipkDnoeFY3X6RTtuZPk269+g1Qx+jGJqKT7FrPm1DSHt7nkRmOi9DOdDS7ddd+EgSvuoNqavvWOl1r0bI4JvgmrZEMZJyTNrVtGdrf/5mithj9rn7AUaY/vQ194QkVyvQo/MPMsUBktgAJfUcWo5z1oTryswNf4hkAcdjQbDRxylkvDKZFD4ZH6JNav4OjXwGqqQxSmyg4u3T5M= From b3b09db3b4c9029166d5953fbbaf97d98de662f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Wed, 27 Jan 2021 13:19:39 +0300 Subject: [PATCH 2/6] Still working on travis --- .travis.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0f3512f..5648ac2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,35 @@ language: node_js +node_js: + - "8.6.0" + - "node" +env: + - WEBPACK_VERSION= # Current, from package.json + - WEBPACK_VERSION=4 +install: + # Use npm 5.7.x since it has introduced `npm ci` + - if [[ `npm -v` != 5.7* ]]; then npm install -g npm@'>=5.7.1'; fi + - npm ci +before_script: + - if [[ -n "$WEBPACK_VERSION" ]]; then npm install --no-save webpack@$WEBPACK_VERSION; fi +stages: + - lint + - test + - build +jobs: + include: + - stage: lint + script: + # Run linter + - npm run lint + - stage: test + script: + # Run tests + - npm run test + - stage: build + script: + # Build all + - npm run build + branches: only: - production From 4efffe4b486b3956ebddebe053da98bcf15714a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Wed, 27 Jan 2021 13:25:24 +0300 Subject: [PATCH 3/6] removed outpur.js, issues with linting --- output.js | 1186 ----------------------------------------------------- 1 file changed, 1186 deletions(-) delete mode 100644 output.js diff --git a/output.js b/output.js deleted file mode 100644 index 8af2983..0000000 --- a/output.js +++ /dev/null @@ -1,1186 +0,0 @@ -{ - mode: 'development', - context: '/home/yigit/Projects/Metis/portal2', - node: { - setImmediate: false, - process: 'mock', - dgram: 'empty', - fs: 'empty', - net: 'empty', - tls: 'empty', - child_process: 'empty' - }, - output: { - path: '/home/yigit/Projects/Metis/portal2/dist', - filename: 'js/[name].js', - publicPath: '/', - chunkFilename: 'js/[name].js' - }, - resolve: { - alias: { - '@': '/home/yigit/Projects/Metis/portal2/src', - vue$: 'vue/dist/vue.runtime.esm.js' - }, - extensions: [ - '.mjs', - '.js', - '.jsx', - '.vue', - '.json', - '.wasm' - ], - modules: [ - 'node_modules', - '/home/yigit/Projects/Metis/portal2/node_modules', - '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules' - ], - plugins: [ - { - apply: function nothing() { - // ¯\_(ツ)_/¯ - }, - makePlugin: function () { /* omitted long function */ }, - moduleLoader: function () { /* omitted long function */ }, - topLevelLoader: { - apply: function nothing() { - // ¯\_(ツ)_/¯ - } - }, - bind: function () { /* omitted long function */ }, - tsLoaderOptions: function () { /* omitted long function */ }, - forkTsCheckerOptions: function () { /* omitted long function */ } - } - ] - }, - resolveLoader: { - modules: [ - '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-plugin-babel/node_modules', - 'node_modules', - '/home/yigit/Projects/Metis/portal2/node_modules', - '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules' - ], - plugins: [ - { - apply: function nothing() { - // ¯\_(ツ)_/¯ - } - } - ] - }, - module: { - noParse: /^(vue|vue-router|vuex|vuex-router-sync)$/, - rules: [ - /* config.module.rule('vue') */ - { - test: /\.vue$/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/cache-loader/dist/cjs.js', - options: { - cacheDirectory: '/home/yigit/Projects/Metis/portal2/node_modules/.cache/vue-loader', - cacheIdentifier: '390d93db' - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-loader/lib/index.js', - options: { - compilerOptions: { - whitespace: 'condense' - }, - cacheDirectory: '/home/yigit/Projects/Metis/portal2/node_modules/.cache/vue-loader', - cacheIdentifier: '390d93db' - } - } - ] - }, - /* config.module.rule('images') */ - { - test: /\.(png|jpe?g|gif|webp)(\?.*)?$/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/url-loader/dist/cjs.js', - options: { - limit: 4096, - fallback: { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/file-loader/dist/cjs.js', - options: { - name: 'img/[name].[hash:8].[ext]' - } - } - } - } - ] - }, - /* config.module.rule('svg') */ - { - test: /\.(svg)(\?.*)?$/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/file-loader/dist/cjs.js', - options: { - name: 'img/[name].[hash:8].[ext]' - } - } - ] - }, - /* config.module.rule('media') */ - { - test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/url-loader/dist/cjs.js', - options: { - limit: 4096, - fallback: { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/file-loader/dist/cjs.js', - options: { - name: 'media/[name].[hash:8].[ext]' - } - } - } - } - ] - }, - /* config.module.rule('fonts') */ - { - test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/i, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/url-loader/dist/cjs.js', - options: { - limit: 4096, - fallback: { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/file-loader/dist/cjs.js', - options: { - name: 'fonts/[name].[hash:8].[ext]' - } - } - } - } - ] - }, - /* config.module.rule('pug') */ - { - test: /\.pug$/, - oneOf: [ - /* config.module.rule('pug').rule('pug-vue') */ - { - resourceQuery: /vue/, - use: [ - { - loader: 'pug-plain-loader' - } - ] - }, - /* config.module.rule('pug').rule('pug-template') */ - { - use: [ - { - loader: 'raw-loader' - }, - { - loader: 'pug-plain-loader' - } - ] - } - ] - }, - /* config.module.rule('css') */ - { - test: /\.css$/, - oneOf: [ - /* config.module.rule('css').rule('vue-modules') */ - { - resourceQuery: /module/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('css').rule('vue') */ - { - resourceQuery: /\?vue/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('css').rule('normal-modules') */ - { - test: /\.module\.\w+$/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('css').rule('normal') */ - { - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - } - ] - } - ] - }, - /* config.module.rule('postcss') */ - { - test: /\.p(ost)?css$/, - oneOf: [ - /* config.module.rule('postcss').rule('vue-modules') */ - { - resourceQuery: /module/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('postcss').rule('vue') */ - { - resourceQuery: /\?vue/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('postcss').rule('normal-modules') */ - { - test: /\.module\.\w+$/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('postcss').rule('normal') */ - { - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - } - ] - } - ] - }, - /* config.module.rule('scss') */ - { - test: /\.scss$/, - oneOf: [ - /* config.module.rule('scss').rule('vue-modules') */ - { - resourceQuery: /module/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'sass-loader', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('scss').rule('vue') */ - { - resourceQuery: /\?vue/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'sass-loader', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('scss').rule('normal-modules') */ - { - test: /\.module\.\w+$/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'sass-loader', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('scss').rule('normal') */ - { - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'sass-loader', - options: { - sourceMap: false - } - } - ] - } - ] - }, - /* config.module.rule('sass') */ - { - test: /\.sass$/, - oneOf: [ - /* config.module.rule('sass').rule('vue-modules') */ - { - resourceQuery: /module/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'sass-loader', - options: { - sourceMap: false, - sassOptions: { - indentedSyntax: true - } - } - } - ] - }, - /* config.module.rule('sass').rule('vue') */ - { - resourceQuery: /\?vue/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'sass-loader', - options: { - sourceMap: false, - sassOptions: { - indentedSyntax: true - } - } - } - ] - }, - /* config.module.rule('sass').rule('normal-modules') */ - { - test: /\.module\.\w+$/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'sass-loader', - options: { - sourceMap: false, - sassOptions: { - indentedSyntax: true - } - } - } - ] - }, - /* config.module.rule('sass').rule('normal') */ - { - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'sass-loader', - options: { - sourceMap: false, - sassOptions: { - indentedSyntax: true - } - } - } - ] - } - ] - }, - /* config.module.rule('less') */ - { - test: /\.less$/, - oneOf: [ - /* config.module.rule('less').rule('vue-modules') */ - { - resourceQuery: /module/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'less-loader', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('less').rule('vue') */ - { - resourceQuery: /\?vue/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'less-loader', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('less').rule('normal-modules') */ - { - test: /\.module\.\w+$/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'less-loader', - options: { - sourceMap: false - } - } - ] - }, - /* config.module.rule('less').rule('normal') */ - { - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'less-loader', - options: { - sourceMap: false - } - } - ] - } - ] - }, - /* config.module.rule('stylus') */ - { - test: /\.styl(us)?$/, - oneOf: [ - /* config.module.rule('stylus').rule('vue-modules') */ - { - resourceQuery: /module/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'stylus-loader', - options: { - sourceMap: false, - preferPathResolver: 'webpack' - } - } - ] - }, - /* config.module.rule('stylus').rule('vue') */ - { - resourceQuery: /\?vue/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'stylus-loader', - options: { - sourceMap: false, - preferPathResolver: 'webpack' - } - } - ] - }, - /* config.module.rule('stylus').rule('normal-modules') */ - { - test: /\.module\.\w+$/, - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2, - modules: { - localIdentName: '[name]_[local]_[hash:base64:5]' - } - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'stylus-loader', - options: { - sourceMap: false, - preferPathResolver: 'webpack' - } - } - ] - }, - /* config.module.rule('stylus').rule('normal') */ - { - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/vue-style-loader/index.js', - options: { - sourceMap: false, - shadowMode: false - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/css-loader/dist/cjs.js', - options: { - sourceMap: false, - importLoaders: 2 - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js', - options: { - sourceMap: false - } - }, - { - loader: 'stylus-loader', - options: { - sourceMap: false, - preferPathResolver: 'webpack' - } - } - ] - } - ] - }, - /* config.module.rule('js') */ - { - test: /\.m?jsx?$/, - exclude: [ - function () { /* omitted long function */ } - ], - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/cache-loader/dist/cjs.js', - options: { - cacheDirectory: '/home/yigit/Projects/Metis/portal2/node_modules/.cache/babel-loader', - cacheIdentifier: '745bbfb7' - } - }, - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/babel-loader/lib/index.js' - } - ] - }, - /* config.module.rule('eslint') */ - { - enforce: 'pre', - test: /\.(vue|(j|t)sx?)$/, - exclude: [ - /node_modules/, - '/home/yigit/Projects/Metis/portal2/node_modules/@vue/cli-service/lib' - ], - use: [ - { - loader: '/home/yigit/Projects/Metis/portal2/node_modules/eslint-loader/index.js', - options: { - extensions: [ - '.js', - '.jsx', - '.vue' - ], - cache: true, - cacheIdentifier: 'a7308e14', - emitWarning: false, - emitError: false, - eslintPath: '/home/yigit/Projects/Metis/portal2/node_modules/eslint', - formatter: undefined - } - } - ] - } - ] - }, - optimization: { - splitChunks: { - cacheGroups: { - vendors: { - name: 'chunk-vendors', - test: /[\\/]node_modules[\\/]/, - priority: -10, - chunks: 'initial' - }, - common: { - name: 'chunk-common', - minChunks: 2, - priority: -20, - chunks: 'initial', - reuseExistingChunk: true - } - } - }, - minimizer: [ - { - options: { - test: /\.m?js(\?.*)?$/i, - chunkFilter: () => true, - warningsFilter: () => true, - extractComments: false, - sourceMap: true, - cache: true, - cacheKeys: defaultCacheKeys => defaultCacheKeys, - parallel: true, - include: undefined, - exclude: undefined, - minify: undefined, - terserOptions: { - compress: { - arrows: false, - collapse_vars: false, - comparisons: false, - computed_props: false, - hoist_funs: false, - hoist_props: false, - hoist_vars: false, - inline: false, - loops: false, - negate_iife: false, - properties: false, - reduce_funcs: false, - reduce_vars: false, - switches: false, - toplevel: false, - typeofs: false, - booleans: true, - if_return: true, - sequences: true, - unused: true, - conditionals: true, - dead_code: true, - evaluate: true - }, - mangle: { - safari10: true - } - } - } - } - ] - }, - plugins: [ - /* config.plugin('vue-loader') */ - new VueLoaderPlugin(), - /* config.plugin('define') */ - new DefinePlugin( - { - 'process.env': { - NODE_ENV: '"development"', - BASE_URL: '"/"' - } - } - ), - /* config.plugin('case-sensitive-paths') */ - new CaseSensitivePathsPlugin(), - /* config.plugin('friendly-errors') */ - new FriendlyErrorsWebpackPlugin( - { - additionalTransformers: [ - function () { /* omitted long function */ } - ], - additionalFormatters: [ - function () { /* omitted long function */ } - ] - } - ), - /* config.plugin('html') */ - new HtmlWebpackPlugin( - { - title: 'portal', - templateParameters: function () { /* omitted long function */ }, - template: '/home/yigit/Projects/Metis/portal2/public/index.html' - } - ), - /* config.plugin('preload') */ - new PreloadPlugin( - { - rel: 'preload', - include: 'initial', - fileBlacklist: [ - /\.map$/, - /hot-update\.js$/ - ] - } - ), - /* config.plugin('prefetch') */ - new PreloadPlugin( - { - rel: 'prefetch', - include: 'asyncChunks' - } - ), - /* config.plugin('copy') */ - new CopyPlugin( - [ - { - from: '/home/yigit/Projects/Metis/portal2/public', - to: '/home/yigit/Projects/Metis/portal2/dist', - toType: 'dir', - ignore: [ - '.DS_Store', - { - glob: 'index.html', - matchBase: false - } - ] - } - ] - ), - { - host: '127.0.0.1', - port: 9838, - includeAssets: [], - handler: null, - cleanup: function () { [native code] }, - watching: false - } - ], - entry: { - app: [ - './src/main.js' - ] - } -} From 35de5720cc3a9a805c159fabbbaff688b017fa5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Wed, 27 Jan 2021 13:28:24 +0300 Subject: [PATCH 4/6] tt --- .travis.yml | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5648ac2..18f34d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,30 +5,10 @@ node_js: env: - WEBPACK_VERSION= # Current, from package.json - WEBPACK_VERSION=4 -install: - # Use npm 5.7.x since it has introduced `npm ci` - - if [[ `npm -v` != 5.7* ]]; then npm install -g npm@'>=5.7.1'; fi - - npm ci + before_script: - if [[ -n "$WEBPACK_VERSION" ]]; then npm install --no-save webpack@$WEBPACK_VERSION; fi -stages: - - lint - - test - - build -jobs: - include: - - stage: lint - script: - # Run linter - - npm run lint - - stage: test - script: - # Run tests - - npm run test - - stage: build - script: - # Build all - - npm run build + branches: only: From eea3edfac40dc84a90d0d1f42244ab205febb4d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Wed, 27 Jan 2021 13:29:57 +0300 Subject: [PATCH 5/6] Maybe pro api key can fix this? --- .travis.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 18f34d4..917d436 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,13 @@ language: node_js node_js: - - "8.6.0" - - "node" +- 8.6.0 +- node env: - - WEBPACK_VERSION= # Current, from package.json - - WEBPACK_VERSION=4 - +- WEBPACK_VERSION= +- WEBPACK_VERSION=4 before_script: - - if [[ -n "$WEBPACK_VERSION" ]]; then npm install --no-save webpack@$WEBPACK_VERSION; fi - - +- if [[ -n "$WEBPACK_VERSION" ]]; then npm install --no-save webpack@$WEBPACK_VERSION; + fi branches: only: - production @@ -19,4 +17,4 @@ deploy: on: branch: production api_key: - secure: SKDXgS2xwEoZQYtLSsRKiIhnZm0blAQA9UIBpRPB/cQVv3Js9bU9kiJFuOZG3KHFkZIb/j/O12ZvELOJBss6VzrkFSrVk7Jx1ClEFOG7fQoWe9uQHS1Q0ZCTXtdhdBzclooVEeWfFaImV6PT+LTzK1tj326u8Ae5mmM9+BKBiCZmq55MJP84npAb/e3fQ5ZyI1iWses73jInw/6g7tdQ97Lo5LiiKInYJGq/cKrfuAYCtULJxBs5UbE3XUadrkQbMQdQMufp3kMAqMOM7E1Yj9pVL/iuzDYGC9zejiZnKGP4ibK4nlcRP247SSlV6hkrPnZTek7RF60eS93pJWcspA0oeCC1YhSMZbErYL68f0cA04AHfFDnV+L6GEmpZCwWWhR4dorXYdJyIBXi8PbDASUBZpNMe6teNae1gSIDbZrLz1DyDzrDumkc2P8vsMPdqFWRp+/01/J5mYvurTR3TsF9XIKtipkDnoeFY3X6RTtuZPk269+g1Qx+jGJqKT7FrPm1DSHt7nkRmOi9DOdDS7ddd+EgSvuoNqavvWOl1r0bI4JvgmrZEMZJyTNrVtGdrf/5mithj9rn7AUaY/vQ194QkVyvQo/MPMsUBktgAJfUcWo5z1oTryswNf4hkAcdjQbDRxylkvDKZFD4ZH6JNav4OjXwGqqQxSmyg4u3T5M= + secure: wnvOFHWxkJjj6N6vdB2nblijocGd3EOl8MehyQsBfTFtACqRDcsIjrdIcIy1g6uGNoXqC367xIwXJUnaM8n5EuG91DjmEiptbON0R3V6jo1F0kRQInpLBKraRNI7CsvVu6SmPy2jxx9W8+CgSJ1fi2Fih9XTKd5OGr/IR2QD1EpHsMt3jhxSudsdx5WumtgF7UjDXQijWpWfIyMbnjWdinpncg6BrqAI1kkYTOMICekbQKqM6MT9m5FC9owt7padwdppfXJc1KtoIqHXEvfrG4lxC5hOCHawOzx7Xs1L2M7wr8Aw70h+GPjnbFwHEa5RPcrrvqYTIRh5EFIzsd2zz7A3LsUnX2DFl0VQu1NL0JJsenYfVc4Fq5EApuJ8aoGIW2FgYyfSmIpA3hc+F7DlkVy7Rb9LDmY23HsVH0LA4+4GlN0ijhcTzp7GDzhK1AW4ro39qIaVmadeAvsnBk9kr4PYqSNg4M8MaU8cKxTjpTTl47BnAGns7DZ81LTohjdPvdOfPhH9eL6olgh4Ueh63imgI5NK/LE79+YKq7jScqRRny5EYtNCOkzerQV0vmnEd3OwuqufffdGKPhGBjzMRHy2e+rzFav7o7r618qkGl5QN2agMZ78qGeZar1j4+YRjuQZ74pnfdjWRahMorZreYNHJeSEf/FX9JH0C15Syu8= From 122280379edf1faab8c488421e5ed64949e5311c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Wed, 27 Jan 2021 13:31:59 +0300 Subject: [PATCH 6/6] Trying the yml on Vue Docs --- .travis.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 917d436..6f5f261 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,11 @@ language: node_js node_js: -- 8.6.0 -- node -env: -- WEBPACK_VERSION= -- WEBPACK_VERSION=4 -before_script: -- if [[ -n "$WEBPACK_VERSION" ]]; then npm install --no-save webpack@$WEBPACK_VERSION; - fi + - "node" + +cache: npm + +script: npm run build + branches: only: - production