Skip to content

Commit

Permalink
final cleanup after project import (via allure-framework#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
korobochka authored and baev committed Jan 21, 2019
1 parent 06cf68e commit 544d451
Show file tree
Hide file tree
Showing 36 changed files with 226 additions and 467 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/allure-cucumberjs/.eslintrc.yml → .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
root: true

parser: typescript-eslint-parser
parser: "@typescript-eslint/parser"

parserOptions:
sourceType: module
Expand Down
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ build
schema
.gradle

out/

#Eclipse files
*.settings
*.classpath
Expand All @@ -17,11 +15,17 @@ out/

#Node
node_modules
npm-debug.log
package-lock.json

#Other
.repo

#Mac OS stuff
.DS_Store

#Junk

out
dist
*.tgz
*.log
File renamed without changes.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
# Allure Javascript Integrations

This project aggregates Allure 2 Javascript commons and reporters.
This project aggregates Allure Javascript commons and reporters.

## Currently supported frameworks

- Jasmine
- Cucumber.JS
- Mocha

## Local Development

Install root dependencies:
Install dependencies and bootstrap Lerna links:

```bash
npm install
```

Link dependencies and build all packages:
Build:

```bash
npm run setup
npm run build
```

Run tests for all the packages:
Expand Down
47 changes: 27 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
{
"private": true,
"scripts": {
"bootstrap": "npm run clean && lerna bootstrap",
"build": "lerna run build",
"clean": "run-p clean:*",
"clean:build": "rimraf ./packages/*/build",
"clean:pkglock": "rimraf ./packages/*/package-lock.json",
"clean:node_modules": "rimraf ./packages/*/node_modules",
"release": "lerna publish",
"setup": "run-s bootstrap build",
"test": "lerna run test"
},
"devDependencies": {
"@types/node": "^10.12.1",
"allure-commandline": "^2.7.0",
"lerna": "^3.4.3",
"npm-run-all": "^4.1.3",
"rimraf": "^2.6.2",
"typescript": "^3.1.5"
}
"private": true,
"scripts": {
"build": "npm run clean && lerna run build",
"test": "lerna run test",
"clean": "lerna run clean",
"release": "lerna publish",
"lint": "lerna run lint",
"lint-fix": "lerna run lint-fix",

"prepublish": "npm run bootstrap",
"bootstrap": "npm run pre-bootstrap && lerna bootstrap --hoist",
"pre-bootstrap": "run-p pre-bootstrap:*",
"pre-bootstrap:pkglock": "rimraf ./packages/*/package-lock.json",
"pre-bootstrap:node_modules": "rimraf ./packages/*/node_modules",
"pack": "lerna exec -- npm pack"
},
"devDependencies": {
"@types/node": "^10.12.18",
"allure-commandline": "^2.9.0",
"lerna": "^3.10.6",
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.3",
"typescript": "^3.2.4",
"eslint": "^5.12.1",
"eslint-plugin-typescript": "^0.14.0",
"@typescript-eslint/parser": "^1.0.0"
}
}
7 changes: 0 additions & 7 deletions packages/allure-cucumberjs/.gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions packages/allure-cucumberjs/.npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
README.md
*
!dist/**/*
dist/features
dist/declarations/features
!package.json
package-lock.json
!package-lock.json
!*.md
!*.txt
File renamed without changes.
7 changes: 3 additions & 4 deletions packages/allure-cucumberjs/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# cucumberjs-allure2-reporter
# allure-cucumberjs

Allure 2 reporter for Cucumber.JS framework
Compatible with Cucumber.JS 3+ and Allure 2+
Allure integration for Cucumber.JS framework

NPM link: [cucumberjs-allure2-reporter](https://www.npmjs.com/package/cucumberjs-allure2-reporter)
Compatible with Cucumber.JS 3+ and Allure 2+

### How to use
Create Reporter file:
Expand Down
25 changes: 12 additions & 13 deletions packages/allure-cucumberjs/package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
{
"name": "allure-cucumberjs",
"version": "2.0.0-beta.1",
"description": "Allure 2 reporter for Cucumber.JS framework",
"description": "Allure Cucumber.JS integration",
"license": "Apache-2.0",
"author": "Ilya Korobitsyn <[email protected]>",
"contributors": [
"Claudia Hardman <[email protected]>"
],
"repository": "https://github.com/korobochka/cucumberjs-allure2-reporter",
"repository": "https://github.com/allure-framework/allure-js",
"main": "./dist/index.js",
"typings": "./dist/declarations/",
"scripts": {
"clean": "rimraf ./dist ./out",
"lint": "eslint ./src/**/*.ts ./features/step_definitions/**/*.ts ./index.ts",
"lint-fix": "eslint --fix ./src/**/*.ts ./features/step_definitions/**/*.ts ./index.ts",
"compile": "tsc",
"clean": "rimraf ./dist",
"prepare": "npm run clean && npm run build",
"build": "npm run lint && npm run compile",
"prepublishOnly": "npm run clean && npm run build",

"generate-report": "allure generate ./out/allure-results -o ./out/allure-report --clean",
"runTest": "node $NODE_DEBUG_OPTION ./node_modules/cucumber/bin/cucumber-js --require ./dist/features/step_definitions/ --format ./dist/features/step_definitions/Reporter.js:./dist/dummy.txt",
"runTestNoReporter": "node $NODE_DEBUG_OPTION ./node_modules/cucumber/bin/cucumber-js --require ./dist/features/step_definitions/ --format event-protocol:./out/event-protocol.txt",
"test": "rimraf ./out ; npm run build && npm run runTest ; npm run generate-report",
"lint": "eslint ./src/**/*.ts ./features/step_definitions/**/*.ts ./index.ts"
"runTest": "cucumber-js --require ./dist/features/step_definitions/ --format ./dist/features/step_definitions/Reporter.js:./dist/dummy.txt",
"runTestNoReporter": "cucumber-js --require ./dist/features/step_definitions/ --format event-protocol:./out/event-protocol.txt",
"test": "rimraf ./out ; npm run build && npm run runTest ; npm run generate-report"
},
"license": "Apache-2.0",
"devDependencies": {
"@types/cucumber": "^4.0.4",
"cucumber": "^4.2.1",
"eslint": "^5.2.0",
"eslint-plugin-typescript": "^0.12.0",
"typescript-eslint-parser": "^17.0.1"
"cucumber": "^4.2.1"
},
"dependencies": {
"allure-js-commons": "2.0.0-beta.1"
Expand Down
22 changes: 10 additions & 12 deletions packages/allure-cucumberjs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"compilerOptions": {
"outDir": "./dist",
"target": "es5",
"lib": ["es6"],
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"declarationDir": "./dist/declarations",
"strict": true,
"sourceMap": true
},
"extends": "../../tsconfig.json",
"include": [
"./src/**/*",
"./features/step_definitions/**/*",
"./index.ts"
]
],
"compilerOptions": {
"types": [
"node",
"cucumber"
],
"outDir": "./dist",
"declarationDir": "./dist/declarations"
}
}
12 changes: 0 additions & 12 deletions packages/allure-jasmine/.editorconfig

This file was deleted.

92 changes: 0 additions & 92 deletions packages/allure-jasmine/.eslintrc.yml

This file was deleted.

7 changes: 0 additions & 7 deletions packages/allure-jasmine/.gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions packages/allure-jasmine/.npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.eslintrc.yml
*
!dist/**/*
dist/test
dist/declarations/test
!package.json
package-lock.json
!package-lock.json
!*.md
!*.txt
File renamed without changes.
6 changes: 2 additions & 4 deletions packages/allure-jasmine/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# jasmine-allure2-reporter
# allure-jasmine

Allure 2 reporter for Jasmine framework

NPM link: [jasmine-allure2-reporter](https://www.npmjs.com/package/jasmine-allure2-reporter)
Allure integration Jasmine framework

For usage example see `test/Setup.ts`

Expand Down
23 changes: 11 additions & 12 deletions packages/allure-jasmine/package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
{
"name": "allure-jasmine",
"version": "2.0.0-beta.1",
"description": "Allure 2 reporter for Jasmine framework",
"description": "Allure Jasmine integration",
"license": "Apache-2.0",
"author": "Ilya Korobitsyn <[email protected]>",
"repository": "https://github.com/korobochka/jasmine-allure2-reporter",
"repository": "https://github.com/allure-framework/allure-js",
"main": "./dist/index.js",
"typings": "./dist/declarations/",
"scripts": {
"clean": "rimraf ./dist ./out",
"lint": "eslint ./src/** ./test/** ./index.ts",
"lint-fix": "eslint --fix ./src/** ./test/** ./index.ts",
"compile": "tsc",
"clean": "rimraf ./dist",
"prepare": "npm run clean && npm run build",
"build": "npm run lint && npm run compile",
"prepublishOnly": "npm run clean && npm run build",

"generate-report": "allure generate ./out/allure-results -o ./out/allure-report --clean",
"runTest": "jasmine ./dist/test/*.js",
"runTestDebug": "node $NODE_DEBUG_OPTION ./node_modules/jasmine/bin/jasmine ./dist/test/*.js",
"test": "rimraf ./out ; npm run build && npm run runTest ; npm run generate-report",
"lint": "eslint ./src/** ./test/** ./index.ts"
"test": "rimraf ./out ; npm run build && npm run runTest ; npm run generate-report"
},
"license": "Apache-2.0",
"devDependencies": {
"@types/jasmine": "^2.8.8",
"eslint": "^5.2.0",
"eslint-plugin-typescript": "^0.12.0",
"jasmine": "^3.1.0",
"typescript-eslint-parser": "^17.0.1"
"@types/jasmine": "^3.3.7",
"jasmine": "^3.3.1"
},
"dependencies": {
"allure-js-commons": "2.0.0-beta.1"
Expand Down
Loading

0 comments on commit 544d451

Please sign in to comment.