Public Lab

Get capture.js subfiles compiling into a single file using Grunt

We have a file capture.js which is now refactored here in this PR. Here are the new imports in index.html file. Now we actually want all the code in one file after getting compiled. What we can do is to install grunt and set up a compilation step that merges these files. That way the source files can be in the /src/ directory and the combined output file can be in /dist/.

This may sound like a lot but it's not too hard to set up. There is a good example in this library with documentation on how to use grunt to "build" or "compile" the source files. https://github.com/publiclab/inline-markdown-editor#contributing

Task tags

  • grunt build
  • medium

Students who completed this task

VladeDev

Task type

  • code Code
close

2019