Skip to content

Commit

Permalink
Replace grunt-contrib-compass with grunt-contrib-sass
Browse files Browse the repository at this point in the history
Compass is not installable on newer node images, and older node images
uses Debian versions whose package repositories has gone. So upgrade
to a libsass using plugin.
  • Loading branch information
xendk committed Sep 27, 2024
1 parent 2ebec0c commit 4c9d2c7
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 1,037 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "2"
services:

harvester:
Expand Down Expand Up @@ -26,5 +25,7 @@ services:
build:
context: .
dockerfile: ./docker/node/Dockerfile
init: true
command: sh -c "npm install && grunt watch"
volumes:
- '.:/var/www/html'
8 changes: 0 additions & 8 deletions docker/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
# to build
FROM library/node

# Install image libs
RUN apt-get update && apt-get install -y ruby ruby-compass && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install Bower & Grunt
RUN npm install -g bower grunt-cli && \
echo '{ "allow_root": true }' > /root/.bowerrc
Expand All @@ -15,6 +10,3 @@ RUN npm install -g bower grunt-cli && \
WORKDIR /var/www/html

COPY . /var/www/html

# Install everything
RUN npm install && bower install
4 changes: 2 additions & 2 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = function (grunt) {
}
},
// Compass and SCSS
compass: {
sass: {
options: {
httpPath: '/profiles/scribo/themes/scribe',
imagesDir: 'img',
Expand All @@ -116,7 +116,7 @@ module.exports = function (grunt) {
}
});

grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
Expand Down
Loading

0 comments on commit 4c9d2c7

Please sign in to comment.