{"id":27398826,"url":"https://github.com/frontainer/npm-tasks","last_synced_at":"2025-04-14T01:52:20.166Z","repository":{"id":65465194,"uuid":"66246978","full_name":"frontainer/npm-tasks","owner":"frontainer","description":"power-up npm scripts for task runner","archived":false,"fork":false,"pushed_at":"2016-10-08T01:22:25.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T00:41:23.851Z","etag":null,"topics":["npm-scripts"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frontainer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-22T06:48:55.000Z","updated_at":"2017-02-19T10:16:24.000Z","dependencies_parsed_at":"2023-01-24T17:45:23.243Z","dependency_job_id":null,"html_url":"https://github.com/frontainer/npm-tasks","commit_stats":null,"previous_names":["frontainer/npm-tasks"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frontainer%2Fnpm-tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frontainer%2Fnpm-tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frontainer%2Fnpm-tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frontainer%2Fnpm-tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frontainer","download_url":"https://codeload.github.com/frontainer/npm-tasks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809033,"owners_count":21164895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["npm-scripts"],"created_at":"2025-04-14T01:52:19.587Z","updated_at":"2025-04-14T01:52:20.146Z","avatar_url":"https://github.com/frontainer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm-tasks\n\npower-up npm scripts for task runner.\n\n## Required\n\nNode.js =\u003c 5.0\n\n## Install\n\nLocal Install\n\n```\nnpm i npm-tasks --save-dev\n```\n\nGlobal Install\n\n```\nnpm i npm-tasks -g\n```\n\n## Usage\n\ncreate `task.conf.js`\n\n```\nmodule.exports = {\n    config: {\n        sassSrc: \"/path/to/sass\",\n        destSass: \"/dest/to/sass\"\n    },\n    task: {\n        \"sass\": \"node-sass ${sassSrc} --output ${destSass}\"\n    }\n};\n```\n\n- config: Variables in task command. Replacing `${key}` by value.\n- task: Task command. npm-tasks adds node_modules/.bin to the PATH provided to scripts.\n\n## Example\n\npackage.json\n\n```\n{\n    ...\n    scripts: {\n        \"build\": \"tasks build:*\",\n        \"build:task1\": \"tasks sass\",\n        \"build:task2\": \"npm-tasks sass\"\n    }\n}\n```\n\nYou can use wildcard. ex `tasks build:*` -\u003e `tasks build:tasks1 \u0026 tasks build:tasks2`\n\n※ `tasks` is `npm-tasks` alias.\n\n```\nnpm run sass\n```\n\n※ `npm run sass` -\u003e `tasks sass` -\u003e `node-sass /path/to/sass --output /dest/to/sass`\n\n## Sync Tasks\n\n```\n{\n    ...\n    scripts: {\n        \"build\": \"tasks sass postcss\",\n        \"sass\": \"tasks sass\",\n        \"postcsss\": \"tasks postcss\"\n    }\n}\n```\n\n## Case Example\n\n- [default-greyhounds](https://github.com/frontainer/default-greyhounds)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontainer%2Fnpm-tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrontainer%2Fnpm-tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontainer%2Fnpm-tasks/lists"}