Compare commits
2 Commits
spike/prob
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a7b5ea4d6d | |||
| ce48e0c94b |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
|||||||
.cache
|
.cache
|
||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
|
public
|
||||||
|
|||||||
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:
|
||||||
|
- main
|
||||||
|
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