-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update packages/example deployment script and cleanup package/example #25091
Changes from all commits
213c284
ffc7264
a6820c7
5eacce9
e67220f
3451741
7efe65a
64a666b
30e2728
da8cd6b
6aca23c
32bb974
b99869f
835d182
f31e8a1
c84c1ff
787ad8b
c5b7da5
0d319b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// *********************************************************** | ||
// This example support/component.js is processed and | ||
// loaded automatically before your test files. | ||
// | ||
// This is a great place to put global configuration and | ||
// behavior that modifies Cypress. | ||
// | ||
// You can change the location of this file or turn off | ||
// automatically serving support files with the | ||
// 'supportFile' configuration option. | ||
// | ||
// You can read more here: | ||
// https://on.cypress.io/configuration | ||
// *********************************************************** | ||
|
||
// Import commands.js using ES2015 syntax: | ||
import './commands' | ||
|
||
// Alternatively you can use CommonJS syntax: | ||
// require('./commands') |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// *********************************************************** | ||
// This example support/e2e.js is processed and | ||
// loaded automatically before your test files. | ||
// | ||
// This is a great place to put global configuration and | ||
// behavior that modifies Cypress. | ||
// | ||
// You can change the location of this file or turn off | ||
// automatically serving support files with the | ||
// 'supportFile' configuration option. | ||
// | ||
// You can read more here: | ||
// https://on.cypress.io/configuration | ||
// *********************************************************** | ||
|
||
// Import commands.js using ES2015 syntax: | ||
import './commands' | ||
|
||
// Alternatively you can use CommonJS syntax: | ||
// require('./commands') |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
#!/usr/bin/env node | ||
|
||
/* eslint-disable no-console */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did we need this? I don't see any There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see lines 31 & 34 |
||
|
||
const resolvePkg = require('resolve-pkg') | ||
const { join } = require('path') | ||
const fs = require('fs-extra') | ||
const path = require('path') | ||
const glob = require('glob') | ||
const util = require('util') | ||
const childProcess = require('child_process') | ||
|
||
const EXAMPLE_DIR = path.join(__dirname, '..') | ||
const globAsync = util.promisify(glob) | ||
|
||
async function build() { | ||
async function build () { | ||
await Promise.all([ | ||
fs.remove(path.join(EXAMPLE_DIR, 'app')), | ||
fs.remove(path.join(EXAMPLE_DIR, 'cypress')) | ||
fs.remove(path.join(EXAMPLE_DIR, 'cypress')), | ||
]) | ||
|
||
await Promise.all([ | ||
fs.copy(join(resolvePkg('cypress-example-kitchensink'), 'app'), path.join(EXAMPLE_DIR, 'app')), | ||
fs.copy(join(resolvePkg('cypress-example-kitchensink'), 'cypress'), path.join(EXAMPLE_DIR, 'cypress')), | ||
]) | ||
|
||
childProcess.execSync('node ./bin/convert.js', { | ||
cwd: EXAMPLE_DIR, | ||
stdio: 'inherit' | ||
stdio: 'inherit', | ||
}) | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
module.exports = { | ||
"projectId": "2pz86o" | ||
'projectId': '2pz86o', | ||
} | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { default } from './lib/example' | ||
export { default } from './lib/example' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
declare const example: { | ||
getPathToExamples(): Promise<string[]>; | ||
getPathToE2E(): string; | ||
getPathToPlugins(): string; | ||
getPathToTsConfig(): string; | ||
getPathToFixture(): string; | ||
getPathToE2E(): string | ||
} | ||
|
||
export default example; | ||
export default example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should deprecate this library, it has a total for 44 weekly downloads: https://www.npmjs.com/package/create-cypress-tests?activeTab=versions