aykanfonseca / triton

A course-planning web application that streamlines the process to be more intuitive and fun.
https://aykanfonseca.github.io/triton/
MIT License
1 stars 0 forks source link

Migrate to Yarn Plug'n'Play #50

Open aykanfonseca opened 5 years ago

aykanfonseca commented 5 years ago

Retool the repo's infrastructure to use Yarn's Plug'n'Play feature which eliminates the node modules folder.

Expected Benefits:

  1. Less overhead - removing the node_modules folder and worry less about project dependencies.
  2. Faster setup - repo has around 6x smaller size (50mb vs 300mb) and loads significantly faster during development.
aykanfonseca commented 5 years ago

Current repo size (ejected & using node_modules):

screen shot 2019-01-20 at 10 14 51 pm
aykanfonseca commented 5 years ago

Encountered an issue: when using the plug'n'play mode, it appears certain dependencies used for importing SVGs (as part of create-react-app v2's feature) break / aren't installed.

The current workaround is to forgo this feature and import SVGs directly into an <img> tag.