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

Improvements to frameworks.md and added postinstall script #3674

Merged
merged 3 commits into from
Dec 22, 2016
Merged

Improvements to frameworks.md and added postinstall script #3674

merged 3 commits into from
Dec 22, 2016

Conversation

igniteram
Copy link
Contributor

  • Broken links in frameworks.md should be fixed with 3d14cc1. closes Documentation - Broken links in Choosing a Framework section  #3671
  • Added sample cucumberConf.js so that it could be referenced in frameworks.md 61ae390, would be happy to send a PR with protractor-cucumber tests for our testapp as well.
  • Added a postinstall script in package.json as it would help remove the redundancy of manually installing dependencies(website,testapp & webdriver-manager update) for contributors. Updated the same in README.md e618754

These could be squashed & merged into one commit if needed, let's see what travis has to say 😄 !

@igniteram
Copy link
Contributor Author

I see some changes in README.md so this PR would have to be rebased with master!

Copy link
Contributor

@sjelin sjelin left a comment

Choose a reason for hiding this comment

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

  • link fixes and type fix are good
  • postinstall doesn't make sense in this case
  • we're not interested in spec/cucumberConf.js since we don't support cucumber first-party

"prepublish": "gulp prepublish",
"pretest": "gulp pretest",
"start": "node testapp/scripts/web-server.js",
"test": "node scripts/test.js",
"install_website":"cd website && npm install",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why would someone outside the core team want to install the website?

@@ -0,0 +1,35 @@
var env = require('./environment');
Copy link
Contributor

Choose a reason for hiding this comment

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

We do not provide first party cucumber support, and the .feature files referenced here do not exist

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know we do not provide first party cucumber support and there are no feature files, but users who use cucumber would have a look at the frameworks.md file in which we have mentioned a link to a sample cucumber conf.js. we need to either remove it or add a sample conf file. I would suggest let's remove it and i could add a reference link to our protractor-cookbook where users can have a look at the cucumber conf file.

Copy link
Contributor

Choose a reason for hiding this comment

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

You could put something in docs/, just make sure it makes clear we don't provide first-party support

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added a basic cucumber config file in docs/frameworks.md so that users can refer to it.

@@ -62,10 +62,12 @@
"main": "built/index.js",
"typings": "built/index.d.ts",
"scripts": {
"postinstall": "cd bin && webdriver-manager update && npm run install_website && npm run install_testapp",
Copy link
Contributor

Choose a reason for hiding this comment

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

Adding a postinstall like this will cause anyone who used npm install protractor to install the testapp - something almost no one wants and won't even work since the testapp is ignored via .npmignore.

Copy link
Contributor

Choose a reason for hiding this comment

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

I am also not a fan of this step. We should avoid postinstall because not everyone is a contributor.

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 I get it, users would not need it and not everyone is a contributor, my intention was to simplify things for contributors as its a 3 step npm install. I would remove this!

Copy link
Contributor

@cnishina cnishina left a comment

Choose a reason for hiding this comment

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

Please see comments about the README.md and package.json.

cd website
npm install
cd ..

Copy link
Contributor

Choose a reason for hiding this comment

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

These instructions should be left in. These instructions are important for contributors.

We could do an npm run install_website here instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This could be done! let me clean up things hear 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted back and removed post_install and I see you have already added npm run install_website !

npm run install_testapp

Start that up with
Start the test application with
Copy link
Contributor

Choose a reason for hiding this comment

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

This is also important to get started for contributing. The user should install the angular 2 dependencies and serve the Angular app.

@@ -62,10 +62,12 @@
"main": "built/index.js",
"typings": "built/index.d.ts",
"scripts": {
"postinstall": "cd bin && webdriver-manager update && npm run install_website && npm run install_testapp",
Copy link
Contributor

Choose a reason for hiding this comment

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

I am also not a fan of this step. We should avoid postinstall because not everyone is a contributor.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

1 similar comment
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

@googlebot
Copy link

CLAs look good, thanks!

1 similar comment
@googlebot
Copy link

CLAs look good, thanks!

@igniteram
Copy link
Contributor Author

@cnishina can you please review and close this!

@cnishina
Copy link
Contributor

LGTM! Thanks @igniteram

@cnishina cnishina merged commit 74e3bad into angular:master Dec 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation - Broken links in Choosing a Framework section
4 participants