Gruntfile.js revision 825396f66be8e99fa60124ac9497cf1b454c43b7
325N/A * Distribution License (the License). You may not use this file except in compliance with the
325N/A * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
325N/A * When distributing Covered Software, include this CDDL Header Notice in each file and include
325N/A * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
nonCompiledFiles = [
transpiledFiles = [
babel: {
transpile: {
files: [{
expand: true,
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,
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: [{
test: {
verbose: true,
server: {
files: [{
verbose: true,
watch: {
source: {