Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for grunt --force flag #210

Open
taylortom opened this issue Aug 23, 2024 · 2 comments
Open

Add support for grunt --force flag #210

taylortom opened this issue Aug 23, 2024 · 2 comments
Assignees

Comments

@taylortom
Copy link
Member

When building in the AAT: currently the build will fail if warnings are encountered. Until we get some more fine-grained errors (possibly not feasible while using grunt), passing --force will allow the task to continue in the event of non-fatal warnings.

@oliverfoster
Copy link
Member

Do you have any examples of said warnings?

@taylortom
Copy link
Member Author

taylortom commented Aug 29, 2024

I don't have the actual warning log at the mo - working on that. For now, see below for the grunt output.

Course builds fine when exported & build standalone/imported into another AAT.

Warning output:

Warning: Task \"javascript:dev\" failed.\u0007 Use --force to continue.

Aborted due to warnings.

Full output:

Failed while executing 'npx grunt server-build:dev --outputdir=temp/framework-builds/1724925878100/build --cachepath=temp/framework-builds/cache/66bea86ca639f54390d98861'

Running \"server-build:dev\" (server-build) task

Running \"_log-vars\" task
>> Using source at 'src/'
>> Building to 'temp/framework-builds/1724925878100/build/'

Running \"build-config\" task

Running \"copy:coreAssets\" (copy) task

Running \"copy:componentAssets\" (copy) task\nCreated 1 directory, copied 15 files

Running \"copy:componentFonts\" (copy) task

Running \"copy:extensionAssets\" (copy) task
Created 1 directory, copied 3 files

Running \"copy:extensionFonts\" (copy) task

Running \"copy:menuAssets\" (copy) task

Running \"copy:coreFonts\" (copy) task
Copied 3 files\n\nRunning \"copy:menuFonts\" (copy) task

Running \"copy:themeAssets\" (copy) task
Created 1 directory, copied 1 file

Running \"copy:themeFonts\" (copy) task
Created 1 directory, copied 1 file

Running \"copy:coreLibraries\" (copy) task
Copied 26 files\n\nRunning \"copy:libraries\" (copy) task\nCopied 11 files

Running \"copy:coreRequired\" (copy) task\nCreated 3 directories, copied 2 files

Running \"copy:required\" (copy) task
Copied 5 files

Running \"scripts:adaptpostcopy\" (scripts) task

Running \"schema-defaults\" task

Running \"language-data-manifests\" task

Running \"less:dev\" (less) task

Running \"handlebars:compile\" (handlebars) task\n>> 1 file created.

Running \"javascript:dev\" (javascript) task
>> Strict mode (config.json:build.strictMode): true
>> Cache disabled (--disable-cache): false
>> Cache path: temp/framework-builds/cache/66bea86ca639f54390d98861
Warning: Task \"javascript:dev\" failed.\u0007 Use --force to continue.

Aborted due to warnings.

Execution Time (2024-08-29 10:04:40 UTC-0)
loading tasks 38ms ▇ 2%
copy:componentAssets 23ms ▇ 1%
copy:libraries 40ms ▇ 2%
copy:required 30ms ▇ 1%
scripts:adaptpostcopy 34ms ▇ 2%
schema-defaults 96ms ▇▇ 5%
less:dev 1.1s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 52%
handlebars:compile 226ms ▇▇▇▇▇ 11%
loading javascript 137ms ▇▇▇ 7%
javascript:dev 249ms ▇▇▇▇▇ 12%
Total 2.1s

@joe-allen-89 joe-allen-89 moved this from New to Assigned in adapt_framework: The TODO Board Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants