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

Exclude Cypress and Karma from docker images #2309

Merged
merged 1 commit into from
Jul 2, 2018
Merged

Exclude Cypress and Karma from docker images #2309

merged 1 commit into from
Jul 2, 2018

Conversation

ArnaudPel
Copy link
Contributor

Trying #2290 again on a new branch, because the builds did not seem to be reset properly between commits on the other branch

@ArnaudPel
Copy link
Contributor Author

Seems to work !

@@ -50,11 +50,23 @@
"node": ">=6.9.0",
"npm": ">=3.10.3"
},
"optionalDependencies": {
"@bahmutov/add-typescript-to-cypress": "^2.0.0",
Copy link
Owner

Choose a reason for hiding this comment

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

Not sure about that. There's no standard property called optionalDependencies in package.json.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

My bad. Let's merge.

Copy link
Contributor Author

@ArnaudPel ArnaudPel Jul 2, 2018

Choose a reason for hiding this comment

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

In my opinion the issue with our package.json is that a lot of things that are currently listed as devDependencies are actually needed to build the prod environment as well: gulp, rollup, and types, for example, are needed by the build process.

In this regard, I don't quite see the point of the current split between dependencies and devDependencies. AFAICT there's nowhere we can run npm install --production.

Since I didn't want to bring that issue up, I tried instead to look for something like testDependencies, but the closest I could find was this optionalDepedencies.

To sum up, I currently see two options only:

  • move all dependencies required by the prod build to dependencies
  • keep change as is

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah ok you accepted already :)

Copy link
Owner

@mgechev mgechev left a comment

Choose a reason for hiding this comment

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

The solution looks a bit hacky.

@mgechev mgechev merged commit 44b650e into mgechev:master Jul 2, 2018
@ArnaudPel ArnaudPel deleted the feat/docker-exclude-tests2 branch July 2, 2018 09:57
mgechev pushed a commit that referenced this pull request Jul 3, 2018
* Fix: fakeAsync Karma Test

* add resolutions field to package.json (#2302)

* add resolutions field to package.json

* use npm ci

* configure cache directories for ci

* chore(package): update rollup to version 0.62.0 (#2304)

* chore(package): update yargs to version 12.0.1 (#2306)

* Update package-lock.json to fix CI build (#2308)

* Typescript Cypress custom commands (#2307)

Make it possible to use custom Cypress command in the .ts specs

* Exclude Cypress and Karma from docker images (#2309)

* Fix: fakeAsync Karma Test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants