From 184b74b276bca8e62920fd27a45229c54f4b82b2 Mon Sep 17 00:00:00 2001 From: "T.S. Foster" Date: Mon, 17 Jun 2019 16:50:16 +0100 Subject: [PATCH] Rename --pathToMake to --pathToElm --- index.js | 10 +++++----- js/cli.js | 4 ++-- js/compile-all.js | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index d27854b..0339864 100644 --- a/index.js +++ b/index.js @@ -21,7 +21,7 @@ const jsEmitterFilename = "emitter.js"; module.exports = function( projectDir /*: string*/, outputDir /*: string */, - pathToMake /*: ?string */ + pathToElm /*: ?string */ ) { const cssSourceDir = path.join(projectDir, "css"); const cssElmPackageJson = path.join(cssSourceDir, "elm.json"); @@ -76,7 +76,7 @@ module.exports = function( return Promise.all([ writeGeneratedElmPackage(generatedDir, generatedSrc, cssSourceDir), makeGeneratedSrcDir, - compileAll(pathToMake, cssSourceDir, elmFilePaths) + compileAll(pathToElm, cssSourceDir, elmFilePaths) ]).then(function(promiseOutputs) { const repository /*: string */ = promiseOutputs[0]; @@ -107,7 +107,7 @@ module.exports = function( repository, path.join(generatedDir, jsEmitterFilename), generatedDir, - pathToMake + pathToElm ).then(writeResults(outputDir)); }); }); @@ -119,13 +119,13 @@ function emit( repository /*: string */, dest /*: string */, cwd /*: string */, - pathToMake /*: ?string */ + pathToElm /*: ?string */ ) { // Compile the js file. return compileEmitter(src, { output: dest, cwd: cwd, - pathToMake: pathToMake + pathToElm: pathToElm }) //.then(function() { // return hackMain(repository, dest); diff --git a/js/cli.js b/js/cli.js index f6efb12..a34bf24 100755 --- a/js/cli.js +++ b/js/cli.js @@ -17,7 +17,7 @@ program "(optional) directory in which to write CSS files. Defaults to build/", path.join(process.cwd(), "build") ) - .option("-m, --pathToMake [pathToMake]", "(optional) path to elm-make") + .option("-m, --pathToElm [pathToElm]", "(optional) path to elm") .parse(process.argv); const cssSourceDir = path.join(process.cwd(), "css"); @@ -34,7 +34,7 @@ const bar = _.repeat("-", headline.length); console.log("\n" + headline + "\n" + bar + "\n"); -elmCss(process.cwd(), program.output, program.pathToMake) +elmCss(process.cwd(), program.output, program.pathToElm) .then(function(results) { console.log(chalk.green("Success! I created these css files:")); results.forEach(function(result) { diff --git a/js/compile-all.js b/js/compile-all.js index 1ed3dae..236205d 100644 --- a/js/compile-all.js +++ b/js/compile-all.js @@ -11,7 +11,7 @@ const compile = require("node-elm-compiler").compile, // This compiles all the tests so that we generate *.elmi files for them, // which we can then read to determine which tests need to be run. module.exports = function compileAll( - pathToMake /*: ?string */, + pathToElm /*: ?string */, cwd /*: string */, testFilePaths /*: Array */ ) { @@ -20,7 +20,7 @@ module.exports = function compileAll( output: "/dev/null", verbose: false, cwd: cwd, - pathToMake: pathToMake, + pathToElm: pathToElm, processOpts: { stdio: ["ignore", "ignore", "inherit"] } });