The web version of the Inspiral app. Written in TypeScript, using D3.js. nathanfriend.io/inspiral-web/
- install Node.js
note: this project only seems to build correctly with version 5 and lower, due to this issue:cgross/grunt-dom-munger#42. Removing thea. I got around this issue by hacking in this PR inisPathparameter makes the build produce incorrect results.InspiralWeb/node_modules/grunt-dom-munger/tasks/dom_munger.js
- install Grunt and Bower
- run
npm installandbower installinsideInspiralWeb/directory - run
bower installinside theInspiralWeb/gallerydirectory - change the value
@fa-font-pathin/bower_components/fontawesome/less/variables.lessfrom../fontsto./- do the same for the
bower_componentsdirectory in/gallery
- do the same for the
install WebEssentials VS plugin- run
npm run build-scripts - Install
http-serverglobally and runhttp-serverinside the/InspiralWebdirectory - create a distribution build, run
gruntinside theInspiralWeb/directory
There are some seriously terrible things about this codebase:
- A number of the original
*.tsfiles are missing, but the compiled*.jsfiles still exist. I'm not sure how this happened 🤷 - I haven't invested time into figuring out how to compile the LESS (it used to
be done automatically by the VS extension), so currently there's no way to
make style changes to the app. I gave this a shot with the
build-stylesnpm scripts, but they're not yet working. For now - just don't touchapp.min.css.
- after building (see above), run
npm publishfrom the./dist/directory a. don't run this command from theInspiralWeb/directory!