{"id":16678476,"url":"https://github.com/2fd/jspm-bower-endpoint","last_synced_at":"2025-03-21T18:32:06.542Z","repository":{"id":57286188,"uuid":"30514526","full_name":"2fd/jspm-bower-endpoint","owner":"2fd","description":"[unmaintained] Bower command-line adapter from jspm","archived":false,"fork":false,"pushed_at":"2016-05-12T01:14:48.000Z","size":46,"stargazers_count":21,"open_issues_count":12,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-13T13:29:29.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/2fd.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":"2015-02-09T02:15:37.000Z","updated_at":"2022-04-02T14:12:25.000Z","dependencies_parsed_at":"2022-08-29T06:44:21.178Z","dependency_job_id":null,"html_url":"https://github.com/2fd/jspm-bower-endpoint","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2fd%2Fjspm-bower-endpoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2fd%2Fjspm-bower-endpoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2fd%2Fjspm-bower-endpoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2fd%2Fjspm-bower-endpoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2fd","download_url":"https://codeload.github.com/2fd/jspm-bower-endpoint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221817523,"owners_count":16885555,"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-12T13:29:25.537Z","updated_at":"2024-10-28T10:35:02.328Z","avatar_url":"https://github.com/2fd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003e This project is not maintained and will be removed from NPM on January 1\n\n# JSPM Bower Endpoint\n[![License](https://img.shields.io/npm/l/jspm-bower-endpoint.svg?style=flat-square)](https://github.com/2fd/jspm-bower-endpoint/blob/master/LICENSE)\n[![Build Status](https://img.shields.io/travis/2fd/jspm-bower-endpoint.svg?style=flat-square)](https://travis-ci.org/2fd/jspm-bower-endpoint)\n[![NPM](https://img.shields.io/npm/v/jspm-bower-endpoint.svg?style=flat-square)](https://www.npmjs.com/package/jspm-bower-endpoint)\n\nBower command-line adapter from jspm\n\n## Install\n```bash\n    \n    npm install -g jspm-bower-endpoint\n   \n    # add registry endpoint\n    jspm registry create bower jspm-bower-endpoint\n\n    # jspm \u003c 0.15.0\n    # jspm endpoint create bower jspm-bower-endpoint\n    \n```\n\n## Use\n\n```bash\n\n\t# install bower package    \n    jspm install bower:skeleton\n\n    #install git+bower package\n    # jspm-bower-endpoint \u003e= v0.3.0\n    jspm install name=bower:http//github.com/user/package.git\n    jspm install name=bower:https://github.com/user/package.git\n    jspm install name=bower:git@github.com:user/package.git\n    \n    #install local file\n    # jspm-bower-endpoint \u003e= v0.2.0\n    jspm install name=bower:./file.js\n    jspm install name=bower:~/path/to/path/to/file.js\n    jspm install name=bower:/absolute/path/to/file.js\n    # jspm-bower-endpoint \u003e= v0.3.0\n    jspm install name=bower:file://absolute/path/to/file.js\n    \n    # install local folder package\n    # jspm-bower-endpoint \u003e= v0.2.0\n    jspm install name=bower:./local/folder\n    jspm install name=bower:~/path/to/local/folder\n    jspm install name=bower:/absolute/path/to/local/folder\n    # jspm-bower-endpoint \u003e= v0.3.0\n    jspm install name=bower:file://absolute/path/to/local/folder\n    \n```\n\n## Features\n\n### Automatic main resolve from bower\n\nFind and use the js file\n\n```javascript\n    \n    // bower.json\n    {\n        \"main\" : [\n            \"less/bootstrap.less\",\n            \"dist/css/bootstrap.css\",\n            \"dist/js/bootstrap.js\",\n            \"dist/fonts/glyphicons-halflings-regular.eot\",\n            \"dist/fonts/glyphicons-halflings-regular.svg\",\n            \"dist/fonts/glyphicons-halflings-regular.ttf\",\n            \"dist/fonts/glyphicons-halflings-regular.woff\",\n            \"dist/fonts/glyphicons-halflings-regular.woff2\"\n        ]\n    }\n    \n    //resolve\n    {\n        \"main\" : \"dist/js/bootstrap.js\"\n    }\n    \n```\n\nif main property not include js files but include a single css file, automatically added plugin dependency and include it\n\u003e jspm-bower-endpoint \u003e= 0.3.0\n\n```javascript\n    \n    // bower.json\n    {\n        \"main\": \"./css/font-awesome.css\"\n    }\n    \n    //resolve\n    {\n        \"main\" : \"./css/font-awesome.css!css\",\n        \"dependencies\": {\n            \"css\": \"jspm:css@*\"\n        }\n    }  \n    \n```\n\nUse `main:false` if cannot solve in a single file or main does not include a js|css file\n\n```javascript\n    \n    // bower.json\n    {\n       \"main\" : [\n           \"dist/js/bootstrap.js\",\n           \"dist/js/bootstrap.min.js\"\n       ]\n    }\n    \n    //resolve\n    {\n        \"main\" : false\n    }  \n    \n```\n\n\n### Automatic css dependencies\n\nIf main includes css files, the css-plugin is added to the dependencies\n\n```javascript\n    \n    // bower.json\n    {\n        \"main\" : [\n            \"less/bootstrap.less\",\n            \"dist/css/bootstrap.css\",\n            \"dist/js/bootstrap.js\",\n            \"dist/fonts/glyphicons-halflings-regular.eot\",\n            \"dist/fonts/glyphicons-halflings-regular.svg\",\n            \"dist/fonts/glyphicons-halflings-regular.ttf\",\n            \"dist/fonts/glyphicons-halflings-regular.woff\",\n            \"dist/fonts/glyphicons-halflings-regular.woff2\"\n        ],\n        \"dependencies\": {\n            \"jquery\": \"\u003e= 1.9.1\"\n        }\n    }\n    \n    //resolve\n    {\n        \"main\" : \"dist/js/bootstrap.js\",\n        \"dependencies\": {\n            \"jquery\": \"jquery@\u003e=1.9.1\",\n            \"css\": \"jspm:css@*\"\n        }\n    }\n    \n```\n\nIn the case of the package without js files is necessary install the css-plugin directly in project through run `jspm install css`\n```javascript\n    \n    // bower.json\n    {\n        \"main\": \"css/skeleton.css\",\n        \"dependencies\": {}\n    }\n    \n    //resolve\n    {\n        \"main\" : false,\n        \"dependencies\": {\n            \"css\": \"jspm:css@*\"\n        }\n    }  \n    \n```\n\n### Format property dynamically defined\n\u003e jspm-bower-endpoint \u003e= 0.2.0\n\nIf moduleType property is defined in bower package,\nthe format property can be defined properly\n\n```javascript\n    \n    // bower.json\n    {\n        \"moduleType\": [\n            \"amd\",\n            \"globals\",\n            \"node\"\n        ]\n    }\n    \n    //resolve\n    {\n        \"format\" : \"cjs\"\n    }  \n\n```\n\nBy default, global format is used.\nif you need use other format, use the override flag\n\n```bash\n    \n    ## Use jquery in amd mode\n    jspm install bower:jquery -o \"{ format:'amd', main:'src/jquery.js'}\"\n    jspm install name=bower:~/local/package -o \"{ format:'es6'}\"\n    \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2fd%2Fjspm-bower-endpoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2fd%2Fjspm-bower-endpoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2fd%2Fjspm-bower-endpoint/lists"}