Skip to content

Set back to reference "cjs" dependency, with yarn focus#74

Merged
andy-lee-eng merged 3 commits intodevelopfrom
feature/use-yarn-focus
Mar 5, 2019
Merged

Set back to reference "cjs" dependency, with yarn focus#74
andy-lee-eng merged 3 commits intodevelopfrom
feature/use-yarn-focus

Conversation

@andy-lee-eng
Copy link
Collaborator

This change requires the use of `yarn install --focus" in the perspective-viewer-d3fc folder, if you're only compiling the plugin (so that the dependency with the /cjs folder is pulled in locally).

Other notes:

After yarn install --focus, running yarn watch in the perspective-viewer-d3fc folder failed, because it couldn't find webpack. I had to install webpack globally to get that to work again:

yarn global add webpack

I also found that the pre-commit hook failed (couldn't find npm-run-all or eslint or any of their depdendencies). Rather than globally install all that lot, I just commented out the precommit hook in my /.git/hooks folder. Committing is now much quicker, and we lint-fix-on-save anyway.

This change requires the use of `yarn install --focus" in the perspective-viewer-d3fc folder, if you're only compiling the plugin (so that the dependency with the /cjs folder is pulled in locally)
@andy-lee-eng
Copy link
Collaborator Author

I have also updated the perspective-d3fc-test project with the latest perspective dependencies, which it needs for this to run.

Must pick webpack 3.5.6 when doing `yarn install --focus`
@andy-lee-eng
Copy link
Collaborator Author

Update: I've added webpack as a devDependency, and now it works without globally installing webpack. However, when you run yarn install --focus and it asks which webpack version to install, you need to pick the "3.5.6" one (to match the webpack used by the perspective project).

@andy-lee-eng andy-lee-eng merged commit b8dcd1d into develop Mar 5, 2019
@andy-lee-eng andy-lee-eng deleted the feature/use-yarn-focus branch March 5, 2019 11:28
andy-lee-eng pushed a commit that referenced this pull request Mar 6, 2019
* Set back to reference "cjs" dependency, with yarn focus

This change requires the use of `yarn install --focus" in the perspective-viewer-d3fc folder, if you're only compiling the plugin (so that the dependency with the /cjs folder is pulled in locally)

* Update to work without global install webpack

Must pick webpack 3.5.6 when doing `yarn install --focus`

* Silence webpack error relating to "@d3fc/d3fc-data-join" reference
redbearsam pushed a commit that referenced this pull request Mar 8, 2019
* Set back to reference "cjs" dependency, with yarn focus

This change requires the use of `yarn install --focus" in the perspective-viewer-d3fc folder, if you're only compiling the plugin (so that the dependency with the /cjs folder is pulled in locally)

* Update to work without global install webpack

Must pick webpack 3.5.6 when doing `yarn install --focus`

* Silence webpack error relating to "@d3fc/d3fc-data-join" reference
mhooper-scottlogic pushed a commit that referenced this pull request Mar 18, 2019
* Set back to reference "cjs" dependency, with yarn focus

This change requires the use of `yarn install --focus" in the perspective-viewer-d3fc folder, if you're only compiling the plugin (so that the dependency with the /cjs folder is pulled in locally)

* Update to work without global install webpack

Must pick webpack 3.5.6 when doing `yarn install --focus`

* Silence webpack error relating to "@d3fc/d3fc-data-join" reference
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