cd ~/code/uppy git checkout master git status # make sure to have a clean working tree git pull npm i # this installs master linting locally. may need to be `yarn` instead git checkout $myBranch # e.g. `golden-retriever-ghosts-2` git checkout master -- .eslintrc.json git add .eslintrc.json
|Some todos I can think off:|
|- [ ] Make Modal prettier and accessible using Artur's research|
|- [ ] Convert `GoogleDrive` to adhere to `Dummy`'s format, so it'sare compatible with the new Modal|
|- [ ] Convert `DragDrop` to adhere to `Dummy`'s format, so it'sare compatible with the new Modal|
|- [ ] Make `ProgressBar` work with the new Modal|
|- [ ] Rename FakeModal to Modal, deprecating our old one|
|- [ ] Make the Modal look like Harry's sketchup|
|- [ ] ?|
These are the steps I took to change a modest project from CoffeeScript to ES6.
My ~2000LoC project took me around 6 hours to port, but I sunk 3 hours into a stupid mistake, and 2 into figuring out these steps, so with these steps & warnings at your disposal already, you should be able to do bigger projects in considerably less time.
Automatic tools only take you so far, there will be some manual fixing. Sometimes the generated code clearly doesn't look like a human wrote it, and sometimes there are bugs.
In this last case, when porting software trips over a particular bit of CoffeeScript, comment this bit out, and try transpiling the file again. If this is successfull, you'll see the commented CoffeeScript inside the JS, and you can port that bit yourself.
Okay let's dive right in!
|# Licensed under MIT.|
|# Copyright (2016) by Kevin van Zonneveld https://twitter.com/kvz|
|# This Makefile offers convience shortcuts into any Node.js project that utilizes npm scripts.|
|# It functions as a wrapper around the actual listed in `package.json`|
|# So instead of typing:|
|# $ npm script build:assets|
|# you could just as well type:|