{"id":15198695,"url":"https://github.com/bwin/grunt-asar","last_synced_at":"2025-10-02T13:31:35.899Z","repository":{"id":23938125,"uuid":"27319485","full_name":"bwin/grunt-asar","owner":"bwin","description":"Grunt plugin to generate asar archives for atom-shell.","archived":true,"fork":false,"pushed_at":"2015-12-17T22:35:25.000Z","size":24,"stargazers_count":14,"open_issues_count":4,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-25T00:33:11.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bwin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-30T00:25:31.000Z","updated_at":"2024-05-10T15:15:05.000Z","dependencies_parsed_at":"2022-07-16T00:00:30.819Z","dependency_job_id":null,"html_url":"https://github.com/bwin/grunt-asar","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwin%2Fgrunt-asar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwin%2Fgrunt-asar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwin%2Fgrunt-asar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwin%2Fgrunt-asar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwin","download_url":"https://codeload.github.com/bwin/grunt-asar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219875712,"owners_count":16554705,"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-09-28T01:24:32.316Z","updated_at":"2025-10-02T13:31:30.535Z","avatar_url":"https://github.com/bwin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-asar\n\n[![build status](http://img.shields.io/travis/bwin/grunt-asar/master.svg?style=flat-square)](https://travis-ci.org/bwin/grunt-asar)\n[![dependencies](http://img.shields.io/david/bwin/grunt-asar.svg?style=flat-square)](https://david-dm.org/bwin/grunt-asar)\n[![npm version](http://img.shields.io/npm/v/grunt-asar.svg?style=flat-square)](https://npmjs.org/package/grunt-asar)\n\n\u003e Grunt plugin to generate atom-shell asar packages.\n\nThis exposes just the most basic functionality at the moment. Convert a whole directory into an [asar](https://github.com/atom/asar) archive. Symbolic links are currently not tested.\n\nNow supports grunt file expansion.\n\n## Getting Started\nThis plugin requires Grunt `~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-asar --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-asar');\n```\n\n## The \"asar\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `asar` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  asar: {\n    your_target: {\n      // Target-specific file lists and/or options go here.\n      files: {\n        // Your simple dir-to-file mappings go here\n        // 'archivename.asar': ['some/path'],\n      },\n    },\n    your_advanced_target: {\n      // Your expanding patterns go like this\n      // cwd: 'some/path',\n      // src: ['**/*'],\n      // expand: true,\n      // dest: 'archivename.asar'\n    },\n  },\n});\n```\n\n### Usage Examples\n\n```js\ngrunt.initConfig({\n  asar: {\n    all: { // target\n      files: {\n        'app.asar': ['app/'],\n        'modules.asar': ['node_modules/'],\n      },\n    },\n  },\n});\n```\n\nThe same example with targets for each archive.\n\n```js\ngrunt.initConfig({\n  asar: {\n    app: { // target\n      files: {\n        'app.asar': ['app/'],\n      },\n    },\n    modules: { // target\n      files: {\n        'modules.asar': ['node_modules/'],\n      },\n    },\n  },\n});\n```\n\nYou can also use grunt file expansion to filter.\n\n```js\ngrunt.initConfig({\n  asar: {\n    my_app: {\n      cwd: 'some/path',\n      // Skip png's and the folder 'dir1' and its contents.\n      src: ['**/*', '!**/*.png', '!dir1', '!dir1/**/*'],\n      expand: true,\n      dest: 'my_app.asar'\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwin%2Fgrunt-asar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwin%2Fgrunt-asar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwin%2Fgrunt-asar/lists"}