Gitlab CI & cambio de dist a public
This commit is contained in:
20
.gitlab-ci.yml
Normal file
20
.gitlab-ci.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
image: node:latest
|
||||||
|
|
||||||
|
pages:
|
||||||
|
before_script:
|
||||||
|
# Install yarn as outlined in (https://yarnpkg.com/lang/en/docs/install/#alternatives-stable)
|
||||||
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||||
|
# Make available in the current terminal
|
||||||
|
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||||
|
script:
|
||||||
|
- yarn install
|
||||||
|
- yarn build
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .yarn
|
||||||
|
- node_modules/
|
||||||
@@ -11,7 +11,7 @@ module.exports = (env, argv) => {
|
|||||||
|
|
||||||
// Your build destination
|
// Your build destination
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'dist'),
|
path: path.resolve(__dirname, 'public'),
|
||||||
filename: 'bundle.js'
|
filename: 'bundle.js'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user