So today I needed some features in NativeScript that had been committed to their repo, but had not been released via npm yet. I thought I’d be smart, clone the repo and just build it myself. It wasn’t quite that simple, so here is the path I took to get it all working on OSX.
WARNING: Bleeding Edge Repos can break things.
Clone the repo
Grab the submodule(s)
git submodule update
If this were just a JS module, you could simply use npm to install it. But its not, this module contains TypeScript. Ah, a Gruntfile exists in the repo!
Install Grunt and its requirements (I already have the grunt-cli installed globally)
npm install grunt-ts
npm install grunt-contrib-clean
npm install grunt-contrib-copy
npm install grunt-contrib-watch
npm install grunt-shell
Now if we run grunt, we will see that a JS and a MAP file is created for each TS file within the project.
To package up a zip (ex: nativescript-0.9.4-non-ci.tgz) you can install from, you can use
To install from that zip