manus-skills/.kortix/opencode/skills/coding/cypress-skill/scripts/scaffold-project.sh
zhukang 1c7abd81d1 All 310 Manus skill-hub community skills as a Kortix marketplace registry
- 310 registry:skill items, 1528 files, 7 categories (hub tags)
- registry.json generated by @kortix/registry buildRegistry
- nested SKILL.md in sn-da-* renamed SUBSKILL.md (no phantom skills)
- provenance + licenses: SOURCES.md
2026-09-15 13:37:20 +08:00

37 lines
870 B
Bash

#!/bin/bash
set -e
PROJECT_NAME="${1:-cypress-project}"
if [ -d "$PROJECT_NAME" ]; then echo "Error: Directory exists"; exit 2; fi
command -v npx >/dev/null 2>&1 || { echo "Error: npx not found"; exit 1; }
mkdir -p "$PROJECT_NAME"
cd "$PROJECT_NAME"
npm init -y > /dev/null 2>&1
npm install cypress --save-dev
mkdir -p cypress/e2e cypress/support cypress/fixtures
cat > cypress.config.js << 'EOF'
const { defineConfig } = require('cypress');
module.exports = defineConfig({
e2e: {
baseUrl: 'http://localhost:3000',
viewportWidth: 1280,
viewportHeight: 720,
video: false,
screenshotOnRunFailure: true,
},
});
EOF
cat > cypress/e2e/example.cy.js << 'EOF'
describe('Example', () => {
it('visits the app', () => {
cy.visit('/');
cy.get('h1').should('be.visible');
});
});
EOF
echo "✅ Cypress project '$PROJECT_NAME' created"
exit 0