question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docs: Inconsistency between docs & CLI generated code in the "Workspace and project file structure" docs page

See original GitHub issue

I’m submitting a…


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

Current behavior

There’s an issue in the https://next.angular.io/guide/file-structure page. When generating a new setup with the latest Angular CLI, I get a file structure that looks like this:

image

Instead in the article, the app folder is at the root level rather than at the src level.

image

Minimal reproduction of the problem with instructions

$ npx @angular/cli@next new myproject

Then inspect the file structure

Environment

Angular CLI: 7.0.0-rc.1
Node: 9.2.0
OS: darwin x64
Angular: 7.0.0-rc.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.9.0-rc.1
@angular-devkit/build-angular     0.9.0-rc.1
@angular-devkit/build-optimizer   0.9.0-rc.1
@angular-devkit/build-webpack     0.9.0-rc.1
@angular-devkit/core              7.0.0-rc.1
@angular-devkit/schematics        7.0.0-rc.1
@angular/cli                      7.0.0-rc.1
@ngtools/webpack                  7.0.0-rc.1
@schematics/angular               7.0.0-rc.1
@schematics/update                0.9.0-rc.1
rxjs                              6.3.3
typescript                        3.1.1
webpack                           4.19.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jbogarthydecommented, Jan 25, 2019

Some issues addressed in published version of page. Others corrected in https://github.com/angular/angular/pull/28377

1reaction
juristrcommented, Oct 4, 2018

Also the part on the inner structure of the app folder doesn’t seem to be 100% correct. My structure looks like this:

image

…while on the docs, the assets folder seems to reside “inside” the app folder:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

User and Workspace Settings - Visual Studio Code
To open the Settings editor, use the following VS Code menu command: On Windows/Linux - File > Preferences > Settings. On macOS -...
Read more >
Workspace and project file structure - Angular
A project is the set of files that comprise a standalone application or a shareable library. The Angular CLI ng new command creates...
Read more >
Command-Line Reference | Bazel
Canonicalizes a list of bazel options. clean, Removes output files and optionally stops the server. coverage, Generates code coverage report for ...
Read more >
User Manual - rust-analyzer
The manual is written in AsciiDoc and includes some extra files which are generated from the source code. Run cargo test and cargo...
Read more >
Merge conflicts - GitLab Docs
Merge conflicts happen when the two branches in a merge request (the source and target) each have different changes, and you must decide...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found