Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Updating packages and configuring code coverage (#77)

Marek Trunkát3f1f7160bcf0
diff --git a/.gitignore b/.gitignore
index 0bc7a79f4..7d6c628b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@ node_modules
.DS_Store
lib
coverage
+.nyc_output
logs
pids
.idea
diff --git a/package.json b/package.json
index 0c65b892f..c7dab1ecb 100644
--- a/package.json
+++ b/package.json
@@ -36,8 +36,7 @@
"build": "rm -rf ./build && babel src --out-dir build",
"build-doc": "npm run clean && npm run build && node ./node_modules/jsdoc/jsdoc.js --package ./package.json -c ./jsdoc/conf.json -d docs",
"build-toc": "./node_modules/.bin/markdown-toc README.md -i",
- "test": "npm run build && mocha --timeout 60000 --compilers js:babel-core/register --recursive",
- "test-cov": "npm run build && babel-node node_modules/isparta/bin/isparta cover --report html --report text node_modules/.bin/_mocha",
+ "test": "npm run build && nyc --reporter=html --reporter=text mocha --timeout 60000 --compilers js:babel-core/register --recursive",
"prepare": "npm run build-toc && npm run build",
"prepublishOnly": "(test $RUNNING_FROM_SCRIPT || (echo \"You must use publish.sh instead of 'npm publish' directly!\"; exit 1)) && npm test && npm run lint",
"clean": "rm -rf build",
@@ -51,7 +50,7 @@
"fs-extra": "^5.0.0",
"proxy-chain": "^0.1.26",
"request-promise": "^4.2.2",
- "underscore": "^1.8.3",
+ "underscore": "^1.9.0",
"ws": "^5.1.0"
},
"devDependencies": {
@@ -69,11 +68,11 @@
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-promise": "^3.4.2",
"eslint-plugin-react": "^7.0.1",
- "isparta": "^4.0.0",
"jsdoc": "^3.4.3",
"jsdoc-export-default-interop": "^0.3.1",
"markdown-toc": "^1.2.0",
"mocha": "^3.5.3",
+ "nyc": "^11.7.1",
"portastic": "^1.0.1",
"proxy": "^0.2.4",
"request": "^2.81.0",