MihaiValentin / lunr-languages

A collection of languages stemmers and stopwords for Lunr Javascript library
Other
431 stars 163 forks source link

Support for building hand craft language files #40

Closed danjarvis closed 7 years ago

danjarvis commented 7 years ago

The Japanese language plugin is currently hand-crafted and as such, it is not picked up during the build process. This causes two issues:

  1. we don't get minified versions
  2. code style is not consistent with generated lang files (i.e. indentation)

The updates in this patch allow us to perform beautification and minification on language files that are hand crafted by simply adding an entry to the file list with locale only.

Note: 'jp' was added to keep things consistent. It can be removed when lunr.jp.js is removed.

Fixes #34

MihaiValentin commented 7 years ago

@danjarvis : Thanks for this PR!