[
  {
    "path": ".github/workflows/add-issue-to-triage-board.yml",
    "content": "name: 'Add issue/PR to Triage Board'\non:\n  issues:\n    types:\n      - opened\n  pull_request_target:\n    types:\n      - opened\njobs:\n  add-to-triage-project-board:\n    uses: cypress-io/cypress/.github/workflows/triage_add_to_project.yml@develop\n    secrets: inherit\n"
  },
  {
    "path": ".github/workflows/triage_closed_issue_comment.yml",
    "content": "name: 'Handle Comment Workflow'\non:\n  issue_comment:\n    types:\n      - created\njobs:\n  closed-issue-comment:\n    uses: cypress-io/cypress/.github/workflows/triage_handle_new_comments.yml@develop\n    secrets: inherit\n"
  },
  {
    "path": ".gitignore",
    "content": "node_modules\nyarn-error.log\n\nbuild/*\n!build/.keep\n**/.DS_Store"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2022 Adam Murray\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# Cypress Chrome Recorder Extension\n\n> 🔖 **Official Cypress Extension for Chrome DevTools Recorder.** <br/>\n> This project is maintained by the Cypress Team.\n\n<p align=\"center\">\n  <a href=\"https://cypress.io\">\n    <img width=\"140\" alt=\"Cypress Logo\" src=\"https://raw.githubusercontent.com/cypress-io/cypress/develop/npm/cypress-schematic/src/svgs/built-by-cypress.svg\" />\n    </a>\n</p>\n\n<img width=\"1009\" alt=\"export-as-cypress\" src=\"https://user-images.githubusercontent.com/5917927/185565270-2f3e9b34-4432-46a3-bafb-0cfe2e53377b.png\">\n\n---\n\nAdd [this Chrome Extension](https://chrome.google.com/webstore/detail/cypress-chrome-recorder/fellcphjglholofndfmmjmheedhomgin) to export DevTools Recordings as Cypress Tests directly from the [DevTools Recorder Panel](https://goo.gle/devtools-recorder).\n\n## Usage\n\n1. [Create a new recording](https://goo.gle/devtools-recorder#record) via the Recorder panel\n2. Hover over the [export](https://developer.chrome.com/docs/devtools/recorder/reference/#export-flows) icon\n3. Click \"Export as a Cypress Test\"\n4. Save file as {testName}.cy.{ts.js}\n\n## Testing\n\n1. Clone the repo, run `yarn` and run `yarn build`\n2. Visit chrome://extensions\n3. Enable \"Developer mode\" via toggle switch in upper right corner\n4. Click \"Load unpacked\" button in upper left corner\n5. Select the `build` directory produced by `yarn build`\n\n## Publishing\n\nAfter building and testing the extension locally, upload the build folder to Web Store.\n\n# Export in bulk programmatically\nAlternatively, use the [@cypress/chrome-recorder](https://github.com/cypress-io/cypress-chrome-recorder) CLI to export DevTools Recordings as Cypress Tests in bulk programmatically.\n"
  },
  {
    "path": "build/.keep",
    "content": ""
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"cypress-recorder-extension\",\n  \"version\": \"1.1.2\",\n  \"description\": \"\",\n  \"main\": \"dist/index.js\",\n  \"scripts\": {\n    \"test\": \"yarn test\",\n    \"build\": \"rsync -a src/*.json build/ && rsync -a src/*.html build/ && rsync -a src/img/*.png build/img/ && rollup --config rollup.config.js\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/admah/cypress-recorder-extension.git\"\n  },\n  \"keywords\": [\n    \"chrome\",\n    \"extension\",\n    \"cypress\",\n    \"automation\"\n  ],\n  \"author\": \"Cypress-io\",\n  \"license\": \"MIT\",\n  \"bugs\": {\n    \"url\": \"https://github.com/admah/cypress-recorder-extension/issues\"\n  },\n  \"homepage\": \"https://github.com/admah/cypress-recorder-extension#readme\",\n  \"dependencies\": {\n    \"@cypress/chrome-recorder\": \"^2.3.1\"\n  },\n  \"devDependencies\": {\n    \"@rollup/plugin-node-resolve\": \"^13.3.0\",\n    \"rollup\": \"^2.77.2\"\n  }\n}\n"
  },
  {
    "path": "rollup.config.js",
    "content": "import { nodeResolve } from '@rollup/plugin-node-resolve';\n\nexport default {\n  input: 'src/DevToolsPlugin.js',\n  output: {\n    file: 'build/DevToolsPlugin.js',\n    format: 'iife'\n  },\n  plugins: [nodeResolve({\n    resolveOnly: ['@cypress/chrome-recorder', '@puppeteer/replay']\n  })]\n};\n"
  },
  {
    "path": "src/DevToolsPlugin.html",
    "content": "<script type=\"module\" src=\"./DevToolsPlugin.js\"></script>"
  },
  {
    "path": "src/DevToolsPlugin.js",
    "content": "import { cypressStringifyChromeRecording, stringifyParsedStep } from '@cypress/chrome-recorder';\n\nexport class RecorderPlugin {\n  async stringify(recording) {\n    return await cypressStringifyChromeRecording(JSON.stringify(recording));\n  }\n\n  async stringifyStep(step) {\n    return await stringifyParsedStep(step);\n  }\n}\n\n/* eslint-disable no-undef */\nchrome.devtools.recorder.registerRecorderExtensionPlugin(\n  new RecorderPlugin(),\n  /* name=*/ 'Cypress Test',\n  /* mediaType=*/ 'application/javascript'\n);\n"
  },
  {
    "path": "src/manifest.json",
    "content": "{\n  \"manifest_version\": 3,\n  \"version\": \"1.1.1\",\n  \"name\": \"Cypress Chrome Recorder\",\n  \"description\": \"Cypress extension for DevTools that allows you to export tests directly from the Recorder panel.\",\n  \"permissions\": [],\n  \"icons\": {\n    \"16\": \"img/icon_16x16.png\",\n    \"32\": \"img/icon_32x32.png\",\n    \"48\": \"img/icon_48x48.png\",\n    \"128\": \"img/icon_128x128.png\"\n  },\n  \"devtools_page\": \"DevToolsPlugin.html\",\n  \"content_security_policy\": {\n    \"extension_pages\": \"script-src 'self'; object-src 'self'\"\n  },\n  \"minimum_chrome_version\": \"104.0.0.0\"\n}\n"
  }
]