Gruntfile.js revision b6326f13fb241b995957bcf7d2fcd6617b4f03dc
0N/A * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
0N/A * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
nonCompiledFiles = [
babel: {
options: {
env: {
development: {
sourceMaps: true
plugins: [
transpileJS: {
files: [{
expand: true,
transpileJSM: {
files: [{
expand: true,
options: {
copy: {
* Copy all the sources and resources from this project and all dependencies into the composition directory.
* TODO: This copying shouldn't really be necessary, but is required because the dependencies are all over
compose: {
expand: true,
compiled: {
files: [{
expand: true,
transpiled: {
files: [{
expand: true,
src: [
eslint: {
lint: {
src: [
options: {
karma: {
options: {
build: {
singleRun: true,
dev: {
less: {
compile: {
files: [{
options: {
compress: true,
plugins: [
relativeUrls: true
replace: {
* This is needed to force the browser to refetch JavaScript files when a new version of AM is deployed.
buildNumber: {
replacements: [{
requirejs: {
compile: {
options: {
preserveLicenseComments: false,
generateSourceMaps: true,
sync: {
* Copy all the sources and resources from this project and all dependencies into the composition directory.
compose: {
* Note that this also copies main.js because the requirejs step is not being performed when watching (it
compiled: {
files: [{
transpiled: {
files: [{
src: [
test: {
verbose: true,
server: {
files: [{
verbose: true,
watch: {
source: {