That is a pretty long line! Do I have to type that many characters in the terminal every time I want to build my app? I don’t think I could remember all of that.
Arghh…what should I do? Should I just copy and paste it somewhere, and then when I need it, I’ll copy it back into the terminal? NO!! There must be a better way!
You can create aliases by adding them to the "scripts" object of your package.json file. The keys in the "script" object (left of the colon) are used as the script alias and the value (right of the colon) is what will be executed when the script alias is used.
I know a lot of apps have a lot of different needs, and people come up with a lot of great stuff. I’m always interested in automating tedious tasks. I’d love to get good ideas on any useful script shortcuts that other people have created. If you have written a script shortcut that you’re proud of and saved yourself (and others) time, please share in the comment below. Let’s all learn from each other.