Multiple source directories from a reseller

I have several projects with shared files, so I created a directory for them source/shared. The file structure looks like this:

.
β”œβ”€β”€ config.rb
β”œβ”€β”€ build
β”œβ”€β”€ source
β”‚   β”œβ”€β”€ project-1
β”‚   β”‚   β”œβ”€β”€ index.html.slim
β”‚   β”‚   β”œβ”€β”€ js
β”‚   β”‚   β”‚   β”œβ”€β”€ _templates.js.coffee
β”‚   β”‚   β”‚   └── main.js.coffee
β”‚   β”‚   β”œβ”€β”€ layouts
β”‚   β”‚   β”‚   └── layout.slim
β”‚   β”œβ”€β”€ project-2
β”‚   β”‚   β”œβ”€β”€ index.html.slim
β”‚   β”‚   β”œβ”€β”€ js
β”‚   β”‚   β”‚   β”œβ”€β”€ _templates.js.coffee
β”‚   β”‚   β”‚   └── main.js.coffee
β”‚   β”‚   β”œβ”€β”€ layouts
β”‚   β”‚   β”‚   └── layout.slim
β”‚   └── shared
β”‚       └── js
β”‚           β”œβ”€β”€ vendor
β”‚           β”‚   β”œβ”€β”€ _json2.js
β”‚           β”‚   β”œβ”€β”€ html5shiv.js

Here I want to source/shared/js/vendor/html5shiv.jsbe in the assembly directory, for example main.js script.

When I create project-1, the build directory looks like this:

build
β”œβ”€β”€ index.html
β”œβ”€β”€ js
β”‚   β”œβ”€β”€ main-088a2c74.js

And with all this, can I somehow include common files in the assembly?

+4
source share

All Articles