What would be a good way of using SASS in an Atlassian plugin?

martin December 17, 2014

I am trying to get SASS working with an Atlassian plugin for Confluence. I have tried a number of ways to do it, including compiling the .css on the side and then importing it via the atlassian-plugin.xml. This works fine, but it would be really nice to include it in some kind of package building step. 

Does anybody have any experience of working with SASS (or any other CSS preprocessor) and Atlassian development?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
martin January 14, 2015

I found a solution that partially works. Basically I ended up using a Maven plugin from Jasig to compile the css when packaging the code and the standard sass watcher for daily development.

The Jasig SASS Maven Plugin can be found here, https://github.com/Jasig/sass-maven-plugin, and I used this guide to set i up in the POM file of my project: http://maciejwalkowiak.pl/blog/2013/06/03/using-sass-in-java-web-applications/.

I haven't worked a great deal with Maven before so I found the guide to be quite helpful.

It works fine when running atlas-mvn package but I would also like have it working with the atlas-cli pi command. However it seems like atlas-cli does not run the phases in the same way maven would, https://ecosystem.atlassian.net/browse/AMPS-381

It would be very interesting to be able to run the maven recipe or at least parts of it from atlas-cli, since we rely quite heavily on it in our development cycle. 

0 votes
martin December 18, 2014

Found the Jasig SASS Maven plugin. It looks really interesting, just trying to get it to run when packaging the jar file. I'll keep you updated of my progress.

TAGS
AUG Leaders

Atlassian Community Events