simple-syncer
Version:
a command line browser syncer tool that helps your watch HTML, CSS, and JS files
26 lines (21 loc) • 400 B
JavaScript
#!/usr/bin/env node
const main = require('../lib')
const path = require('path')
const argv = require('yargs')
.version()
.option({
'd':{
alias: 'directory',
default: './',
describe: 'the directory you want to watch',
},
'p': {
alias: 'port',
default: '3000',
describe: 'the port you want to use',
}
}).argv
main({
port: argv.p,
directory: path.resolve(argv.d)
})