FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: add src folder by filipesilva · Pull Request #362 · angular/quickstart · GitHub

This repository was archived by the owner on Feb 26, 2024. It is now read-only.
/ quickstart Public archive

chore: add src folder - #362

Merged
Foxandxss merged 11 commits into
angular:masterfrom
filipesilva:add-src-folder
Feb 2, 2017
Merged

chore: add src folder#362
Foxandxss merged 11 commits into
angular:masterfrom
filipesilva:add-src-folder

Conversation

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread README.md Outdated
Here are the test related scripts:
* `npm test` - compiles, runs and watches the karma unit tests
* `npm run e2e` - run protractor e2e tests, written in JavaScript (*e2e-spec.js)
* `npm run e2e` - compiles and run protractor e2e tests, written in JavaScript (*e2e-spec.js)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Aren't them typescript now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yes, and that means they need to be compiled. However what I actually wanted to say here (and didn't do it very well) is that running the command also compiles your app.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Sorry I missed what you really meant. Fixed.

Comment thread README.md Outdated

### Unit Tests
TypeScript unit-tests are usually in the `app` folder. Their filenames must end in `.spec`.
TypeScript unit-tests are usually in the `src/app` folder. Their filenames must end in `.spec`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Shouldn't they end on .spec.ts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Fixed

Comment thread README.md Outdated
Thereafter, run them with `npm run e2e`.

That command first compiles, then simultaneously starts the Http-Server at `localhost:8080`
That command first compiles, then simultaneously starts the Http-Server at `localhost:3000`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

it is not http-server anymore, even if lite-server is a http server, I guess we could remove the - in there.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Fixed by putting the package name explicitly.

Comment thread README.md
### End-to-end (E2E) Tests

E2E tests are in the `e2e` directory, side by side with the `app` folder.
E2E tests are in the `e2e` directory, side by side with the `src` folder.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I see them in an e2e folder and still same folder after this PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The paragraph says they are in the e2e folder, and that it is a sibling folder to src. Did you misread or am I missing something?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I completely misread. Sorry

filipesilva changed the title chore: add src folder [WIP] chore: add src folder Jan 30, 2017
filipesilva changed the title [WIP] chore: add src folder chore: add src folder Feb 2, 2017
Comment thread src/systemjs.config.js
@@ -30,7 +30,6 @@
// packages tells the System loader how to load when no filename and/or no extension
packages: {
app: {
main: './main.js',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

what do we gain by removing this? I mean, if we are not importing "app" anymore, shouldn't we remove the entire app node?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Doesn't work without that:

Foxandxss merged commit d0e7594 into angular:master Feb 2, 2017
filipesilva deleted the add-src-folder branch February 3, 2017 10:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL