@currents/cli
Advanced tools
Comparing version 3.0.0-beta.1 to 3.0.0-beta.2
#!/usr/bin/env node | ||
const lib = require("../"); | ||
const lib = require("../dist"); | ||
@@ -5,0 +5,0 @@ lib.patch().catch((error) => { |
{ | ||
"name": "@currents/cli", | ||
"version": "3.0.0-beta.1", | ||
"main": "index.js", | ||
"version": "3.0.0-beta.2", | ||
"license": "MIT", | ||
"main": "./dist", | ||
"typings": "./dist", | ||
"author": { | ||
@@ -11,5 +12,10 @@ "name": "Currents", | ||
"scripts": { | ||
"build": "echo \"built!\"", | ||
"build": "run-s tsc swc", | ||
"dev": "run-p watch:*", | ||
"release": "release-it", | ||
"clean": "rimraf dist" | ||
"clean": "rimraf dist", | ||
"tsc": "tsc", | ||
"swc": "swc src -d dist", | ||
"watch:tsc": "run-s \"tsc --watch --preserveWatchOutput\"", | ||
"watch:swc": "run-s \"swc --watch\"" | ||
}, | ||
@@ -20,2 +26,6 @@ "repository": { | ||
}, | ||
"files": [ | ||
"bin/*", | ||
"dist/*" | ||
], | ||
"bin": { | ||
@@ -27,3 +37,3 @@ "currents": "bin/currents.js", | ||
"dependencies": { | ||
"cy2": "^3.1.2" | ||
"cy2": "^3.1.3" | ||
}, | ||
@@ -59,6 +69,10 @@ "keywords": [ | ||
"@release-it/conventional-changelog": "^5.1.0", | ||
"@swc/cli": "^0.1.49", | ||
"@swc/core": "^1.2.85", | ||
"@types/node": "^18.11.3", | ||
"npm-run-all": "^4.1.5", | ||
"release-it": "^15.4.1", | ||
"rimraf": "^3.0.2" | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.8.4" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # @currents/cli | ||
Example: | ||
## Example: Run cypress connected to Currents Dashboard | ||
@@ -13,4 +13,42 @@ ```sh | ||
## Example: Prepare cypress for connecting to Currents Dashboard | ||
```sh | ||
npm install @currents/cli cypress | ||
npx currents-prepare | ||
npx cypress-retry ... | ||
``` | ||
## Example: API usage | ||
```ts | ||
import { patch } from "@currents/cli"; | ||
import cypress from "cypress"; | ||
async function main() { | ||
await patch(); | ||
cypress | ||
.run({ | ||
spec: "./cypress/e2e/examples/actions.cy.js", | ||
parallel: true, | ||
record: true, | ||
key: "Currents key from https://app.currents.dev", | ||
ciBuildId: "hello-currents", | ||
}) | ||
.then((results) => { | ||
console.log(results); | ||
}) | ||
.catch((err) => { | ||
console.error(err); | ||
}); | ||
} | ||
main().catch((error) => { | ||
console.error(error); | ||
process.exit(1); | ||
}); | ||
``` | ||
# Changelog | ||
https://github.com/currents-dev/cli/blob/main/CHANGELOG.md |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6425
9
125
53
8
Updatedcy2@^3.1.3