This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {PORT, APP_DEST, APP_BASE, DIST_DIR} from '../../config'; | |
import * as browserSync from 'browser-sync'; | |
const proxy = require('proxy-middleware'); | |
let runServer = () => { | |
let baseDir = APP_DEST; | |
let routes:any = { | |
[`${APP_BASE}${APP_DEST}`]: APP_DEST, | |
[`${APP_BASE}node_modules`]: 'node_modules', | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ComponentRouter = function($stateProvider){ | |
this.state = function(name, options){ | |
var stateOptions = { | |
url: options.url | |
}; | |
var directiveInject = ''; | |
// create a controller to pass resolve arguments |