I’m neck deep in learning ES6, React, Typescript, Node and all the billions of pieces that are a part of this “ecosystem”. I think I’m going to post some of the things that I learn along the way here.
Most of it will probably be obvious if you’ve been working with these technologies for a while, though I assumed a lot of what I was trying to do would be easily discoverable online. Maybe I just need to take some Google lessons.
Lessons to write about…
Using Sequelize CLI (and probably a rant about all ORMs, but especially this one)
Avoiding Redux and test driving React apps using hooks
Dockerizing a dev database
Writing integration tests with Sequelize without losing my mind
Here’s what worked for me (based on Yarn 1.15.2). As with everything I post, If there are better ways, please tell me.
Install cross-var to support consistent variable usage in package.json across Windows and Mac.
yarn add cross-var
Install bestzip to support cross-platform packaging.
yarn add bestzip
Install copyfiles to support cross-platform, configurable file copying.
yarn add copyfiles
Create a script in package.json for copying the compiled files to a /dist directory
"copy": "copyfiles -a -e \"**/*.ts\" -u 1 \"src/**/*.*\" dist"
Create a script in package.json for packing up the source and dependent node_modules