Commit 599d0ea6 authored by David Haynes's avatar David Haynes 🙆

Using gitlab-ci to build masonstrap on commit

parent c756ec48
Pipeline #1484 failed with stage
in 22 seconds
......@@ -17,6 +17,7 @@ Session.vim
tags
masonstrap/*.css
masonstrap/*.min.css
masonstrap/*.map
.idea
components
node_modules
......
image: alpine:latest
image: node:latest
pages:
stage: deploy
build:
stage: build
script:
- echo 'Nothing to do...'
- yarn
- npm run build-masonstrap
artifacts:
paths:
- public
only:
- master
- masonstrap/masonstrap.min.css
......@@ -17,10 +17,10 @@
"stylelint-config-standard": "^17.0.0"
},
"scripts": {
"sass-lint": "stylelint masonstrap/*.scss --syntax scss",
"sass-compile": "sass masonstrap/masonstrap.scss build/masonstrap.css",
"sass-prefix": "npx postcss build/masonstrap.css --use autoprefixer -d build/",
"sass-minify": "cleancss --source-map --source-map-inline-sources -o build/masonstrap.min.css build/masonstrap.css",
"sass-lint": "stylelint ./masonstrap/*.scss --syntax scss",
"sass-compile": "sass ./masonstrap/masonstrap.scss ./masonstrap/masonstrap.css",
"sass-prefix": "npx postcss masonstrap/masonstrap.css --use autoprefixer -d ./masonstrap/",
"sass-minify": "cleancss --source-map --source-map-inline-sources -o masonstrap/masonstrap.min.css masonstrap/masonstrap.css",
"build-masonstrap": "npm-run-all sass-lint sass-compile sass-prefix sass-minify"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment