Alexey Velikiy
7 years ago
committed by
GitHub
9 changed files with 42 additions and 27533 deletions
@ -1,4 +1,14 @@
|
||||
var base = require('./webpack.base.conf'); |
||||
|
||||
base.watch = true; |
||||
|
||||
base.externals = [ |
||||
function(context, request, callback) { |
||||
if(request[0] == '.') { |
||||
callback(); |
||||
} else { |
||||
callback(null, "require('" + request + "')"); |
||||
} |
||||
} |
||||
] |
||||
module.exports = base; |
File diff suppressed because one or more lines are too long
@ -1,9 +1,8 @@
|
||||
import * as path from 'path'; |
||||
|
||||
const DATA_PATH = path.join(__dirname, '../data'); |
||||
const ANALYTICS_PATH = path.join(__dirname, '../../src'); |
||||
const ANOMALIES_PATH = path.join(ANALYTICS_PATH, 'anomalies'); |
||||
const SEGMENTS_PATH = path.join(ANALYTICS_PATH, 'segments'); |
||||
const METRICS_PATH = path.join(ANALYTICS_PATH, 'metrics'); |
||||
export const ANALYTICS_PATH = path.join(__dirname, '../../src'); |
||||
|
||||
export { DATA_PATH, ANALYTICS_PATH, ANOMALIES_PATH, SEGMENTS_PATH, METRICS_PATH } |
||||
export const DATA_PATH = path.join(__dirname, '../../data'); |
||||
export const ANOMALIES_PATH = path.join(DATA_PATH, 'anomalies'); |
||||
export const SEGMENTS_PATH = path.join(DATA_PATH, 'segments'); |
||||
export const METRICS_PATH = path.join(DATA_PATH, 'metrics'); |
||||
|
@ -0,0 +1,14 @@
|
||||
import * as config from '../config' |
||||
import * as fs from 'fs'; |
||||
|
||||
|
||||
|
||||
export function checkDataFolders() { |
||||
if(fs.existsSync(config.DATA_PATH)) { |
||||
return; |
||||
} |
||||
fs.mkdirSync(config.DATA_PATH); |
||||
fs.mkdirSync(config.ANOMALIES_PATH); |
||||
fs.mkdirSync(config.SEGMENTS_PATH); |
||||
fs.mkdirSync(config.METRICS_PATH); |
||||
} |
Loading…
Reference in new issue