stcg / librejs

Forked from librejs 2 years ago
Clone

b781047 Convert "json" files to real json files

Authored and Committed by stcg 2 years ago
    Convert "json" files to real json files
    
    This is needed to build the project using Webpack v2 or v3 [0].
    
    The following commands were used for the conversion:
    
      $ mv licenses.json licenses.old.json
      $ cat licenses.old.json \
        |  sed $'s/module.exports = //g' \
        |  tr \' \" |  tr -d ';' \
        |  sed $'s/licenses: /"licenses": /g' \
        >  licenses.json
    
      $ mv fname_data.json fname_data.old.json
      $ cat fname_data.old.json \
        |  sed $'s/module.exports = //g'\
        |  tr \' \"  \
        |  tr -d ';'  \
        |  sed $'s/fname_data : /"fname_data": /g' \
        > fname_data.json
    
    [0]: https://webpack.js.org/migrate/3/#json-loader-is-not-required-anymore
    
        
file modified
+3 -3
file modified
+217 -217