generated from ExpediaGroup/new-project
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d652a1
commit c7fe315
Showing
32 changed files
with
142 additions
and
8,363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,31 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
publish: | ||
name: Semantic Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v3 | ||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- name: Setup node and pnpm cache | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: pnpm | ||
node-version: latest | ||
|
||
- name: Install | ||
run: pnpm install | ||
- name: Install Dependencies | ||
run: bun install | ||
|
||
- name: Set Version Environment Variable | ||
run: | | ||
VERSION_TAG=$(echo "${GITHUB_REF}" | cut -d "/" -f3) | ||
echo NEW_VERSION="${VERSION_TAG:1}" >> $GITHUB_ENV | ||
- name: Publish | ||
run: | | ||
echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} >> .npmrc | ||
pnpm --filter cypress-codegen bump-version | ||
pnpm --filter cypress-codegen publish --no-git-checks | ||
- name: Create Release | ||
run: bunx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm lint && pnpm format && git add . | ||
bun lint && bun format && git add . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules | ||
pnpm-lock.yaml | ||
bun.lockb | ||
cypress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/** Generated by cypress-codegen **/ | ||
export * from "./example"; | ||
export * from "./custom-mount"; | ||
export * from "./example"; | ||
export * from "./nested/nested-example"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
|
||
const typescriptEslint = require("typescript-eslint"); | ||
const cypressEslintPlugin = require("eslint-plugin-cypress"); | ||
|
||
module.exports = [ | ||
...typescriptEslint.configs.recommended, | ||
{ | ||
files: ["**/*.ts", "**/*.tsx"], | ||
languageOptions: { | ||
parser: typescriptEslint.parser, | ||
parserOptions: { | ||
project: true, | ||
}, | ||
}, | ||
plugins: { | ||
"@typescript-eslint": typescriptEslint.plugin, | ||
"sort-annotation": cypressEslintPlugin, | ||
}, | ||
rules: { | ||
"no-console": "error", | ||
"@typescript-eslint/no-namespace": "off", | ||
"@typescript-eslint/no-non-null-assertion": "error", | ||
"@typescript-eslint/no-unsafe-argument": "error", | ||
"@typescript-eslint/no-unsafe-call": "error", | ||
}, | ||
}, | ||
{ | ||
ignores: ["dist", "node_modules"], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,73 @@ | ||
{ | ||
"name": "cypress-codegen", | ||
"packageManager": "[email protected]", | ||
"packageManager": "[email protected]", | ||
"main": "dist/index.cjs", | ||
"types": "dist/index.d.cts", | ||
"bin": { | ||
"cypress-codegen": "dist/cli.cjs" | ||
}, | ||
"files": [ | ||
"dist", | ||
"README.md" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ExpediaGroup/cypress-codegen.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/ExpediaGroup/cypress-codegen/issues" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@babel/core": "7.24.5", | ||
"@babel/parser": "7.24.5", | ||
"@babel/types": "7.24.5", | ||
"@babel/generator": "7.24.5", | ||
"@types/babel__generator": "7.6.8", | ||
"chalk": "5.3.0", | ||
"commander": "12.1.0", | ||
"glob": "10.3.15", | ||
"prettier": "3.2.5" | ||
}, | ||
"peerDependencies": { | ||
"cypress": ">=12" | ||
}, | ||
"devDependencies": { | ||
"@swc/jest": "0.2.36", | ||
"@total-typescript/ts-reset": "0.5.1", | ||
"@types/glob": "8.1.0", | ||
"@types/react": "18.3.2", | ||
"@typescript-eslint/eslint-plugin": "7.9.0", | ||
"@types/jest": "29.5.12", | ||
"@types/node": "20.12.12", | ||
"cypress": "13.9.0", | ||
"cypress-codegen": "workspace:*", | ||
"eslint": "8.57.0", | ||
"eslint-plugin-cypress": "3.2.0", | ||
"eslint-plugin-eslint-comments": "3.2.0", | ||
"eslint-plugin-filenames": "1.3.2", | ||
"eslint-plugin-github": "4.10.2", | ||
"eslint-plugin-import": "2.29.1", | ||
"eslint-plugin-jest": "28.5.0", | ||
"eslint-plugin-prettier": "5.1.3", | ||
"husky": "9.0.11", | ||
"jest": "29.7.0", | ||
"eslint": "9.3.0", | ||
"eslint-plugin-cypress": "3.2.0", | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1", | ||
"semantic-release": "23.1.1", | ||
"tsup": "8.0.2", | ||
"typescript": "5.4.5", | ||
"typescript-eslint": "7.9.0", | ||
"vite": "5.2.11" | ||
}, | ||
"scripts": { | ||
"build": "pnpm --filter cypress-codegen build", | ||
"build": "tsup src/index.ts src/cli.ts --clean --dts", | ||
"cypress:open": "cypress open", | ||
"cypress:component": "cypress run --component", | ||
"cypress:e2e": "cypress run", | ||
"format": "prettier --write .", | ||
"format-check": "prettier .", | ||
"lint": "pnpm --filter cypress-codegen lint", | ||
"prepare": "husky install", | ||
"setup-cli": "pnpm i && pnpm build && pnpm i", | ||
"test": "pnpm --filter cypress-codegen test" | ||
"lint": "eslint .", | ||
"prepack": "bun run build", | ||
"prepare": "husky", | ||
"test": "NODE_OPTIONS=--experimental-vm-modules jest" | ||
}, | ||
"jest": { | ||
"transform": { | ||
"^.+\\.(j|t)sx?$": "@swc/jest" | ||
}, | ||
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", | ||
"clearMocks": true | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.