{"id":14975422,"url":"https://github.com/jquery/node-amd-builder","last_synced_at":"2025-10-19T11:30:18.595Z","repository":{"id":2129190,"uuid":"3072262","full_name":"jquery/node-amd-builder","owner":"jquery","description":"jQuery Mobile download builder, a Node.js service","archived":false,"fork":false,"pushed_at":"2023-07-18T23:28:07.000Z","size":425,"stargazers_count":7,"open_issues_count":5,"forks_count":8,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-09-28T20:22:30.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jquerymobile.com/download-builder/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dekatotoro/SlideMenuControllerSwift","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jquery.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-12-30T01:49:29.000Z","updated_at":"2024-04-04T19:40:40.000Z","dependencies_parsed_at":"2024-09-11T11:11:50.414Z","dependency_job_id":"a3f9ad7a-6dec-42b1-b618-62448077f4bb","html_url":"https://github.com/jquery/node-amd-builder","commit_stats":null,"previous_names":["gseguin/node-amd-builder"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery%2Fnode-amd-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery%2Fnode-amd-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery%2Fnode-amd-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery%2Fnode-amd-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jquery","download_url":"https://codeload.github.com/jquery/node-amd-builder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869249,"owners_count":16555572,"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-24T13:52:00.689Z","updated_at":"2025-10-19T11:30:18.235Z","avatar_url":"https://github.com/jquery.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"amd-builder\n==========\n\nThis project aims at providing a Node.s service to build bundles out of AMD projects in a Git repository. This was developed for building jQuery Mobile bundles.\nInitial checkout as well as workspace creation have to be done manually.\n\n* Frontend: \u003chttps://jquerymobile.com/download-builder/\u003e\n* API instance: \u003chttps://amd-builder.jquerymobile.com/\u003e\n\n## API v1\n\n### /v1/{project}/{repo}\n\nFetch the latest version of the repo from the default remote.\n\n### /v1/{project}/{repo}/{ref}\n\nForce checkout the ref into the {project}/{ref}/{repo} workspace if it exists.\n\n### /v1/dependencies/{project}/{repo}/{ref}\n\nTraces 1st level dependencies.\n\nURL arguments are:\n\n - ```baseUrl```: The baseUrl for module name to file resolution\n - ```names```: An optional comma separated list of modules to include in the dependency map. If it's not specified, the service will compute the dependency map for all the .js files in the ```baseUrl``` directory.\n\n### /v1/bundle/{project}/{repo}/{ref}/{name}?\n\n```name``` is the name of the file generated it defaults to ```repo```.js\n\n 1. ```name``` has extension .js (default) calls require.js to build the js bundle\n 1. ```name``` has extension .css will resolve css dependencies through the ```//css:``` metadata and return a css bundle\n 1. ```name``` has extension .zip will do all of the above in both optimize and non-optimized and return a zip file with 4 files in it\n\nBuilds a bundle for this repository's ref\n\nURL arguments are:\n\n - ```baseUrl```: The baseUrl for module name to file resolution\n - ```include```: A comma separated list of modules to include in the bundle\n - ```exclude```: A comma separated list of modules to exclude from the bundle\n - ```optimize```: true or false\n\n### Setup an instance for your project\n\nPerform all the following operations in the `node-amd-builder` main folder.\n\n1. Clone a bare repo of your project:\n    ```\n    mkdir repos\n    cd repos\n    git clone --bare git@github.com:yourname/yourproject.git\n    ```\n\n1. Now create the staging directory:\n    ```\n    mkdir -p staging\n    ```\n\n1. Install the dependencies with ```npm install```\n\n1. Start the service:\n    ```\n    node server.js -r \"$(pwd)/repos\" -s \"$(pwd)/staging\"\n    ```\n\n1. Add a post_receive hook to the your GitHub repo pointing at ```http://instance:3000/post_receive```\n\n### Setup an instance for jQuery Migrate\n\nPerform all the following operations in the `node-amd-builder` main folder. Make sure you use Node.js v14.14.0 or higher.\n\n1. Install the dependencies with `npm install`\n\n1. Invoke:\n    ```\n    scripts/setup-mobile.js\n    ```\n\n1. Start the service:\n    ```\n    node server.js -r \"$(pwd)/repos\" -s \"$(pwd)/staging\"\n    ```\n    Invoke just `node server.js --help` to see other available options.\n\n1. ~~Add a post_receive hook to the your GitHub repo pointing at `http://instance:3000/post_receive`~~ (only needed if you don't checkout tags manually as described above)\n\n## Author\n\n* Ghislain Seguin - [@gseguin](http://twitter.com/gseguin)\n\n[![endorse](http://api.coderwall.com/ghislain/endorse.png)](http://coderwall.com/ghislain)\n\n## Credits\n\nThanks to:\n\n* [Jive Software](https://jivesoftware.com) - my employer - for letting me work on cool projects like this\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjquery%2Fnode-amd-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjquery%2Fnode-amd-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjquery%2Fnode-amd-builder/lists"}