Merge branch 'master' of git.femtostar.com:infrastructure/new-www
Merging with offline header removal
This commit is contained in:
commit
4362aa4f45
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
image: "node:lts-alpine"
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- npm install --also=dev
|
||||||
|
|
||||||
|
# These folders are cached between builds
|
||||||
|
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
|
||||||
|
cache:
|
||||||
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
# Enables git-lab CI caching. Both .cache and public must be cached, otherwise builds will fail.
|
||||||
|
- .cache/
|
||||||
|
- public/
|
||||||
|
|
||||||
|
pages:
|
||||||
|
script:
|
||||||
|
- mkdir public/ || true
|
||||||
|
- npm run export
|
||||||
|
- cp -a __sapper__/export/* public/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
@ -3,9 +3,9 @@
|
||||||
"description": "TODO",
|
"description": "TODO",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "sapper dev",
|
"dev": "sapper dev --hot=false",
|
||||||
"build": "sapper build --legacy",
|
"build": "sapper build",
|
||||||
"export": "sapper export --legacy",
|
"export": "sapper export",
|
||||||
"start": "node __sapper__/build"
|
"start": "node __sapper__/build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in a new issue