Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion elm-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ elmCss(
program.output,
program.module,
program.port,
program.pathToMake
program.pathToMake,
{}
)
.then(function(results) {
console.log(
Expand Down
13 changes: 7 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var KNOWN_MODULES =
"Css"
];

module.exports = function(projectDir, stylesheetsPath, outputDir, stylesheetsModule, stylesheetsPort, pathToMake) {
module.exports = function(projectDir, stylesheetsPath, outputDir, stylesheetsModule, stylesheetsPort, pathToMake, makeProcessOpts) {

var originalWorkingDir = process.cwd();
process.chdir(projectDir);
Expand All @@ -45,7 +45,8 @@ module.exports = function(projectDir, stylesheetsPath, outputDir, stylesheetsMod
outputDir,
stylesheetsModule || "Stylesheets",
stylesheetsPort || "files",
pathToMake
pathToMake,
makeProcessOpts || {}
);
})
.then(function(result) {
Expand All @@ -70,14 +71,14 @@ function createTmpDir() {
});
}

function generateCssFiles(stylesheetsPath, emitterDest, outputDir, stylesheetsModule, stylesheetsPort, pathToMake) {
return emit(stylesheetsPath, emitterDest, stylesheetsModule, stylesheetsPort, pathToMake)
function generateCssFiles(stylesheetsPath, emitterDest, outputDir, stylesheetsModule, stylesheetsPort, pathToMake, makeProcessOpts) {
return emit(stylesheetsPath, emitterDest, stylesheetsModule, stylesheetsPort, pathToMake, makeProcessOpts)
.then(writeResults(outputDir));
}

function emit(src, dest, stylesheetsModule, stylesheetsPort, pathToMake) {
function emit(src, dest, stylesheetsModule, stylesheetsPort, pathToMake, makeProcessOpts) {
// Compile the temporary file.
return compileEmitter(src, {output: dest, yes: true, pathToMake: pathToMake})
return compileEmitter(src, {output: dest, yes: true, pathToMake: pathToMake, processOpts: makeProcessOpts})
.then(extractCssResults(dest, stylesheetsModule, stylesheetsPort));
}

Expand Down