# How have you integrated compilers and transpilers into Kirby Site?

**URL:** <https://forum.getkirby.com/t/how-have-you-integrated-compilers-and-transpilers-into-kirby-site/19830>\
**Category:** Questions\
**Tags:** v3\
**Created:** [October 23, 2020, 12:04am UTC](https://forum.getkirby.com/t/how-have-you-integrated-compilers-and-transpilers-into-kirby-site/19830 "2020-10-23T00:04:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brighurst](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/brighurst/32/9714_2.png) [@Brighurst](https://forum.getkirby.com/u/Brighurst)\
**Post date:** [October 23, 2020, 12:04am UTC](https://forum.getkirby.com/t/how-have-you-integrated-compilers-and-transpilers-into-kirby-site/19830/1 "2020-10-23T00:04:56Z")

</div>

I’ve never used compilers like `gulp` or transpilers like `babble.js` for my previous sites since they’ve generally been smaller scale. However, I’m starting a new web development project this coming week which is probably going to be the largest website I’ve worked on to date.

My collaborator was trying to set up `gulp` and `babel.js` through `npm` integrated with Kirby in a previous project of theirs but kept receiving errors until they ended up finding a really haphazard way to make it work.

A solution to their specific issue isn’t what we’re looking for but we do want to know how other Kirby users here have integrated compilers and transpilers into their workflow.

Any advice, tips, or personal workflow layout appreciated 🙂

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [October 23, 2020, 7:02am UTC](https://forum.getkirby.com/t/how-have-you-integrated-compilers-and-transpilers-into-kirby-site/19830/2 "2020-10-23T07:02:05Z")

</div>

I previously used Gulp, but currently use Laraval Mix. The trick is to use 2 subfolders inside your project. A `src` folder and a `public` folder (this is where Kirby goes). I put all the raw SCSS files and javascript in the src folder and set the destination as `public/assets`.

You can see a working example here - [https://github.com/HashandSalt/ForgeLiteKirby](https://github.com/HashandSalt/ForgeLiteKirby)

You can use the same principle with Gulp or Grunt.

---

<div class="post-metadata">

**Author:** ![bvdputte](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bvdputte/32/8179_2.png) [@bvdputte](https://forum.getkirby.com/u/bvdputte)\
**Post date:** [October 23, 2020, 8:10am UTC](https://forum.getkirby.com/t/how-have-you-integrated-compilers-and-transpilers-into-kirby-site/19830/3 "2020-10-23T08:10:01Z")

</div>

I used gulp in the past and decided I wanted to be “closer” to the helpers (sass, postcss, …) and not rely on gulp-plugins (that exist or not, or are no longer maintained, …) for that.

I switched over to creating my own npm scripts managed via [nps](https://www.npmjs.com/package/nps) and have much less problems with dependencies, node updates etc ever since.

---

<div class="post-metadata">

**Author:** ![Brighurst](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/brighurst/32/9714_2.png) [@Brighurst](https://forum.getkirby.com/u/Brighurst)\
**Post date:** [October 26, 2020, 8:13pm UTC](https://forum.getkirby.com/t/how-have-you-integrated-compilers-and-transpilers-into-kirby-site/19830/4 "2020-10-26T20:13:09Z")

</div>

Thanks y’all! Will check these out  
If other people want to continue posting how they do it. Please do 🙂
