Set up a compilation index file for use in demos and npm