{"id":16720925,"url":"https://github.com/yoavniran/grunt-systemjs-builder","last_synced_at":"2025-04-10T10:05:05.466Z","repository":{"id":34980512,"uuid":"39060333","full_name":"yoavniran/grunt-systemjs-builder","owner":"yoavniran","description":"grunt task for building systemjs based projects","archived":false,"fork":false,"pushed_at":"2017-03-13T08:00:24.000Z","size":943,"stargazers_count":6,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T08:55:03.573Z","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":"mangini/gdocs2md","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yoavniran.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":"2015-07-14T07:23:32.000Z","updated_at":"2016-12-08T00:57:45.000Z","dependencies_parsed_at":"2022-09-04T23:01:37.951Z","dependency_job_id":null,"html_url":"https://github.com/yoavniran/grunt-systemjs-builder","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Fgrunt-systemjs-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Fgrunt-systemjs-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Fgrunt-systemjs-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoavniran%2Fgrunt-systemjs-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoavniran","download_url":"https://codeload.github.com/yoavniran/grunt-systemjs-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198879,"owners_count":21063628,"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-10-12T22:27:29.885Z","updated_at":"2025-04-10T10:05:05.444Z","avatar_url":"https://github.com/yoavniran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/grunt-systemjs-builder.svg)](https://www.npmjs.com/package/grunt-systemjs-builder)\n\n# grunt-systemjs-builder\n\n## Getting started\n\n### To Install\n\n_npm install --save-dev grunt-systemjs-builder_\n\n### To register for grunt: \n\n_grunt.loadNpmTasks(\"grunt-systemjs-builder\");_\n\n## To run with grunt use the following command:\n\n_grunt systemjs_\n\n This is a [MultiTask](http://gruntjs.com/api/grunt.task#grunt.task.registermultitask) therefore it can run using different configuration using targets in the grunt configuration. see [grunt docs](http://gruntjs.com/configuring-tasks#task-configuration-and-targets) for more info.\n\n## Options\n\nIn essence, this grunt task simply passes along configuration to the [SystemJS Builder](https://github.com/systemjs/builder). You should familiarize yourself with its configuration [documentation](https://github.com/systemjs/builder/blob/master/README.md).\n\n### baseURL: string\n\n\"The baseURL provides a special mechanism for loading modules relative to a standard reference URL.\"\n\n[systemjs docs](https://github.com/systemjs/systemjs/blob/master/docs/overview.md#baseurl)\n\n_if baseURL is provided through the configuration, it will be the one used and any subsequent **baseURL** configuration (even) from a configFile will be ignored as systemjs only allows to configure baseURL once._\n\n### configFile: String\n\npath to an external configuration file (one with System.config(...) calls).\n\n### sfx: Boolean \n\u003e default: false\n\nCreate a [self-executing](https://github.com/systemjs/builder/blob/master/README.md#self-executing-sfx-bundles) bundle\n\n### minify: Boolean\n\u003e default: false\n\nshortcut for passing the [build](#buildObject) object with a minify property\n\n### sourceMaps: Boolean\n\u003e default: true\n\nshortcut for passing the [build](#buildObject) object with a sourceMapsproperty\n\n### builder: Object\n\nThe configuration that is allowed when creating the builder instance. Basically any valid systemjs configuration (same as calling System.config()).\nsee [builder documentation](https://github.com/systemjs/builder/blob/master/README.md).\n\n\u003ca id=\"buildObject\"\u003e\n### build: Object\n\nthe configuration that is allowed when running build or buildSFX\nsee [builder documentation](https://github.com/systemjs/builder/blob/master/README.md).\n\n## Files\n\nConfiguring the source and destination files is done in the standard grunt way using the \"files\" property of the target (see example below)\n\n## Example\n\n\n``` javascript\n\ngrunt.initConfig({\n\tsystemjs: {\n\t            options: {\n\t                sfx: true,\n\t                baseURL: \"./target\",\n\t                configFile: \"./target/config.js\",\n                \tminify: true,\n\t\t\t\t\tbuild: {\n\t\t\t\t\t  mangle: false\n\t\t\t\t\t}\n\t            },\n\t            dist: {\n\t                files: [{\n\t                    \"src\":  \"./target/src/init.js\",\n\t                    \"dest\": \"./target/bundles/app.min.js\"\n\t                }]\n\t            }\n\t        }\n});\n```\n\n## Change Log\n\n### 1.0.0\n\n* upgraded dependency on systemjs-builder to allow 0.16.x installs\n* upgraded grunt dependency to 1.0.1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoavniran%2Fgrunt-systemjs-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoavniran%2Fgrunt-systemjs-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoavniran%2Fgrunt-systemjs-builder/lists"}