{"_id":"@testla/create-screenplay","_rev":"35-6e7d24450ced867e72acc4886deefdb2","name":"@testla/create-screenplay","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@testla/create-screenplay","version":"1.0.0","keywords":["testla","screenplay","init","scaffold","playwright"],"author":"","license":"MIT","_id":"@testla/create-screenplay@1.0.0","maintainers":[{"name":"kbrueckner","email":"kenji.brueckner@gmail.com"},{"name":"munichbughunter","email":"munichbughunter@gmail.com"}],"homepage":"https://github.com/testla-project/create-testla-screenplay#readme","bugs":{"url":"https://github.com/testla-project/create-testla-screenplay/issues"},"bin":{"create-screenplay":"bin/index.js"},"dist":{"shasum":"5117cd30e04d5993f6899694fdb1d521fe6052a3","tarball":"https://registry.npmjs.org/@testla/create-screenplay/-/create-screenplay-1.0.0.tgz","fileCount":15,"integrity":"sha512-+Cjpuiy/CuGI4YOr3e5rbeMOXF6OMWrLXnHoHnZnShDEHil/cdEGIdbqIxQOal3wYXVY5JnYwIxZmUo9x04YJg==","signatures":[{"sig":"MEQCIGNlwPV9zhx5BbKLTEcqGh+rTkSUWG4gcnL3izDPEVD3AiBQyW7n10/NL5pyB4MLeFh//VtmvC4AJVTK21plkVXhig==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21938},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"109ca4bd10aeee7d29fadb4962b39c68a732ad58","_npmUser":{"name":"munichbughunter","actor":{"name":"munichbughunter","type":"user","email":"munichbughunter@gmail.com"},"email":"munichbughunter@gmail.com"},"repository":{"url":"git+https://github.com/testla-project/create-testla-screenplay.git","type":"git"},"_npmVersion":"10.7.0","description":"Scaffold tool for testla-screenplay projects","directories":{},"_nodeVersion":"20.15.1","dependencies":{"chalk":"^5.0.0","fs-extra":"^11.0.0","inquirer":"^9.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/create-screenplay_1.0.0_1751611417362_0.05994394592006058","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@testla/create-screenplay","version":"1.1.0","keywords":["testla","screenplay","init","scaffold","playwright"],"author":"","license":"MIT","_id":"@testla/create-screenplay@1.1.0","maintainers":[{"name":"kbrueckner","email":"kenji.brueckner@gmail.com"},{"name":"munichbughunter","email":"munichbughunter@gmail.com"}],"homepage":"https://github.com/testla-project/create-testla-screenplay#readme","bugs":{"url":"https://github.com/testla-project/create-testla-screenplay/issues"},"bin":{"create-screenplay":"bin/index.js"},"dist":{"shasum":"a467088b4a718c3a0a1a0055ac0c13e4d5f67acc","tarball":"https://registry.npmjs.org/@testla/create-screenplay/-/create-screenplay-1.1.0.tgz","fileCount":15,"integrity":"sha512-v3Wm2t+nG3YHeU3IHWhkd/xguuwYLLv2yuNHssxqOecJ6a7gDsCfxcQt/oL9szAvJtU78gPcLXo23pahfpYxyQ==","signatures":[{"sig":"MEUCIFOse0kdUgux0WPDglqEwAycbEsMaRrAnNicptO/+gl4AiEAjla7HVE31re0loJUkNDoIVfNt6Rh15/4x7cPvfnTsHI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22232},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"dff6315c2d99e894d88159218d4f84417de2c166","_npmUser":{"name":"munichbughunter","email":"munichbughunter@gmail.com"},"repository":{"url":"git+https://github.com/testla-project/create-testla-screenplay.git","type":"git"},"_npmVersion":"10.7.0","description":"Scaffold tool for testla-screenplay projects","directories":{},"_nodeVersion":"20.15.1","dependencies":{"chalk":"^5.0.0","fs-extra":"^11.0.0","inquirer":"^9.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/create-screenplay_1.1.0_1753082247579_0.17440706481858048","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@testla/create-screenplay","version":"1.2.0","description":"Scaffold tool for testla-screenplay projects","bin":{"create-screenplay":"bin/index.js"},"keywords":["testla","screenplay","init","scaffold","playwright"],"author":"","license":"MIT","dependencies":{"chalk":"^5.0.0","fs-extra":"^11.0.0","inquirer":"^9.0.0"},"engines":{"node":">=18.0.0"},"type":"module","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/testla-project/create-testla-screenplay.git"},"bugs":{"url":"https://github.com/testla-project/create-testla-screenplay/issues"},"homepage":"https://github.com/testla-project/create-testla-screenplay#readme","_id":"@testla/create-screenplay@1.2.0","gitHead":"14af20b69bd78eaaae126423cdce06e20a9990b4","_nodeVersion":"24.9.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-sfMEMkxBq3DFiEwEz922oOJ0zOv+BMLHxsGeT0f1cHjCTgt/1EuKE7MgU4lke7bvMKxHJpGYIpwat7LLgq8N2A==","shasum":"1915fb3222ac5fe3dbcef79cb5c15c879a69717a","tarball":"https://registry.npmjs.org/@testla/create-screenplay/-/create-screenplay-1.2.0.tgz","fileCount":15,"unpackedSize":22865,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCR9RDDlFGa3TwnUEVaPxAO8xKmkcOwv+2k/gCpgtDkWQIgXBZ+m3UWfcsNyxUQ/mtcK951Owlucl+XlhUsG48G6+Q="}]},"_npmUser":{"name":"munichbughunter","email":"munichbughunter@gmail.com"},"directories":{},"maintainers":[{"name":"kbrueckner","email":"kenji.brueckner@gmail.com"},{"name":"munichbughunter","email":"munichbughunter@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/create-screenplay_1.2.0_1773428381335_0.5031447864492791"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-04T06:43:37.299Z","modified":"2026-03-13T18:59:41.636Z","1.0.0-alpha.1":"2025-07-03T11:05:36.484Z","1.0.0-alpha.2":"2025-07-03T11:22:15.420Z","1.0.0-alpha.3":"2025-07-03T11:29:45.206Z","1.0.0-alpha.4":"2025-07-03T11:36:29.028Z","1.0.0-alpha.5":"2025-07-03T11:40:29.250Z","1.0.0-alpha.6":"2025-07-03T11:44:29.173Z","1.0.0-alpha.7":"2025-07-03T11:49:48.208Z","1.0.0-alpha.8":"2025-07-04T06:24:37.180Z","1.0.0-alpha.9":"2025-07-04T06:34:13.590Z","1.0.0-alpha.10":"2025-07-04T06:37:52.150Z","1.0.0-alpha.11":"2025-07-04T06:39:11.022Z","1.0.0":"2025-07-04T06:43:37.537Z","1.1.0-alpha":"2025-07-21T06:14:07.676Z","1.1.0-alpha-1":"2025-07-21T06:25:39.046Z","1.1.0":"2025-07-21T07:17:27.741Z","1.2.0":"2026-03-13T18:59:41.486Z"},"bugs":{"url":"https://github.com/testla-project/create-testla-screenplay/issues"},"license":"MIT","homepage":"https://github.com/testla-project/create-testla-screenplay#readme","keywords":["testla","screenplay","init","scaffold","playwright"],"repository":{"type":"git","url":"git+https://github.com/testla-project/create-testla-screenplay.git"},"description":"Scaffold tool for testla-screenplay projects","maintainers":[{"name":"kbrueckner","email":"kenji.brueckner@gmail.com"},{"name":"munichbughunter","email":"munichbughunter@gmail.com"}],"readme":"# **🎭 Create Testla Screenplay - CLI tool for quickly creating Testla Screenplay projects with Playwright 🎭**\n\nThis package provides an initializer to interactively and automatically set up new Testla Screenplay projects with Playwright.\n\n## Usage\n\nYou can create a new Testla Screenplay project using one of the following commands:\n\n```bash\n# In the current directory (recommended: create an empty directory first)\nnpm init @testla/screenplay\nnpx @testla/create-screenplay\nyarn create @testla/screenplay\npnpm create @testla/screenplay\n```\n\nThe tool uses the current directory name as the project name and sets up the project structure there.\n\n**Example:**\n```bash\nmkdir my-tests\ncd my-tests\nnpm init @testla/screenplay\n# Project name is \"my-tests\"\n```\n\n## What happens when you run it?\n\n1. **Interactive configuration (prompts):**\n   - Name of the test directory (default: `tests`)\n   - Base URL of the application under test\n   - Browser (chromium, firefox, webkit)\n   - Headless mode (default: true)\n   - Reporter (testla-reporter, html, junit, json, list, dot)\n\n2. **Project structure is created:**\n   ```\n   <project-directory>/\n   ├── <tests>/                  # Test files (e.g. example.spec.ts)\n   ├── screenplay/\n   │   ├── tasks/                # Example task\n   │   ├── actions/              # (empty)\n   │   ├── questions/            # (empty)\n   │   └── screens/              # Example screen\n   ├── fixtures/                 # Test actor\n   ├── playwright.config.ts      # Playwright configuration\n   ├── .env                      # Environment variables\n   ├── .gitignore                # Git ignore\n   ├── README.md                 # Project documentation (generated)\n   └── package.json\n   ```\n\n3. **Dependencies are installed:**\n   - `@playwright/test`\n   - `@testla/screenplay-playwright`\n   - `dotenv`\n   - `@types/node` (dev)\n\n4. **Configuration and example files are generated:**\n   - Playwright configuration (`playwright.config.ts`)\n   - `.env` file with your settings\n   - Example test, demo task, demo screen, fixtures\n   - Project-specific README (replaces this file in the target project)\n\n5. **package.json is updated:**\n   - Script: `test` → `npx playwright test`\n\n## Features\n\n- 🛠️ Interactive setup with sensible defaults\n- 📁 Automatic folder structure following the Screenplay pattern\n- 🚀 Ready to use with example code and configuration\n- 🌐 Multi-browser support (Chromium, Firefox, WebKit)\n- 📚 Generates a README for the new project\n\n## Example output after successful setup\n\n```\n✔ Success! Created a Testla Screenplay project at /path/to/project\n\nWe suggest that you begin by typing:\n\nnpm test\nRuns the end-to-end tests.\n\nAnd check out the following files:\n- ./<tests>/example.spec.ts - Example test\n- ./fixtures/user.ts - Definition of the Actor\n- ./screenplay/tasks/demo-task.ts - Example task\n- ./screenplay/screens/demo-screen.ts - Example screen\n- ./playwright.config.ts - Playwright configuration\n- ./.env - Environment variables\n\n✨ More info: https://github.com/testla-project/testla-screenplay-playwright-js/tree/main/docs ✨\n\n🚀 Discord: https://discord.gg/MDRjCH3v 🚀\n\nHappy hacking! 🎭\n```\n\n## Requirements\n\n- Node.js 18.0.0 or higher\n- npm, yarn, or pnpm\n\n## Links\n\n- [Testla Screenplay Playwright](https://github.com/testla-project/testla-screenplay-playwright-js/)\n- [Discord Community](https://discord.gg/MDRjCH3v)\n\n## License\n\nMIT","readmeFilename":"README.md"}