{"id":19448270,"url":"https://github.com/csbun/grunt-cmd","last_synced_at":"2025-02-25T08:53:06.269Z","repository":{"id":15464602,"uuid":"18197787","full_name":"csbun/grunt-cmd","owner":"csbun","description":null,"archived":false,"fork":false,"pushed_at":"2016-06-06T09:57:19.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T03:37:09.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csbun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-28T01:44:12.000Z","updated_at":"2016-02-21T02:02:28.000Z","dependencies_parsed_at":"2022-09-07T05:41:36.612Z","dependency_job_id":null,"html_url":"https://github.com/csbun/grunt-cmd","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csbun%2Fgrunt-cmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csbun%2Fgrunt-cmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csbun%2Fgrunt-cmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csbun%2Fgrunt-cmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csbun","download_url":"https://codeload.github.com/csbun/grunt-cmd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240636664,"owners_count":19832922,"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":[],"created_at":"2024-11-10T16:25:43.773Z","updated_at":"2025-02-25T08:53:06.251Z","avatar_url":"https://github.com/csbun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-cmd\n\n\u003e CMD Module Compiler.\n\n## Getting Started\nThis plugin requires Grunt `\u003e=0.4.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-cmd --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-cmd');\n```\n\n## The \"cmd\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `cmd` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  cmd: {\n    options: {\n      base: 'tmp/src',\n      shim: {}\n    },\n    all: {\n      src: ['tmp/src/**/*.js'],\n      ignores: [],\n      dest: 'tmp/compiled'\n    }\n  },\n});\n```\n\n### Options\n\n#### options.base\nType: `String`\nDefault value: `''`\n\nsame to `base` in seajs.config\n\n#### options.shim\nType: `Object`\nDefault value: `{}`\n\nsame to `alias` in seajs.config\n\n### Usage Examples\n```js\ngrunt.initConfig({\n  cmd: {\n    options: {\n      base: 'tmp/src',\n      shim: {\n      \t'jquery': 'tmp/lib/jquery.js'\n      }\n    },\n    all: {\n      src: ['tmp/src/**/*.js'],\n      ignores: ['tmp/src/**/*.min.js'],\n      dest: 'tmp/compiled'\n    }\n  },\n});\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n_(Nothing yet)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsbun%2Fgrunt-cmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsbun%2Fgrunt-cmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsbun%2Fgrunt-cmd/lists"}