Skip to content

Commit

Permalink
feat(rename): rename stryker-xxx-xxx -> @stryker-mutator/xxx-xxx
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The core package and plugins have been renamed:

* stryker-api -> @stryker-mutator/api
* stryker-babel-transpiler -> @stryker-mutator/babel-transpiler
* stryker -> @stryker-mutator/core
* grunt-stryker -> @stryker-mutator/grunt-stryker
* stryker-html-reporter -> @stryker-mutator/html-reporter
* stryker-jasmine -> @stryker-mutator/jasmine-framework
* stryker-jasmine-runner -> @stryker-mutator/jasmine-runner
* stryker-javascript-mutator -> @stryker-mutator/javascript-mutator
* stryker-jest-runner -> @stryker-mutator/jest-runner
* stryker-karma-runner -> @stryker-mutator/karma-runner
* stryker-mocha-framework -> @stryker-mutator/mocha-framework
* stryker-mocha-runner -> @stryker-mutator/mocha-runner
* stryker-mutator-specification -> @stryker-mutator/mutator-specification
* stryker-test-helpers -> @stryker-mutator/test-helpers
* stryker-typescript -> @stryker-mutator/typescript
* stryker-util -> @stryker-mutator/util
* stryker-vue-mutator -> @stryker-mutator/vue-mutator
* stryker-wct-runner -> @stryker-mutator/wct-runner
* stryker-webpack-transpiler -> @stryker-mutator/webpack-transpiler
  • Loading branch information
nicojs committed Feb 12, 2019
1 parent 857e4a5 commit 1bbd6ff
Show file tree
Hide file tree
Showing 919 changed files with 687 additions and 12,694 deletions.
2 changes: 1 addition & 1 deletion e2e/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as path from 'path';
import { fsAsPromised } from '@stryker-mutator/util';
import { expect } from 'chai';
import { ScoreResult } from 'stryker-api/report';
import { ScoreResult } from '@stryker-mutator/api/report';

export async function readScoreResult(eventResultDirectory = path.resolve('reports', 'mutation', 'events')) {
const allReportFiles = await fsAsPromised.readdir(eventResultDirectory);
Expand Down
28 changes: 14 additions & 14 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@
},
"localDependencies": {
"grunt-stryker": "../packages/grunt-stryker",
"stryker": "../packages/stryker",
"stryker-api": "../packages/stryker-api",
"stryker-babel-transpiler": "../packages/stryker-babel-transpiler",
"stryker-html-reporter": "../packages/stryker-html-reporter",
"stryker-jasmine": "../packages/stryker-jasmine",
"stryker-jasmine-runner": "../packages/stryker-jasmine-runner",
"stryker-javascript-mutator": "../packages/stryker-javascript-mutator",
"stryker-karma-runner": "../packages/stryker-karma-runner",
"stryker-mocha-framework": "../packages/stryker-mocha-framework",
"stryker-mocha-runner": "../packages/stryker-mocha-runner",
"@stryker-mutator/util": "../packages/stryker-util",
"stryker-typescript": "../packages/stryker-typescript",
"stryker-vue-mutator": "../packages/stryker-vue-mutator",
"stryker-webpack-transpiler": "../packages/stryker-webpack-transpiler"
"stryker": "../packages/core",
"@stryker-mutator/api": "../packages/api",
"stryker-babel-transpiler": "../packages/babel-transpiler",
"stryker-html-reporter": "../packages/html-reporter",
"@stryker-mutator/jasmine-framework": "../packages/jasmine",
"@stryker-mutator/jasmine-framework-runner": "../packages/jasmine-runner",
"@stryker-mutator/javascript-mutator": "../packages/javascript-mutator",
"stryker-karma-runner": "../packages/karma-runner",
"stryker-mocha-framework": "../packages/mocha-framework",
"stryker-mocha-runner": "../packages/mocha-runner",
"@stryker-mutator/util": "../packages/util",
"@stryker-mutator/typescript": "../packages/typescript",
"stryker-vue-mutator": "../packages/vue-mutator",
"stryker-webpack-transpiler": "../packages/webpack-transpiler"
}
}
8 changes: 4 additions & 4 deletions e2e/test/angular-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"typescript": "~3.2.4"
},
"localDependencies": {
"stryker": "../../../packages/stryker",
"stryker-karma-runner": "../../../packages/stryker-karma-runner",
"stryker-typescript": "../../../packages/stryker-typescript",
"@stryker-mutator/util": "../../../packages/stryker-util"
"stryker": "../../../packages/core",
"stryker-karma-runner": "../../../packages/karma-runner",
"@stryker-mutator/typescript": "../../../packages/typescript",
"@stryker-mutator/util": "../../../packages/util"
}
}
8 changes: 4 additions & 4 deletions e2e/test/jest-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
"react-test-renderer": "^16.3.2"
},
"localDependencies": {
"stryker": "../../../packages/stryker",
"stryker-javascript-mutator": "../../../packages/stryker-javascript-mutator",
"stryker-jest-runner": "../../../packages/stryker-jest-runner",
"@stryker-mutator/util": "../../../packages/stryker-util"
"stryker": "../../../packages/core",
"@stryker-mutator/javascript-mutator": "../../../packages/javascript-mutator",
"stryker-jest-runner": "../../../packages/jest-runner",
"@stryker-mutator/util": "../../../packages/util"
}
}
8 changes: 4 additions & 4 deletions e2e/test/polymer-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"webmat": "^0.2.0"
},
"localDependencies": {
"stryker": "../../../packages/stryker",
"stryker-wct-runner": "../../../packages/stryker-wct-runner",
"stryker-javascript-mutator": "../../../packages/stryker-javascript-mutator",
"@stryker-mutator/util": "../../../packages/stryker-util"
"stryker": "../../../packages/core",
"stryker-wct-runner": "../../../packages/wct-runner",
"@stryker-mutator/javascript-mutator": "../../../packages/javascript-mutator",
"@stryker-mutator/util": "../../../packages/util"
},
"scripts": {
"pretest": "rimraf \"reports\" \"stryker.log\"",
Expand Down
10 changes: 5 additions & 5 deletions e2e/test/vue-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
"webpack-merge": "^4.1.0"
},
"localDependencies": {
"stryker": "../../../packages/stryker",
"stryker-javascript-mutator": "../../../packages/stryker-javascript-mutator",
"stryker-karma-runner": "../../../packages/stryker-karma-runner",
"stryker-vue-mutator": "../../../packages/stryker-vue-mutator",
"@stryker-mutator/util": "../../../packages/stryker-util"
"stryker": "../../../packages/core",
"@stryker-mutator/javascript-mutator": "../../../packages/javascript-mutator",
"stryker-karma-runner": "../../../packages/karma-runner",
"stryker-vue-mutator": "../../../packages/vue-mutator",
"@stryker-mutator/util": "../../../packages/util"
},
"engines": {
"node": ">= 6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion e2e/test/vue-javascript/verify/verify.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fsAsPromised } from '@stryker-mutator/util';
import { expect } from 'chai';
import * as path from 'path';
import { ScoreResult } from 'stryker-api/report';
import { ScoreResult } from '@stryker-mutator/api/report';

describe('After running stryker on VueJS project', () => {
it('should report 25% mutation score', async () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"postinstall": "lerna bootstrap --no-ci && link-parent-bin",
"lint-info": "tslint --out tslint.log --project tsconfig.lint.json",
"lint-fix": "tslint --fix --project tsconfig.lint.json",
"clean": "rimraf \"packages/stryker-api/*+(.d.ts|.js|.map)\" \"packages/*/+(test|src)/**/*+(.d.ts|.js|.map)\" \"packages/*/{.nyc_output,reports,coverage}\"",
"clean": "rimraf \"packages/api/*+(.d.ts|.js|.map)\" \"packages/*/+(test|src)/**/*+(.d.ts|.js|.map)\" \"packages/*/{.nyc_output,reports,coverage}\"",
"lint": "tslint -p tsconfig.lint.json",
"build": "tsc -b && lerna run build",
"test": "npm run mocha",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "stryker-api",
"name": "@stryker-mutator/api",
"version": "0.24.1",
"description": "The api for the extendable JavaScript mutation testing framework Stryker",
"repository": {
Expand All @@ -25,7 +25,7 @@
"bugs": {
"url": "https://github.com/stryker-mutator/stryker/issues"
},
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/stryker-api#readme",
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/api#readme",
"engines": {
"node": ">=6"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"typescript": "^3.2.2"
},
"localDependencies": {
"stryker-api": "../.."
"@stryker-mutator/api": "../.."
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Config, ConfigEditor, ConfigEditorFactory} from 'stryker-api/config';
import {Config, ConfigEditor, ConfigEditorFactory} from '@stryker-mutator/api/config';

const config: Config = new Config();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StrykerOptions, File, Position, Location, Range, LogLevel } from 'stryker-api/core';
import { StrykerOptions, File, Position, Location, Range, LogLevel } from '@stryker-mutator/api/core';

const minimalOptions: StrykerOptions = {
allowConsoleColors: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Config } from 'stryker-api/config';
import { File } from 'stryker-api/core';
import { Mutant, Mutator, MutatorFactory } from 'stryker-api/mutant';
import { Config } from '@stryker-mutator/api/config';
import { File } from '@stryker-mutator/api/core';
import { Mutant, Mutator, MutatorFactory } from '@stryker-mutator/api/mutant';

class MyMutator implements Mutator {
public name = 'myMutator';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
ReporterFactory,
SourceFile,
MatchedMutant
} from 'stryker-api/report';
import { Config } from 'stryker-api/config';
} from '@stryker-mutator/api/report';
import { Config } from '@stryker-mutator/api/config';
class EmptyReporter {}

class AllReporter implements Reporter {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TestFramework, TestFrameworkFactory, TestSelection, TestFrameworkSettings } from 'stryker-api/test_framework';
import { TestFramework, TestFrameworkFactory, TestSelection, TestFrameworkSettings } from '@stryker-mutator/api/test_framework';

class TestFramework1 implements TestFramework {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
StatementMap, TestRunner, RunnerOptions,
RunResult, RunOptions, TestRunnerFactory,
TestStatus, RunStatus
} from 'stryker-api/test_runner';
} from '@stryker-mutator/api/test_runner';

class MyTestRunner implements TestRunner {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Config } from 'stryker-api/config';
import { Transpiler, TranspilerFactory, TranspilerOptions } from 'stryker-api/transpile';
import { File } from 'stryker-api/core';
import { Config } from '@stryker-mutator/api/config';
import { Transpiler, TranspilerFactory, TranspilerOptions } from '@stryker-mutator/api/transpile';
import { File } from '@stryker-mutator/api/core';

class MyTranspiler implements Transpiler {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "stryker-babel-transpiler",
"name": "@stryker-mutator/babel-transpiler",
"version": "0.10.1",
"description": "A plugin for babel projects using Stryker",
"main": "src/index.js",
Expand Down Expand Up @@ -39,12 +39,12 @@
"Niek te Grootenhuis <[email protected]>",
"Thomas Peters <[email protected]>"
],
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/stryker-babel-transpiler#readme",
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/babel-transpiler#readme",
"license": "Apache-2.0",
"dependencies": {
"@stryker-mutator/util": "^0.1.0",
"minimatch": "~3.0.4",
"stryker-api": "^0.24.1"
"@stryker-mutator/api": "^0.24.1"
},
"peerDependencies": {
"@babel/core": "^7"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as fs from 'fs';
import * as path from 'path';
import { StrykerOptions } from 'stryker-api/core';
import { Logger } from 'stryker-api/logging';
import { tokens, commonTokens } from 'stryker-api/plugin';
import { StrykerOptions } from '@stryker-mutator/api/core';
import { Logger } from '@stryker-mutator/api/logging';
import { tokens, commonTokens } from '@stryker-mutator/api/plugin';
import * as babel from './helpers/babelWrapper';
export interface StrykerBabelConfig {
extensions: ReadonlyArray<string>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Transpiler } from 'stryker-api/transpile';
import { File, StrykerOptions } from 'stryker-api/core';
import { Transpiler } from '@stryker-mutator/api/transpile';
import { File, StrykerOptions } from '@stryker-mutator/api/core';
import * as babel from './helpers/babelWrapper';
import * as path from 'path';
import { BabelConfigReader, StrykerBabelConfig } from './BabelConfigReader';
import { toJSFileName } from './helpers/helpers';
import { StrykerError } from '@stryker-mutator/util';
import { tokens, commonTokens, Injector, TranspilerPluginContext } from 'stryker-api/plugin';
import { tokens, commonTokens, Injector, TranspilerPluginContext } from '@stryker-mutator/api/plugin';

const DEFAULT_EXTENSIONS: ReadonlyArray<string> = (babel as any).DEFAULT_EXTENSIONS;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { declareFactoryPlugin, PluginKind } from 'stryker-api/plugin';
import { declareFactoryPlugin, PluginKind } from '@stryker-mutator/api/plugin';
import { babelTranspilerFactory } from './BabelTranspiler';

export const strykerPlugins = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as fs from 'fs';
import * as path from 'path';
import { File } from 'stryker-api/core';
import { File } from '@stryker-mutator/api/core';
import * as glob from 'glob';

const CARRIAGE_RETURN = '\r'.charCodeAt(0);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as path from 'path';
import { File } from 'stryker-api/core';
import { File } from '@stryker-mutator/api/core';
import { ProjectLoader } from '../helpers/projectLoader';
import { BabelTranspiler, babelTranspilerFactory } from '../../src/BabelTranspiler';
import { expect } from 'chai';
import { testInjector } from '@stryker-mutator/test-helpers';
import { CONFIG_KEY, StrykerBabelConfig } from '../../src/BabelConfigReader';
import { commonTokens } from 'stryker-api/plugin';
import { commonTokens } from '@stryker-mutator/api/plugin';

function describeIntegrationTest(projectName: string, babelConfig: Partial<StrykerBabelConfig> = {}) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as path from 'path';
import { BabelTranspiler } from '../../src/BabelTranspiler';
import { expect } from 'chai';
import { File, StrykerOptions } from 'stryker-api/core';
import { File, StrykerOptions } from '@stryker-mutator/api/core';
import * as sinon from 'sinon';
import * as babel from '../../src/helpers/babelWrapper';
import { Mock, mock } from '../helpers/mock';
import { factory, testInjector } from '@stryker-mutator/test-helpers';
import { BabelConfigReader, StrykerBabelConfig } from '../../src/BabelConfigReader';
import { commonTokens } from 'stryker-api/plugin';
import { commonTokens } from '@stryker-mutator/api/plugin';

describe(BabelTranspiler.name, () => {
let sut: BabelTranspiler;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
],
"references": [
{
"path": "../stryker-api/tsconfig.src.json"
"path": "../api/tsconfig.src.json"
},
{
"path": "../stryker-util/tsconfig.src.json"
"path": "../util/tsconfig.src.json"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"path": "./tsconfig.src.json"
},
{
"path": "../stryker-test-helpers/tsconfig.src.json"
"path": "../test-helpers/tsconfig.src.json"
}
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions packages/stryker/package.json → packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "stryker",
"name": "@stryker-mutator/core",
"version": "0.35.1",
"description": "The extendable JavaScript mutation testing framework",
"main": "src/Stryker.js",
Expand Down Expand Up @@ -47,7 +47,7 @@
"bugs": {
"url": "https://github.com/stryker-mutator/stryker/issues"
},
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/stryker#readme",
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/core#readme",
"bin": {
"stryker": "./bin/stryker"
},
Expand Down Expand Up @@ -82,9 +82,9 @@
"@types/prettier": "^1.15.2",
"@types/progress": "~2.0.1",
"flatted": "^2.0.0",
"stryker-api": "^0.24.1"
"@stryker-mutator/api": "^0.24.1"
},
"peerDependencies": {
"stryker-api": "^0.24.0"
"@stryker-mutator/api": "^0.24.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StatementMap } from 'stryker-api/test_runner';
import { StatementMap } from '@stryker-mutator/api/test_runner';

interface FileStatements {
path: string;
Expand Down
10 changes: 5 additions & 5 deletions packages/stryker/src/Sandbox.ts → packages/core/src/Sandbox.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { StrykerOptions } from 'stryker-api/core';
import { StrykerOptions } from '@stryker-mutator/api/core';
import * as path from 'path';
import { getLogger } from 'log4js';
import * as mkdirp from 'mkdirp';
import { RunResult, TestRunner, RunStatus, TestStatus } from 'stryker-api/test_runner';
import { File } from 'stryker-api/core';
import { TestFramework } from 'stryker-api/test_framework';
import { RunResult, TestRunner, RunStatus, TestStatus } from '@stryker-mutator/api/test_runner';
import { File } from '@stryker-mutator/api/core';
import { TestFramework } from '@stryker-mutator/api/test_framework';
import { wrapInClosure, normalizeWhiteSpaces } from './utils/objectUtils';
import ResilientTestRunnerFactory from './test-runner/ResilientTestRunnerFactory';
import { TempFolder } from './utils/TempFolder';
import { writeFile, findNodeModules, symlinkJunction } from './utils/fileUtils';
import TestableMutant, { TestSelectionResult } from './TestableMutant';
import TranspiledMutant from './TranspiledMutant';
import LoggingClientContext from './logging/LoggingClientContext';
import { MutantResult, MutantStatus } from 'stryker-api/report';
import { MutantResult, MutantStatus } from '@stryker-mutator/api/report';

interface FileMap {
[sourceFile: string]: string;
Expand Down
Loading

0 comments on commit 1bbd6ff

Please sign in to comment.