Skip to content

Commit

Permalink
Add deploy script file
Browse files Browse the repository at this point in the history
  • Loading branch information
mmzliveid committed Sep 4, 2019
1 parent 4dd6a7e commit e9d0f2d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions copy-files.js
@@ -0,0 +1,18 @@
#!/usr/bin/env node

'use strict';

const fs = require('fs');
const path = require('path');

// tslint:disable-next-line: no-var-requires no-require-imports no-unsafe-any
const packageVersion = require('./package.json').version;

const destDir = path.resolve(__dirname, './dist');

// Copy release notes
fs.copyFileSync(path.resolve(__dirname, `./release-notes/v${packageVersion}/README.md`), path.join(destDir, 'RELEASENOTES.md'));

// Copy firebase configs
fs.copyFileSync(path.resolve(__dirname, './firebase.json'), path.join(destDir, 'firebase.json'));
fs.copyFileSync(path.resolve(__dirname, './.firebaserc'), path.join(destDir, '.firebaserc'));

0 comments on commit e9d0f2d

Please sign in to comment.