Comparing version 0.1.3 to 0.1.4
@@ -6,3 +6,3 @@ /** | ||
const run = require('../index.js'); | ||
const run = require('../index.js').run; | ||
@@ -16,2 +16,2 @@ process.once("uncaughtException", err => { | ||
run(process.argv[1]); | ||
run(process.argv[1]); |
12
index.js
/** | ||
* Created by Roman Spiridonov <romars@phystech.edu> on 7/15/2017. | ||
*/ | ||
const gulp = require('gulp'); | ||
"use strict"; | ||
require('./gulpfile'); | ||
const gulp = require('gulp'), | ||
nconf = require('config').nconf; | ||
module.exports = function run(task) { | ||
module.exports = function main(userConfig) { | ||
require('./gulpfile'); | ||
nconf.use('user', userConfig); | ||
}; | ||
module.exports.run = function run(task) { | ||
gulp.start(task || 'default'); | ||
}; |
{ | ||
"name": "pagegenjs", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Page generator using JavaScript on client and server.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165814
2094