Skip to content

I want to run hashly inside a js with shelljs #37

@dientuki

Description

@dientuki

Hi, i want to run hashly inside a build-all.js file and it's dosn't work.

This is my code.

var shell = require('shelljs');
config.push(input + ' ' + output);
config.push("--base-dir " + process.env.PWD);
config.push("--manifest-format \"json\"");
config.push("--rename-format \"{basename}-{hash}{extname}\"");
config.push("--verbose");
config.push("--amend");

shell.exec("hashly " + config.join(" "));

and this is my line

hashly css/ dist/ --base-dir $PWD --manifest-format \"json\" --rename-format \"{basename}-{hash}{extname}\" --verbose --amend

with npm run works fine, buts inside the script with shelljs nop.

any help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions