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 ...@@ -17,6 +17,7 @@ Session.vim
tags tags
masonstrap/*.css masonstrap/*.css
masonstrap/*.min.css masonstrap/*.min.css
masonstrap/*.map
.idea .idea
components components
node_modules node_modules
......
image: alpine:latest image: node:latest
pages: build:
stage: deploy stage: build
script: script:
- echo 'Nothing to do...' - yarn
- npm run build-masonstrap
artifacts: artifacts:
paths: paths:
- public - masonstrap/masonstrap.min.css
only:
- master
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
"stylelint-config-standard": "^17.0.0" "stylelint-config-standard": "^17.0.0"
}, },
"scripts": { "scripts": {
"sass-lint": "stylelint masonstrap/*.scss --syntax scss", "sass-lint": "stylelint ./masonstrap/*.scss --syntax scss",
"sass-compile": "sass masonstrap/masonstrap.scss build/masonstrap.css", "sass-compile": "sass ./masonstrap/masonstrap.scss ./masonstrap/masonstrap.css",
"sass-prefix": "npx postcss build/masonstrap.css --use autoprefixer -d build/", "sass-prefix": "npx postcss masonstrap/masonstrap.css --use autoprefixer -d ./masonstrap/",
"sass-minify": "cleancss --source-map --source-map-inline-sources -o build/masonstrap.min.css build/masonstrap.css", "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" "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