1

I have a folder that contains audio files. Starting to this folder I need to write a manifest file.

This is the format of the manifests:

{
    "audio": [
        "assets/sounds/file1.mp3",
        "assets/sounds/file2.mp3",
        "assets/sounds/file3.mp3"
    ],
    "root": "assets/sounds"
}

the file are stored into the follow structure

root
  |_ dist
  |   |_ assets
  |        |_ audio.json
  |        |_ sounds
  |             |_ file1.mp3
  |             |_ file2.mp3
  |             |_ file3.mp3
  |
  |_ src
      |_ sounds
           |_ file1.mp3
           |_ file2.mp3
           |_ file3.mp3

I create the task that copy *.mp3 files from src/sounds to dist/assets/sounds

But I need some help to create a task to write the manifest file that will be located into dist/assets/audio.json

Zauker
  • 2,344
  • 3
  • 27
  • 36
  • Have you looked at https://github.com/hillmanov/gulp-manifest or https://www.npmjs.com/package/gulp-appcache ? – Mark Jun 10 '17 at 21:53
  • @Mark thank you for your comment. The modules suggested are specific for HTML5 Cache, so the results is pretty different. If I don't find other way could start from this code for write something compliant with my needs. – Zauker Jun 13 '17 at 09:54

0 Answers0