{"id":18338747,"url":"https://github.com/tableflip/tabs","last_synced_at":"2025-04-09T20:35:48.733Z","repository":{"id":72911172,"uuid":"52803052","full_name":"tableflip/tabs","owner":"tableflip","description":":hammer: TABLEFLIP Automated Build System","archived":false,"fork":false,"pushed_at":"2017-11-10T11:25:55.000Z","size":143,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T12:46:45.161Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tableflip.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-29T15:47:53.000Z","updated_at":"2017-11-26T21:05:24.000Z","dependencies_parsed_at":"2023-06-12T04:45:52.705Z","dependency_job_id":null,"html_url":"https://github.com/tableflip/tabs","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Ftabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Ftabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Ftabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Ftabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tableflip","download_url":"https://codeload.github.com/tableflip/tabs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248108353,"owners_count":21049117,"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-05T20:15:04.439Z","updated_at":"2025-04-09T20:35:48.705Z","avatar_url":"https://github.com/tableflip.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TABS\n\nTABLEFLIP Automated Build System.\n\n## Getting started\n\n1. Install Node.js\n2. Install dependencies `npm install`\n3. (Optional) Add TABS config file `.tabsrc` (defaults below):\n\n    ```js\n    {\n      webhook: {\n        path: '/webhook',\n        secret: '(╯°□°）╯︵TABLEFLIP',\n        port: 7777\n      },\n      build: {\n        dir: './build'\n      }\n    }\n    ```\n4. Start the webhook `npm start`\n\n## Configure a site to be built\n\n1. Navigate to **Settings** for the repo\n2. In **Collaborators**, add `tableflip-tabs` as a collaborator with **write** access\n3. in **Webhooks \u0026 services** add a new webhook with the following info:\n    * Payload URL: `http://tabs.tableflip.io:7777/webhook`\n    * Content type: `application/json`\n    * Secret: **Retrieve from secrets.yaml for tabs-infrastructure project**\n\n## Programmatic usage\n\n**build.js**\n```js\nconst build = require('./build')\n\nconst repo = 'git@github.com:tableflip/tableflip-www.git'\nconst commit = 'a0342ede2ea56c799d8ad40937267ba2875e9d88'\nconst opts = {stdout: process.stdout, stderr: process.stderr}\n\nbuild(repo, commit, opts, (err, info) =\u003e {\n  console.log(`Built in ${info.dir}`)\n})\n```\n\n**deploy.js**\n```js\nconst deploy = require('./deploy')\n\nconst dir = '/path/to/built/tableflip-www'\nconst repo = 'https://github.com/tableflip/tableflip-www.git'\nconst opts = {stdout: process.stdout, stderr: process.stderr}\n\n// Deploy built `dir` to `repo` on `branch`\ndeploy(dir, repo, 'gh-pages', opts, (err) =\u003e {\n  console.log(`Deployed`)\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftableflip%2Ftabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftableflip%2Ftabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftableflip%2Ftabs/lists"}