Experimental port to Firebase hosting

This commit is contained in:
Michael Jackson
2019-01-05 16:50:05 -08:00
parent e4d6df255e
commit 31e7d3865a
300 changed files with 129300 additions and 5817 deletions

View File

@ -0,0 +1,12 @@
const countriesList = require('countries-list');
const json = JSON.stringify({
continents: countriesList.continents,
countries: Object.keys(countriesList.countries).reduce((memo, key) => {
const { name, continent } = countriesList.countries[key];
memo[key] = { name, continent };
return memo;
}, {})
});
console.log(json);

14
scripts/postinstall.js Normal file
View File

@ -0,0 +1,14 @@
const path = require('path');
const execSync = require('child_process').execSync;
function exec(cmd) {
execSync(cmd, { stdio: 'inherit', env: process.env });
}
process.chdir(path.resolve(__dirname, '../functions'));
if (process.env.CI) {
exec('npm ci');
} else {
exec('npm install');
}