diff --git a/dist/npmts.assets.js b/dist/npmts.assets.js index 04f3605..aba9c7d 100644 --- a/dist/npmts.assets.js +++ b/dist/npmts.assets.js @@ -7,7 +7,7 @@ exports.run = function (configArg) { var config = configArg; plugins.beautylog.log("now looking at required assets"); if (config.cli == true) { - plugins.smartfile.copy(plugins.path.join(paths.npmtsAssetsDir, "cli.js"), paths.distDir); + plugins.smartfile.fsaction.copy(plugins.path.join(paths.npmtsAssetsDir, "cli.js"), paths.distDir); plugins.beautylog.ok("CLI asset has been installed!"); done.resolve(config); } diff --git a/dist/npmts.configfile.js b/dist/npmts.configfile.js index d7e091a..d3a50b0 100644 --- a/dist/npmts.configfile.js +++ b/dist/npmts.configfile.js @@ -8,7 +8,7 @@ exports.run = function () { var configPath = plugins.path.join(paths.cwd, "npmts.json"); if (plugins.smartfile.checks.fileExistsSync(configPath)) { plugins.beautylog.info("npmts.json".blue + " config file found!"); - config = plugins.smartfile.readFileToObject(configPath); + config = plugins.smartfile.local.toObjectSync(configPath); switch (config.mode) { case "default": case "custom": diff --git a/dist/npmts.install.js b/dist/npmts.install.js index 64c1197..2267060 100644 --- a/dist/npmts.install.js +++ b/dist/npmts.install.js @@ -9,7 +9,7 @@ exports.run = function (configArg) { * ----------- install typings --------------- * ----------------------------------------------- */ plugins.beautylog.log("now installing " + "typings".yellow); - var absoluteTypingsArray = plugins.smartpath.absolute(config.typings, paths.cwd); + var absoluteTypingsArray = plugins.smartpath.transform.toAbsolute(config.typings, paths.cwd); plugins.gulp.src(absoluteTypingsArray) .pipe(plugins.g.typings()) .pipe(plugins.g.gFunction(function () { diff --git a/package.json b/package.json index c47447e..192b3c3 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "homepage": "https://github.com/pushrocks/npmts#readme", "dependencies": { "beautylog": "3.1.2", - "fs-extra": "^0.26.5", + "fs-extra": "^0.26.7", "gulp": "3.9.1", "gulp-concat": "^2.6.0", "gulp-coveralls": "^0.1.4", @@ -37,15 +37,15 @@ "gulp-mocha": "^2.2.0", "gulp-sourcemaps": "^1.6.0", "gulp-typescript": "2.12.1", - "gulp-typings": "1.2.0", + "gulp-typings": "1.3.0", "merge2": "1.0.1", "projectinfo": "1.0.1", "q": "^1.4.1", "shelljs": "^0.6.0", "smartcli": "0.0.11", "smartenv": "1.2.0", - "smartfile": "1.0.1", - "smartpath": "2.1.0", + "smartfile": "2.1.1", + "smartpath": "3.0.0", "source-map-support": "^0.4.0" }, "devDependencies": {} diff --git a/ts/npmts.assets.ts b/ts/npmts.assets.ts index 3d36b17..4964095 100644 --- a/ts/npmts.assets.ts +++ b/ts/npmts.assets.ts @@ -7,7 +7,7 @@ export var run = function(configArg){ let config = configArg; plugins.beautylog.log("now looking at required assets"); if(config.cli == true){ - plugins.smartfile.copy(plugins.path.join(paths.npmtsAssetsDir,"cli.js"),paths.distDir); + plugins.smartfile.fsaction.copy(plugins.path.join(paths.npmtsAssetsDir,"cli.js"),paths.distDir); plugins.beautylog.ok("CLI asset has been installed!"); done.resolve(config); } else { diff --git a/ts/npmts.configfile.ts b/ts/npmts.configfile.ts index 8b748e0..69d3cc8 100644 --- a/ts/npmts.configfile.ts +++ b/ts/npmts.configfile.ts @@ -7,7 +7,7 @@ export var run = function(){ var configPath = plugins.path.join(paths.cwd,"npmts.json"); if(plugins.smartfile.checks.fileExistsSync(configPath)){ plugins.beautylog.info("npmts.json".blue + " config file found!"); - config = plugins.smartfile.readFileToObject(configPath); + config = plugins.smartfile.local.toObjectSync(configPath); switch (config.mode){ case "default": case "custom": diff --git a/ts/npmts.install.ts b/ts/npmts.install.ts index af3589e..b7fff30 100644 --- a/ts/npmts.install.ts +++ b/ts/npmts.install.ts @@ -8,7 +8,7 @@ export var run = function(configArg){ * ----------- install typings --------------- * ----------------------------------------------- */ plugins.beautylog.log("now installing " + "typings".yellow); - let absoluteTypingsArray = plugins.smartpath.absolute(config.typings,paths.cwd); + let absoluteTypingsArray = plugins.smartpath.transform.toAbsolute(config.typings,paths.cwd); plugins.gulp.src(absoluteTypingsArray) .pipe(plugins.g.typings()) .pipe(plugins.g.gFunction(function(){