Loading .gitlab-ci.yml +8 −8 Original line number Diff line number Diff line image: "node:lts-alpine" stages: - build - lint - deploy # global cache settings for all jobs Loading @@ -18,27 +18,27 @@ cache: policy: pull # prevent subsequent jobs from modifying cache before_script: # https://stackoverflow.com/a/75624610 - cp ${PRODUCTION_ENV_FILE} .env.production # define cache dir & use it npm! - npm ci --cache node_modules/ --prefer-offline # # monorepo users: run secondary install actions # - npx lerna bootstrap -- --cache .npm/ --prefer-offline - npm run build build: stage: build lint: stage: lint # global cache settings are inherited to grab `node_modules` script: - node --version - npm run lint artifacts: paths: - dist/ # where ever your build results are stored pages: stage: deploy when: on_success # only if previous stages' jobs all succeeded # override inherited cache settings since node_modules is not needed script: - mv dist public - npm run build artifacts: paths: - public Loading README.md +4 −4 Original line number Diff line number Diff line Loading @@ -2,22 +2,22 @@ ## Project setup ``` yarn install npm install ``` ### Compiles and hot-reloads for development ``` yarn serve npm run serve ``` ### Compiles and minifies for production ``` yarn build npm run build ``` ### Lints and fixes files ``` yarn lint npm run lint ``` ### Customize configuration Loading public/favicon.icodeleted 100644 → 0 −4.19 KiB Loading image diff... public/index.htmldeleted 100644 → 0 +0 −17 Original line number Diff line number Diff line <!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <link rel="icon" href="<%= BASE_URL %>favicon.ico"> <title><%= htmlWebpackPlugin.options.title %></title> </head> <body> <noscript> <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> </noscript> <div id="app"></div> <!-- built files will be auto injected --> </body> </html> vue.config.js +5 −1 Original line number Diff line number Diff line const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true transpileDependencies: true, outputDir: 'public', publicPath: process.env.NODE_ENV === 'production' ? process.env.VUE_APP_BASE_URL : '/' }) Loading
.gitlab-ci.yml +8 −8 Original line number Diff line number Diff line image: "node:lts-alpine" stages: - build - lint - deploy # global cache settings for all jobs Loading @@ -18,27 +18,27 @@ cache: policy: pull # prevent subsequent jobs from modifying cache before_script: # https://stackoverflow.com/a/75624610 - cp ${PRODUCTION_ENV_FILE} .env.production # define cache dir & use it npm! - npm ci --cache node_modules/ --prefer-offline # # monorepo users: run secondary install actions # - npx lerna bootstrap -- --cache .npm/ --prefer-offline - npm run build build: stage: build lint: stage: lint # global cache settings are inherited to grab `node_modules` script: - node --version - npm run lint artifacts: paths: - dist/ # where ever your build results are stored pages: stage: deploy when: on_success # only if previous stages' jobs all succeeded # override inherited cache settings since node_modules is not needed script: - mv dist public - npm run build artifacts: paths: - public Loading
README.md +4 −4 Original line number Diff line number Diff line Loading @@ -2,22 +2,22 @@ ## Project setup ``` yarn install npm install ``` ### Compiles and hot-reloads for development ``` yarn serve npm run serve ``` ### Compiles and minifies for production ``` yarn build npm run build ``` ### Lints and fixes files ``` yarn lint npm run lint ``` ### Customize configuration Loading
public/index.htmldeleted 100644 → 0 +0 −17 Original line number Diff line number Diff line <!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <link rel="icon" href="<%= BASE_URL %>favicon.ico"> <title><%= htmlWebpackPlugin.options.title %></title> </head> <body> <noscript> <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> </noscript> <div id="app"></div> <!-- built files will be auto injected --> </body> </html>
vue.config.js +5 −1 Original line number Diff line number Diff line const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true transpileDependencies: true, outputDir: 'public', publicPath: process.env.NODE_ENV === 'production' ? process.env.VUE_APP_BASE_URL : '/' })