Code Monkey home page Code Monkey logo

aem-gulp-sass-workflow's Introduction

AEM-gulp-sass-workflow

A workflow for front end development for users of Adobe Experience Manager aka Adobe CQ using gulpjs. Warning: this requires a decent amount of gulp knowledge. But its worth it.

Use this to do tools for working with AEM's front end tasks. This app does the following tasks:

  • SASS watch for changes to files, and then compile, create sourcemap, compress, "vault" to JCR using cURL, toast notify and livereload the browser (Chrome only).
  • Javascript watch for changes to files, and then concat, minify, uglify, create inline sourcemap, vault, livereload.
  • Manually build local AEM instances via special commands, see below.

The heart of this app is using cURL -T (send a file via HTTP POST) to send up compiled CSS and JS to the JCR without having to bother with vlt or (ugh) vaultclipse. It is VERY fast and way better than any of the alternatives. This allows you to decouple your front end assets from AEM and avoid clientlibraries which as of at least 5.6 have caused constant headaches, to me at least. Also of course allows you to use SASS at all. Be careful with the order (alphabetical) of your pre-concatted javascript files! I haven't had a lot of luck with gulp-order and that is excluded from this app for now.

This app will need heavy modification inside of the gulpfile to work at all! See comments.

Installation instructions:

Install node.js http://nodejs.org/download/. Install ruby http://rubyinstaller.org/. Install chrome livereload extension https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei and click the extension button on your localhost page instance. Install and run growl (windows users) http://www.growlforwindows.com/gfw/. Install sass:

gem install sass

Git clone this repo next to your main AEM repo - it must be a sibling (or you'll have to change paths manually of course). Then:

cd AEM-gulp-sass-workflow

npm install -g gulp

npm install

Edit the gulpfile in a way that makes sense relative to your AEM codebase repo, not your AEM installation.

To start watching for changes:

gulp

In addition, this app can build AEM local instances without needing to go through eclipse. This is hard coded in and will depend on the innards of your .BUILD files and almost certainly need to be manually tweaked. The 4 commands are:

gulp build-publish

gulp build-publish-3rdpartyjars

gulp build-author

gulp build-author-3rdpartyjars

aem-gulp-sass-workflow's People

Contributors

cozuya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.