Skip to content

Instantly share code, notes, and snippets.

@qodunpob
Created August 2, 2018 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qodunpob/2dbb499efbd28c19b3470e35a958b637 to your computer and use it in GitHub Desktop.
Save qodunpob/2dbb499efbd28c19b3470e35a958b637 to your computer and use it in GitHub Desktop.
/* creating build files copies */
spawnSync('cp', ['-r', 'lib', 'temp/lib'], getSpawnOptions(rootDir));
spawnSync('cp', ['package.json', 'temp/package.json'], getSpawnOptions(rootDir));
spawnSync('cp', ['package-lock.json', 'temp/package-lock.json'], getSpawnOptions(rootDir));
spawnSync('cp', ['README.md', 'temp/README.md'], getSpawnOptions(rootDir));
/* indexing the build files */
spawnSync('git', ['add', '--all'], getSpawnOptions(tempDir));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment