René's URL Explorer Experiment


Title: Angular 6 CLI does not copy library's assets folder into dist folder. · Issue #11071 · angular/angular-cli · GitHub

Open Graph Title: Angular 6 CLI does not copy library's assets folder into dist folder. · Issue #11071 · angular/angular-cli

X Title: Angular 6 CLI does not copy library's assets folder into dist folder. · Issue #11071 · angular/angular-cli

Description: Versions Angular CLI: 6.0.7 Node: 9.3.0 OS: darwin x64 Angular: 6.0.3 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router Package Version ---------...

Open Graph Description: Versions Angular CLI: 6.0.7 Node: 9.3.0 OS: darwin x64 Angular: 6.0.3 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-d...

X Description: Versions Angular CLI: 6.0.7 Node: 9.3.0 OS: darwin x64 Angular: 6.0.3 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-d...

Opengraph URL: https://github.com/angular/angular-cli/issues/11071

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular 6 CLI does not copy library's assets folder into dist folder.","articleBody":"### Versions\r\n```\r\nAngular CLI: 6.0.7\r\nNode: 9.3.0\r\nOS: darwin x64\r\nAngular: 6.0.3\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\nPackage                            Version\r\n------------------------------------------------------------\r\n@angular-devkit/architect          0.6.7\r\n@angular-devkit/build-angular      0.6.7\r\n@angular-devkit/build-ng-packagr   0.6.7\r\n@angular-devkit/build-optimizer    0.6.7\r\n@angular-devkit/core               0.6.7\r\n@angular-devkit/schematics         0.6.7\r\n@angular/cdk                       6.2.0\r\n@angular/cli                       6.0.7\r\n@angular/material                  6.2.0\r\n@ngtools/json-schema               1.1.0\r\n@ngtools/webpack                   6.0.7\r\n@schematics/angular                0.6.7\r\n@schematics/update                 0.6.7\r\nng-packagr                         3.0.0\r\nrxjs                               6.2.0\r\ntypescript                         2.7.2\r\nwebpack                            4.8.3\r\n```\r\n\r\n### Repro steps\r\n* Create a library `@acme/lib1` using `ng generate library @acme/lib1`\r\n* Create assets folder under `projects/acme/lib1/assets` and add images\r\n* Add a `\"projects\" -> \"@acme/lib1\" -> \"architect\" -> \"build\" -> \"options\" -> \"assets\"` key to the library's config within `angular.json` file.\r\n* Build library using `ng build @acme/lib1`\r\n* Fail error should show and none of the assets will be copied to `dist` folder.\r\n\r\n\r\n### Observed behavior\r\nUpon building & packaging an Angular 6 library e.g. `@acme/lib1` using `ng build @acme/lib1`, the Angular CLI does not copy the library's assets into the `dist/acme/lib1/assets` folder. This happens also when using the `--prod` flag.\r\n\r\nThe CLI seems to only support copying the root app's assets but not library specific assets.\r\nWhen trying to add `\"assets\": [\"src/assets\"]` to project `@acme/lib1` within `angular.json`, the following error appears in the command line:\r\n\r\n> Schema validation failed with the following errors: Data path \"\" should NOT have additional properties(assets).\r\n\r\nWhen creating the following custom rule to copying the files on `ng build`:\r\n```\r\n \"assets\": [\r\n    \"src/favicon.ico\",\r\n    \"src/assets\",\r\n     { \"glob\": \"**/*\", \"input\": \"src/assets\", \"output\": \"../acme/lib1/assets/\" }\r\n],\r\n```\r\nI get the following error:\r\n\r\n> An asset cannot be written to a location outside of the output path.\r\n\r\nWhile it is possible to work around this issue using other command line tools/scripts, it will be more consistent to add support for library's assets copy as well.\r\n\r\n### Desired behavior\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\nWhat did you expect to see?\r\n-->\r\n**Use Case**\r\nVery often libraries include image files, icons, css files and other static files which are needed to be distrubted with the package.\r\n\r\n**What would like to see implemented?**\r\nAdd ability to define a library specific `assets` property within `angular.json`.\r\nExample - \r\n```\r\n\"@acme/lib1\": {\r\n      \"root\": \"projects/acme/lib1\",\r\n      \"sourceRoot\": \"projects/acme/lib1/src\",\r\n      \"projectType\": \"library\",\r\n      \"prefix\": \"lib\",\r\n      \"architect\": {\r\n        \"build\": {\r\n          \"builder\": \"@angular-devkit/build-ng-packagr:build\",\r\n          \"options\": {\r\n            \"tsConfig\": \"projects/acme/lib1/tsconfig.lib.json\",\r\n            \"project\": \"projects/acme/lib1r/ng-package.json\",\r\n            \"assets\": [ // \u003c--------- this is currently not supported\r\n              \"src/assets\"\r\n            ]\r\n          },\r\n  ...}\r\n```\r\nWhat did you expect to see?\r\nProject's specific assets should be copied from `projects/acme/lib1/src/assets` into `dist/acme/lib1/assets`.\r\n\r\n### Mention any other details that might be useful (optional)\r\n\r\n","author":{"url":"https://github.com/7bamboo","@type":"Person","name":"7bamboo"},"datePublished":"2018-05-30T19:48:51Z","url":"https://github.com/angular/angular-cli/issues/11071"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6e950879-d83e-d818-99e7-9807b59755ea
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB3BE:1C94F:CFE31B:1094167:6B01405E
html-safe-nonceed51504519f7417ffa6449e5546b6d96fbe02143678ce52bf3cce589c12dcaa0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0JFOjFDOTRGOkNGRTMxQjoxMDk0MTY3OjZCMDE0MDVFIiwidmlzaXRvcl9pZCI6IjY2NDI3NTYwNTI4MzgzMzQ1NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfe72f5cac5c1366127fb62a10bf51dcc614191985883fc4c2db53d0dafddd580
hovercard-subject-tagissue:327873973
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/11071/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1fa156e49a1b3c4c76b3e9aa74fa0a1aa31df54ea18d6b06b749e64f94571aeb/angular/angular-cli/issues/11071
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1fa156e49a1b3c4c76b3e9aa74fa0a1aa31df54ea18d6b06b749e64f94571aeb/angular/angular-cli/issues/11071
og:image:altVersions Angular CLI: 6.0.7 Node: 9.3.0 OS: darwin x64 Angular: 6.0.3 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-d...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:username7bamboo
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/11071#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F11071
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F11071
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/11071
Reloadhttps://github.com/angular/angular-cli/issues/11071
Reloadhttps://github.com/angular/angular-cli/issues/11071
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/11071
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/11071
ng-packagr/ng-packagr#1465https://github.com/ng-packagr/ng-packagr/pull/1465
Angular 6 CLI does not copy library's assets folder into dist folder.https://github.com/angular/angular-cli/issues/11071#top
ng-packagr/ng-packagr#1465https://github.com/ng-packagr/ng-packagr/pull/1465
devkit/build-angular:libraryhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Alibrary%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%22
Backloghttps://github.com/angular/angular-cli/milestone/12
https://github.com/7bamboo
7bamboohttps://github.com/7bamboo
on May 30, 2018https://github.com/angular/angular-cli/issues/11071#issue-327873973
Nexthttps://github.com/angular/angular-cli/issues/11071?timeline_page=1
https://github.com/ChrisWithTheHat
ChrisWithTheHathttps://github.com/ChrisWithTheHat
on Jun 6, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-395093862
https://github.com/bniedermeyer
bniedermeyerhttps://github.com/bniedermeyer
on Jun 6, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-395096971
https://github.com/dherges/ng-packagr/issues/123#issuecomment-330029214https://github.com/dherges/ng-packagr/issues/123#issuecomment-330029214
https://github.com/lammers
lammershttps://github.com/lammers
on Jun 12, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-396525428
@n00dl3https://github.com/n00dl3
@StickNitrohttps://github.com/StickNitro
https://github.com/StickNitro
StickNitrohttps://github.com/StickNitro
on Jun 12, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-396545675
@lammershttps://github.com/lammers
https://github.com/n00dl3
n00dl3https://github.com/n00dl3
on Jun 12, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-396582662
@lammershttps://github.com/lammers
build-ng-packagr schemahttps://github.com/angular/angular-cli/blob/master/packages/angular_devkit/build_ng_packagr/src/build/schema.json
https://github.com/lammers
lammershttps://github.com/lammers
on Jun 13, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-396917178
https://github.com/bmhumadi
bmhumadihttps://github.com/bmhumadi
on Jun 25, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-400105488
https://github.com/mattezell
mattezellhttps://github.com/mattezell
on Jun 29, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-401459857
@bmhumadihttps://github.com/bmhumadi
#11317https://github.com/angular/angular-cli/issues/11317
https://github.com/fkolar
fkolarhttps://github.com/fkolar
on Jul 7, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-403187523
https://github.com/JBoothUA
JBoothUAhttps://github.com/JBoothUA
on Jul 20, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-406656853
https://github.com/kawazoe
kawazoehttps://github.com/kawazoe
on Jul 20, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-406664229
https://github.com/bniedermeyer
bniedermeyerhttps://github.com/bniedermeyer
on Jul 20, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-406670803
@fkolarhttps://github.com/fkolar
semantic-releasehttps://github.com/semantic-release/semantic-release
exechttps://github.com/semantic-release/exec
https://github.com/fkolar
fkolarhttps://github.com/fkolar
on Jul 21, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-406807451
https://github.com/SAP/angular-metauihttps://github.com/SAP/angular-metaui
https://github.com/nfriend
nfriendhttps://github.com/nfriend
on Aug 2, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-410018698
https://github.com/alvics
alvicshttps://github.com/alvics
on Aug 15, 2018https://github.com/angular/angular-cli/issues/11071#issuecomment-413089104
https://github.com/dhanarajknp
dhanarajknphttps://github.com/dhanarajknp
on Jun 26, 2019https://github.com/angular/angular-cli/issues/11071#issuecomment-505687397
…https://github.com/angular/angular-cli/issues/11071
#11071https://github.com/angular/angular-cli/issues/11071
https://github.com/notifications/unsubscribe-auth/AJWMR6YX4NNXV73AS6FGRC3P4JOXJANCNFSM4FCPTQFQhttps://github.com/notifications/unsubscribe-auth/AJWMR6YX4NNXV73AS6FGRC3P4JOXJANCNFSM4FCPTQFQ
https://github.com/Cossack13
Cossack13https://github.com/Cossack13
on Aug 23, 2019https://github.com/angular/angular-cli/issues/11071#issuecomment-524181584
https://github.com/gauri-kumar
gauri-kumarhttps://github.com/gauri-kumar
on Aug 23, 2019https://github.com/angular/angular-cli/issues/11071#issuecomment-524274073
https://github.com/lakhanmandloi
lakhanmandloihttps://github.com/lakhanmandloi
on Sep 13, 2019https://github.com/angular/angular-cli/issues/11071#issuecomment-531235099
https://github.com/Sunbird-Ed/sunbird-ui-components/blob/master/nodemon.jsonhttps://github.com/Sunbird-Ed/sunbird-ui-components/blob/master/nodemon.json
https://github.com/klemenoslaj
klemenoslajhttps://github.com/klemenoslaj
on Sep 14, 2019https://github.com/angular/angular-cli/issues/11071#issuecomment-531467088
https://github.com/blemaire
blemairehttps://github.com/blemaire
on Sep 16, 2019https://github.com/angular/angular-cli/issues/11071#issuecomment-531673897
@klemenoslajhttps://github.com/klemenoslaj
https://github.com/dhanarajknp
dhanarajknphttps://github.com/dhanarajknp
on Sep 16, 2019https://github.com/angular/angular-cli/issues/11071#issuecomment-531675328
…https://github.com/angular/angular-cli/issues/11071
@klemenoslajhttps://github.com/klemenoslaj
https://github.com/klemenoslajhttps://github.com/klemenoslaj
#11071https://github.com/angular/angular-cli/issues/11071
https://github.com/notifications/unsubscribe-auth/AJWMR6Z5N4CH3M4DANDDOFTQJ43ARANCNFSM4FCPTQFQhttps://github.com/notifications/unsubscribe-auth/AJWMR6Z5N4CH3M4DANDDOFTQJ43ARANCNFSM4FCPTQFQ
https://github.com/klemenoslaj
klemenoslajhttps://github.com/klemenoslaj
on Sep 16, 2019https://github.com/angular/angular-cli/issues/11071#issuecomment-531737349
@blemairehttps://github.com/blemaire
issuehttps://github.com/just-jeb/angular-builders/issues/508
angular-buildershttps://github.com/just-jeb/angular-builders/
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Oct 21, 2019https://github.com/angular/angular-cli/issues/11071#issuecomment-544513291
https://github.com/rorry121
rorry121https://github.com/rorry121
on Nov 11, 2019https://github.com/angular/angular-cli/issues/11071#issuecomment-552333073
https://github.com/dhanarajknp
dhanarajknphttps://github.com/dhanarajknp
on Nov 14, 2019https://github.com/angular/angular-cli/issues/11071#issuecomment-553717184
…https://github.com/angular/angular-cli/issues/11071
#11071https://github.com/angular/angular-cli/issues/11071
https://github.com/notifications/unsubscribe-auth/AJWMR62QZPISAW6P2DT5V2DQTEGB3ANCNFSM4FCPTQFQhttps://github.com/notifications/unsubscribe-auth/AJWMR62QZPISAW6P2DT5V2DQTEGB3ANCNFSM4FCPTQFQ
alan-agius4https://github.com/alan-agius4
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
ng-packagr/ng-packagr#1465https://github.com/ng-packagr/ng-packagr/pull/1465
on Dec 4, 2019https://github.com/angular/angular-cli/issues/11071#event-2853666033
alan-agius4https://github.com/alan-agius4
on Dec 4, 2019https://github.com/angular/angular-cli/issues/11071#event-2853666111
fix: add `assets` option to schemahttps://github.com/ng-packagr/ng-packagr/commit/a5efd1c27d04b2d654959e1fe2062f222cfdf071
a5efd1chttps://github.com/ng-packagr/ng-packagr/commit/a5efd1c27d04b2d654959e1fe2062f222cfdf071
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jan 4, 2020https://github.com/angular/angular-cli/issues/11071#issuecomment-570765898
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jan 4, 2020https://github.com/angular/angular-cli/issues/11071#event-2921722529
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/11071
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/11071
devkit/build-angular:libraryhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Alibrary%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%22
BacklogNo due datehttps://github.com/angular/angular-cli/milestone/12
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.