Skip to content

Commit

Permalink
Merge pull request #9 from FaKeller/feature/clean-package-json
Browse files Browse the repository at this point in the history
Clean package.json
  • Loading branch information
FaKleiser authored Nov 11, 2017
2 parents b1b1548 + 06383d7 commit 74aac37
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 563 deletions.
3 changes: 3 additions & 0 deletions bin/sireg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

require("../dist/src/sireg-cli");
46 changes: 46 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// loaders
export {LoaderStrategy} from './src/load/loader-strategy.interface';
export {SitemapLoaderStrategy, SitemapLoaderOptions} from './src/load/sitemap-loader.strategy';
export {CsvLoaderStrategy, CsvLoaderOptions} from './src/load/csv-loader.strategy';
export {FileLoaderStrategy, FileLoaderOptions} from './src/load/file-loader.strategy';
export {LoaderStrategyResolver} from './src/load/loader-strategy-resolver';

// filters
export {FilterStrategy} from './src/filter/filter-strategy.interface';

// replace
export {UrlReplacerStrategy} from './src/replace/url-replacer-strategy.interface';
export {StaticReplacerStrategy} from './src/replace/static-replacer.strategy';

// reporter
export {ReporterStrategy} from './src/reporter/reporter-strategy.interface';
export {ConsoleReporter} from './src/reporter/console-reporter.strategy';

// errors
export {SiregError} from './src/exception/sireg-error';

// regression
export {Assertion} from './src/regression/assertion/assertion';
export {AssertionResult} from './src/regression/assertion/assertion-result';
export {Assertions} from './src/regression/assertion/assertions';

export {SiregExecutor} from './src/regression/flow/sireg-executor';
export {TestCaseEvaluator} from './src/regression/flow/test-case-evaluator';
export {TestCaseProcessor} from './src/regression/flow/test-case-processor';

export {RegressionResult} from './src/regression/result/regression-result';
export {RegressionResultSet} from './src/regression/result/regression-result-set';
export {RegressionResultStatus} from './src/regression/result/regression-result-status.enum';

export {AbstractHttpStack} from './src/regression/stack/abstract-http-stack';
export {HttpErrorStack} from './src/regression/stack/http-error-stack';
export {HttpResponseStack} from './src/regression/stack/http-response-stack';
export {HttpStackBuilder} from './src/regression/stack/http-stack-builder';

export {InvalidTestCaseError} from './src/regression/suite/config/invalid-test-case.error';
export {TestSuiteConfig} from './src/regression/suite/config/test-suite-config';
export {TestSuiteConfigFactory} from './src/regression/suite/config/test-suite-config-factory';

export {TestCase} from './src/regression/suite/test-case';
export {TestSuite} from './src/regression/suite/test-suite';
export {TestSuiteFactory} from './src/regression/suite/test-suite-factory';
27 changes: 12 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,54 +5,53 @@
"author": "Fabian Keller <[email protected]>",
"homepage": "https://github.com/FaKeller/sireg",
"license": "MIT",
"bin": "./bin/sireg",
"repository": {
"type": "git",
"url": "[email protected]:FaKeller/sireg.git"
},
"scripts": {
"test": "jest --forceExit",
"build": "yarn run ts:build && yarn run tslint",
"build": "rimraf dist && yarn run ts:build && yarn run ts:lint",
"start": "yarn run build && yarn run watch",
"serve": "node dist/main.js",
"serve:watch": "./node_modules/nodemon/bin/nodemon.js dist/main.js",
"ts:build": "tsc",
"ts:watch": "tsc -w",
"tslint": "tslint -c tslint.json -p tsconfig.json",
"watch": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"green.bold,blue.bold\" \"yarn run ts:watch\" \"yarn run serve:watch\"",
"package": "yarn run build && pkg dist/main.js -t node8-macos,node8-win,node8-linux -o dist/bin/sireg"
"ts:lint": "tslint -c tslint.json -p tsconfig.json",
"watch": "yarn run ts:watch",
"package": "yarn run build && pkg dist/src/sireg-cli.js -t node8-macos,node8-win,node8-linux -o dist/bin/sireg"
},
"jest": {
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(\\.(test|spec))\\.(ts|tsx)$",
"testPathIgnorePatterns": ["<rootDir>/node_modules/", "<rootDir>/src/test/"],
"testPathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/src/test/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"setupFiles": [
"./dist/jest-setup.js"
"./dist/src/jest-setup.js"
]
},
"devDependencies": {
"@types/colors": "1.1.3",
"@types/commander": "2.11.0",
"@types/jest": "21.1.4",
"@types/lodash": "4.14.78",
"@types/moment": "2.13.0",
"@types/node": "8.0.46",
"@types/node": "8.0.47",
"@types/papaparse": "4.1.31",
"@types/request": "2.0.6",
"@types/strftime": "0.9.2",
"@types/winston": "2.3.6",
"ajv-cli": "2.1.0",
"concurrently": "3.5.0",
"jest": "21.2.1",
"nodemon": "1.12.1",
"pkg": "4.2.5",
"shelljs": "0.7.8",
"rimraf": "2.6.2",
"ts-jest": "21.1.3",
"ts-mockito": "2.2.5",
"tslint": "5.8.0",
Expand All @@ -62,10 +61,8 @@
"ajv": "5.2.3",
"colors": "1.1.2",
"commander": "2.11.0",
"dotenv": "4.0.0",
"inversify": "4.3.0",
"lodash": "4.17.4",
"moment": "2.19.1",
"papaparse": "4.3.6",
"reflect-metadata": "0.1.10",
"request": "2.83.0",
Expand Down
File renamed without changes.
14 changes: 4 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"sourceMap": true,
"outDir": "dist/",
"baseUrl": ".",
"paths": {
"*": [
"node_modules/*",
"src/types/*"
]
}
"outDir": "dist"
},
"include": [
"src/**/*"
"exclude": [
"node_modules",
"dist"
]
}
Loading

0 comments on commit 74aac37

Please sign in to comment.