mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-09 08:40:32 -06:00
* start including Cypress TypeScript definitions in CLI for #856 * document cy.type and cy.focused * document cy.document and Loggable * document cy.window() * document cy.trigger methods * document more interfaces * document Cypress object * cli: use existing build script for copying typescript definitions
17 lines
444 B
JavaScript
Executable File
17 lines
444 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const shell = require('shelljs')
|
|
|
|
shell.set('-v') // verbose
|
|
shell.set('-e') // any error is fatal
|
|
|
|
shell.rm('-rf', 'build')
|
|
shell.mkdir('-p', 'build/bin')
|
|
shell.cp('bin/cypress', 'build/bin/cypress')
|
|
shell.cp('NPM_README.md', 'build/README.md')
|
|
shell.cp('.release.json', 'build/.release.json')
|
|
shell.cp('index.d.ts', 'build/index.d.ts')
|
|
|
|
shell.exec('babel lib -d build/lib')
|
|
shell.exec('babel index.js -o build/index.js')
|