proximity-demo/install.js
Kishan Takoordyal dad566cc3b
init
2020-11-17 06:14:39 +04:00

15 lines
437 B
JavaScript

#! /usr/bin/env node
'use strict';
const appName = process.argv[2];
const { spawnSync } = require('child_process');
const url = 'https://github.com/EdgeKing810/react-template';
spawnSync('git', ['clone', url, `${process.cwd()}/${appName}`]);
spawnSync('npm', ['install', '--prefix', `${process.cwd()}/${appName}`]);
console.log('Your app has been successfully installed');
console.log(`$ cd ${appName}`);
console.log('$ npm start');