Directory structure…
Specific RequireJS settings within my Gruntfile…
requirejs: {
compile: {
options: {
baseUrl: './app',
mainConfigFile: './app/main.js',
dir: './app/release/',
fileExclusionRegExp: /^\.|node_modules|Gruntfile|\.md|package.json/,
modules: [
{
name: 'main'
}
]
}
}
}
Executing grunt release
feeds back the following information…
$ grunt release
Running "requirejs:compile" (requirejs) task
>> Optimizing (standard.keepLines) CSS file:
>> /Library/WebServer/Documents/GruntTest/2/app/release/styles/main.css
>> Tracing dependencies for: main
>> Uglifying file: /Library/WebServer/Documents/GruntTest/2/app/release/a.js
>> Uglifying file: /Library/WebServer/Documents/GruntTest/2/app/release/b.js
>> Uglifying file: /Library/WebServer/Documents/GruntTest/2/app/release/c.js
>> Uglifying file:
>> /Library/WebServer/Documents/GruntTest/2/app/release/jquery.js
>> Uglifying file: /Library/WebServer/Documents/GruntTest/2/app/release/main.js
>> styles/main.css
>> ----------------
>> styles/main.css
>>
>> main.js
>> ----------------
>> a.js
>> b.js
>> c.js
>> jquery.js
>> main.js
Running "sass:dist" (sass) task
Done, without errors.
…after the above command is run my directory structure looks like this…
…but really I want to end up with the following directory structure instead…