Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930
  1. 'use strict'
  2. function getInvalidatingOptions (config) {
  3. return [
  4. 'compact',
  5. 'esModules',
  6. 'ignoreClassMethods',
  7. 'instrument',
  8. 'instrumenter',
  9. 'parserPlugins',
  10. 'preserveComments',
  11. 'produceSourceMap',
  12. 'sourceMap'
  13. ].reduce((acc, optName) => {
  14. acc[optName] = config[optName]
  15. return acc
  16. }, {})
  17. }
  18. module.exports = {
  19. salt (config) {
  20. return JSON.stringify({
  21. modules: {
  22. 'istanbul-lib-instrument': require('istanbul-lib-instrument/package.json').version,
  23. nyc: require('../package.json').version
  24. },
  25. nycrc: getInvalidatingOptions(config)
  26. })
  27. }
  28. }