-
Notifications
You must be signed in to change notification settings - Fork 877
chore(install): put all install commands into a single script #1754
chore(install): put all install commands into a single script #1754
Conversation
This makes it easier to run manually, e.g., after having reset all local typings.
@filipesilva @Foxandxss : as you may recall I had a broken local environment before I went away last week. Now things are back in order, after following the setup in the travis config file (thanks for the suggestion @filipesilva). This PR just makes it easier to do so (since I don't expect that we have seen the last of a change in typings :). Btw, if you agree with the changes proposed in this PR, then maybe we should update the README.md to reflect this new way of setting up / refreshing a local repo. We could then also add that no PR should be submitted unless |
Yes, something like that should be done. We will talk about that tomorrow I guess. |
Travis is all green. Strangely, when I run the tests locally, I get two failures:
But when I perform the failed test cases manually, I observe the desired behavior. Maybe the tests are failing because protractor isn't waiting for the actions to complete? (Btw, the same tests pass in Dart.) Any ideas why the tests are failing locally? |
Those two failing tests are a known issue, completely unrelated to your changes. Forget about them for now, they are an issue on chrome and/or protractor. |
As far as I can tell, the But, on the other hand, neither do shell files work on windows (without git bash). So I'm not sure this PR helps much in that sense. If it is to go in, then the |
@Foxandxss : thanks for confirming that those are known failures (FMI, is there an issue open to track this)? @filipesilva : thanks for clarifying the situation under Windows. Note that this PR does help macOS and linux folks :) ... without making things any worse under Windows, as far as I understand. |
@filipesilva : FYI, |
@chalin so the prefix thing doesn't work on osx and linux either? That I didn't expect. For the webdriver command, why can't it be done in the same scheme as the others? Does it not work either? |
The When used with |
Got it. Didn't fully understand that before. |
fwiw, I just used this script, and now my repo is the happiest it's been in weeks (I'm able to deploy the docs again). |
I agree. We do crazy changes to the repo and be able to restart it to brand new condition without losing the branches (the problem of a fresh copy) is 200% needed. |
Let's go for it then :D |
This PR makes it easier to get a local repo back into a sane state after a change in typings (something that a few of us have had some challenges with recently :). Specifically, this PR addresses two things.
(1) On June 18th, @filipesilva made the following comment on the docs-authoring slack channel:
I agree with this approach of relying on the travis config file. Furthermore, I think that it should be easy to manually create a clean repo (when cloning afresh isn't an option). This PR puts the 5 travis install commands into a single script:
./script/install.sh
. Note that theangular
team has a similarly named script that they also use for travis installs.With this PR, one can get a refreshed repo by issuing the following commands from the repo dir:
(2) I changed two of the install commands as follows:
While travis builds seemed to be working, I'm a bit puzzled as to why the two
npm install --prefix foo
commands gave the desired effect. It is my understanding that such invocations ofnpm install
would use the top-levelpackage.json
file (which I don't think is what we wanted). Anyhow, these twonpm install --prefix foo
commands did not work when run on a local repo. The adjusted commands work both locally and for travis.