Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

chore: add src folder #362

Merged
merged 11 commits into from
Feb 2, 2017
Merged

chore: add src folder #362

merged 11 commits into from
Feb 2, 2017

Conversation

filipesilva
Copy link
Contributor

No description provided.

README.md Outdated
@@ -115,7 +115,7 @@ with excellent support for Angular apps that use routing.

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
Member

Choose a reason for hiding this comment

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

Aren't them typescript now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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
Contributor Author

Choose a reason for hiding this comment

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

Sorry I missed what you really meant. Fixed.

README.md Outdated
@@ -128,9 +128,9 @@ These tools are configured for specific conventions described below.
We recommend that you shut down one before starting another.*

### 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
Member

Choose a reason for hiding this comment

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

Shouldn't they end on .spec.ts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

README.md Outdated
@@ -156,7 +156,7 @@ we configured protractor to find them.

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
Member

Choose a reason for hiding this comment

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

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed by putting the package name explicitly.

@@ -147,7 +147,7 @@ restart it. No worries; it's pretty quick.

### 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
Member

Choose a reason for hiding this comment

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

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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
Member

Choose a reason for hiding this comment

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

I completely misread. Sorry

@filipesilva filipesilva changed the title chore: add src folder [WIP] chore: add src folder Jan 30, 2017
@filipesilva filipesilva changed the title [WIP] chore: add src folder chore: add src folder Feb 2, 2017
@@ -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
Member

Choose a reason for hiding this comment

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

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
Contributor Author

Choose a reason for hiding this comment

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

Doesn't work without that:
image

@Foxandxss Foxandxss merged commit d0e7594 into angular:master Feb 2, 2017
@filipesilva filipesilva deleted the add-src-folder branch February 3, 2017 10:28
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