chore: implement basic devServer

This commit is contained in:
Igor Randjelovic
2021-03-26 22:16:36 +01:00
parent bb23bca3ce
commit 75e6009b8a
7 changed files with 198 additions and 58 deletions

View File

@ -1,7 +1,7 @@
import { dirname, resolve } from 'path';
import { getPackageJson, getProjectRootPath } from './project';
import { error } from './log';
import { error, info } from './log';
import { env } from '../';
import AndroidPlatform from '../platforms/android';
@ -29,7 +29,7 @@ const platforms: {
* @param platform A platform definition of the platform specifics
*/
export function addPlatform(name: string, platform: INativeScriptPlatform) {
console.log('adding platform', name, platform);
info(`Adding platform ${name}`, platform);
platforms[name] = platform;
}