Skip to content

Commit

Permalink
chore: Apply EditorConfig rules everywhere (#163)
Browse files Browse the repository at this point in the history
There was a lot of files with bad indents, missing final newlines, or
trailing whitespace, this fixes it.
  • Loading branch information
fnesveda authored Jun 30, 2023
1 parent 4302a00 commit 08d7869
Show file tree
Hide file tree
Showing 30 changed files with 16,438 additions and 16,435 deletions.
32,488 changes: 16,244 additions & 16,244 deletions package-lock.json

Large diffs are not rendered by default.

92 changes: 46 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
{
"name": "@apify/actor-templates",
"version": "0.1.4",
"description": "A manifest of Apify actor templates.",
"main": "src/index.js",
"files": [
"src/index.js"
],
"scripts": {
"lint": "eslint . --ext .js,.ts",
"test": "jest",
"test-without-templates": "npm run test -- --testPathIgnorePatterns=templates.test.js",
"test-templates": "npm run test -- --testPathPattern=templates.test.js",
"test-python-templates": "npm run test-templates -- --testNamePattern=python",
"test-node-templates": "npm run test-templates -- --testNamePattern=node",
"build": "node ./src/build.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/apify/actor-templates.git"
},
"author": "Jakub Drobnik <jakub.drobnik@apify.com>",
"contributors": [
"Jan Bárta <jan.barta@apify.com>",
"Ondra Urban <ondra@apify.com>"
],
"license": "ISC",
"bugs": {
"url": "https://github.com/apify/actor-templates/issues"
},
"homepage": "https://github.com/apify/actor-templates#readme",
"devDependencies": {
"@apify/eslint-config": "^0.3.1",
"@apify/eslint-config-ts": "^0.2.3",
"@apify/tsconfig": "0.1.0",
"@types/jest": "^29.5.1",
"apify": "^3.1.4",
"crawlee": "^3.3.2",
"eslint": "^8.41.0",
"eslint-plugin-jest": "^27.2.1",
"globby": "^11.1.0",
"jest": "^29.5.0",
"json5": "^2.2.3",
"mustache": "^4.2.0",
"playwright": "^1.34.2",
"puppeteer": "^20.1.0"
}
"name": "@apify/actor-templates",
"version": "0.1.4",
"description": "A manifest of Apify actor templates.",
"main": "src/index.js",
"files": [
"src/index.js"
],
"scripts": {
"lint": "eslint . --ext .js,.ts",
"test": "jest",
"test-without-templates": "npm run test -- --testPathIgnorePatterns=templates.test.js",
"test-templates": "npm run test -- --testPathPattern=templates.test.js",
"test-python-templates": "npm run test-templates -- --testNamePattern=python",
"test-node-templates": "npm run test-templates -- --testNamePattern=node",
"build": "node ./src/build.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/apify/actor-templates.git"
},
"author": "Jakub Drobnik <jakub.drobnik@apify.com>",
"contributors": [
"Jan Bárta <jan.barta@apify.com>",
"Ondra Urban <ondra@apify.com>"
],
"license": "ISC",
"bugs": {
"url": "https://github.com/apify/actor-templates/issues"
},
"homepage": "https://github.com/apify/actor-templates#readme",
"devDependencies": {
"@apify/eslint-config": "^0.3.1",
"@apify/eslint-config-ts": "^0.2.3",
"@apify/tsconfig": "0.1.0",
"@types/jest": "^29.5.1",
"apify": "^3.1.4",
"crawlee": "^3.3.2",
"eslint": "^8.41.0",
"eslint-plugin-jest": "^27.2.1",
"globby": "^11.1.0",
"jest": "^29.5.0",
"json5": "^2.2.3",
"mustache": "^4.2.0",
"playwright": "^1.34.2",
"puppeteer": "^20.1.0"
}
}
12 changes: 6 additions & 6 deletions templates/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"root": true,
"extends": "@apify/eslint-config-ts",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"ecmaVersion": 2020
}
"root": true,
"extends": "@apify/eslint-config-ts",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"ecmaVersion": 2020
}
}
2 changes: 1 addition & 1 deletion templates/js-crawlee-playwright-chrome/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
dist
node_modules
apify_storage
storage
storage
6 changes: 3 additions & 3 deletions templates/js-cypress/.actor/actor.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"actorSpecification": 1,
"name": "project-cypress-javascript",
"name": "project-cypress-javascript",
"title": "Cypress Project Javascript",
"description": "Cypress project in JavaScript.",
"version": "0.0",
"version": "0.0",
"meta": {
"templateId": "js-cypress"
},
"input": "./input_schema.json",
"readme": "./README.md",
"dockerfile": "./Dockerfile",
"storages": {
"storages": {
"dataset": "./output_schema.json"
}
}
50 changes: 25 additions & 25 deletions templates/js-cypress/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "cypress-module-api",
"version": "1.0.0",
"type": "module",
"description": "Run Cypress via its module API",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@apify/log": "^2.2.7",
"apify": "^3.0.0",
"console.table": "^0.10.0",
"cypress": "^12.7.0",
"globby": "^13.1.3"
},
"devDependencies": {
"@apify/eslint-config": "^0.3.1",
"eslint": "^8.20.0",
"eslint-plugin-cypress": "^2.12.1"
},
"scripts": {
"cypress:open": "cypress open",
"start": "node ./main.js"
},
"author": "It's not you it's me",
"license": "ISC"
"name": "cypress-module-api",
"version": "1.0.0",
"type": "module",
"description": "Run Cypress via its module API",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@apify/log": "^2.2.7",
"apify": "^3.0.0",
"console.table": "^0.10.0",
"cypress": "^12.7.0",
"globby": "^13.1.3"
},
"devDependencies": {
"@apify/eslint-config": "^0.3.1",
"eslint": "^8.20.0",
"eslint-plugin-cypress": "^2.12.1"
},
"scripts": {
"cypress:open": "cypress open",
"start": "node ./main.js"
},
"author": "It's not you it's me",
"license": "ISC"
}
26 changes: 13 additions & 13 deletions templates/js-start/.actor/input_schema.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"title": "Scrape data from a web page",
"type": "object",
"schemaVersion": 1,
"properties": {
"url": {
"title": "URL of the page",
"type": "string",
"description": "The URL of website you want to get the data from.",
"editor": "textfield",
"prefill": "https://www.apify.com/"
}
},
"required": ["url"]
"title": "Scrape data from a web page",
"type": "object",
"schemaVersion": 1,
"properties": {
"url": {
"title": "URL of the page",
"type": "string",
"description": "The URL of website you want to get the data from.",
"editor": "textfield",
"prefill": "https://www.apify.com/"
}
},
"required": ["url"]
}
2 changes: 1 addition & 1 deletion templates/js-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ The scraped data in this template are page headings but you can easily edit the
```js
$("h1, h2, h3, h4, h5, h6").each((_i, element) => {...});
```
5. `Actor.pushData(headings)` stores the headings in the dataset
5. `Actor.pushData(headings)` stores the headings in the dataset
2 changes: 1 addition & 1 deletion templates/python-beautifulsoup/.actor/actor.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Scrapes titles of websites using BeautifulSoup.",
"version": "0.0",
"meta": {
"templateId": "python-beautifulsoup"
"templateId": "python-beautifulsoup"
},
"input": "./input_schema.json",
"dockerfile": "./Dockerfile",
Expand Down
2 changes: 1 addition & 1 deletion templates/python-empty/.actor/actor.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "0.0",
"buildTag": "latest",
"meta": {
"templateId": "python-empty"
"templateId": "python-empty"
},
"dockerfile": "./Dockerfile"
}
2 changes: 1 addition & 1 deletion templates/python-empty/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
apify ~= 1.1.1
beautifulsoup4 ~= 4.12.0
beautifulsoup4 ~= 4.12.0
2 changes: 1 addition & 1 deletion templates/python-scrapy/.actor/actor.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Scrapes titles of websites using Scrapy.",
"version": "0.0",
"meta": {
"templateId": "python-scrapy"
"templateId": "python-scrapy"
},
"input": "./input_schema.json",
"dockerfile": "./Dockerfile",
Expand Down
2 changes: 1 addition & 1 deletion templates/python-selenium/.actor/actor.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Scrapes titles of websites using Selenium.",
"version": "0.0",
"meta": {
"templateId": "python-selenium"
"templateId": "python-selenium"
},
"input": "./input_schema.json",
"dockerfile": "./Dockerfile",
Expand Down
2 changes: 1 addition & 1 deletion templates/python-start/.actor/actor.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Scrape data from single page with provided URL.",
"version": "0.0",
"meta": {
"templateId": "python-start"
"templateId": "python-start"
},
"input": "./input_schema.json",
"dockerfile": "./Dockerfile"
Expand Down
10 changes: 5 additions & 5 deletions templates/python-start/.actor/input_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"schemaVersion": 1,
"properties": {
"url": {
"title": "URL of the page",
"type": "string",
"description": "The URL of website you want to get the data from.",
"editor": "textfield",
"prefill": "https://www.apify.com/"
"title": "URL of the page",
"type": "string",
"description": "The URL of website you want to get the data from.",
"editor": "textfield",
"prefill": "https://www.apify.com/"
}
},
"required": ["url"]
Expand Down
2 changes: 1 addition & 1 deletion templates/python-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ The scraped data in this template are page headings but you can easily edit the
for heading in soup.find_all(["h1", "h2", "h3", "h4", "h5", "h6"]):
```

5. `Actor.push_data(headings)` stores the headings in the dataset
5. `Actor.push_data(headings)` stores the headings in the dataset
2 changes: 1 addition & 1 deletion templates/ts-crawlee-cheerio/.actor/actor.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Crawlee and Cheerio project in typescript.",
"version": "0.0",
"meta": {
"templateId": "ts-crawlee-cheerio"
"templateId": "ts-crawlee-cheerio"
},
"input": "./input_schema.json",
"dockerfile": "./Dockerfile"
Expand Down
12 changes: 6 additions & 6 deletions templates/ts-empty/.actor/actor.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"actorSpecification": 1,
"name": "ts-empty",
"title": "Empty TypeScript project",
"actorSpecification": 1,
"name": "ts-empty",
"title": "Empty TypeScript project",
"description": "Empty project in TypeScript.",
"version": "0.0",
"buildTag": "latest",
"meta": {
"version": "0.0",
"buildTag": "latest",
"meta": {
"templateId": "ts-empty"
},
"dockerfile": "./Dockerfile"
Expand Down
16 changes: 8 additions & 8 deletions templates/ts-playwright-test-runner/.actor/actor.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"actorSpecification": 1,
"name": "playwright-test-runner",
"title": "Playwright Test Runner",
"actorSpecification": 1,
"name": "playwright-test-runner",
"title": "Playwright Test Runner",
"description": "Runs Playwright tests",
"version": "0.0",
"buildTag": "latest",
"meta": {
"version": "0.0",
"buildTag": "latest",
"meta": {
"templateId": "ts-playwright-test-runner"
},
"storages": {
"storages": {
"dataset": "./output_schema.json"
},
"input": "./input_schema.json",
"input": "./input_schema.json",
"dockerfile": "./Dockerfile"
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
}
},
"required": []
}
}
10 changes: 5 additions & 5 deletions templates/ts-playwright-test-runner/.actor/output_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"video"
]
},
"display": {
"component": "table",
"properties": {
"suiteName": {
"display": {
"component": "table",
"properties": {
"suiteName": {
"label": "Test Suite"
},
"testName": {
Expand Down Expand Up @@ -47,4 +47,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion templates/ts-playwright-test-runner/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ node_modules
dist
playwright-report
src/tests
test-results.json
test-results.json
Loading

0 comments on commit 08d7869

Please sign in to comment.