Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extract instrumentation package #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
dstallenberg merged 18 commits into main from 75-extract-instrumentation-package
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
f253462
refactor: extract ast javascript from javascript package
dstallenberg Feb 22, 2023
c222e08
test: change test name
dstallenberg Feb 28, 2023
8cc04a5
refactor: extract instrumentation package
dstallenberg Feb 28, 2023
1e38be5
test: add example test
dstallenberg Feb 28, 2023
fc31ab4
test: add example test case
dstallenberg Feb 28, 2023
3e5e19c
chore: update gitignore
dstallenberg Feb 28, 2023
a8f4237
chore: resolve PR comments
dstallenberg Mar 1, 2023
3ab836b
chore: merge branch '105-extract-ast-visitor-package' into 75-extract...
dstallenberg Mar 1, 2023
41a5cfa
docs: fix notice header
dstallenberg Mar 1, 2023
1605718
docs: fix readme header
dstallenberg Mar 1, 2023
ae681b8
feat: fix dependency versions
dstallenberg Mar 1, 2023
ceb9b99
test: change example test case to not fail
dstallenberg Mar 1, 2023
14b9f8f
chore: merge branch '105-extract-ast-visitor-package' into 75-extract...
dstallenberg Mar 1, 2023
0147edc
chore: fix merge conflicts
dstallenberg Mar 1, 2023
b2d89ba
chore: fix merge conflicts
dstallenberg Mar 1, 2023
75d2ffe
chore: remove .ds_store file
dstallenberg Mar 1, 2023
63489e2
chore: fix merge conflicts
dstallenberg Mar 8, 2023
fef6183
chore: fix merge conflicts
dstallenberg Mar 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main-test.yml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
package:
- packages/ast-javascript
- packages/cfg-javascript
- packages/instrumentation-javascript
- packages/javascript

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-test.yml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
package:
- packages/ast-javascript
- packages/cfg-javascript
- packages/instrumentation-javascript
- packages/javascript

steps:
Expand Down
5,011 changes: 1,166 additions & 3,845 deletions package-lock.json
View file Open in desktop

Large diffs are not rendered by default.

34 changes: 0 additions & 34 deletions packages/cfg-javascript/package-lock.json
View file Open in desktop

This file was deleted.

5 changes: 5 additions & 0 deletions packages/instrumentation-javascript/NOTICE
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SynTest Framework - SynTest Javascript
Copyright 2020-2023 Delft University of Technology and SynTest contributors

This product includes software developed at
Delft University of Technology (http://www.tudelft.nl/).
1 change: 1 addition & 0 deletions packages/instrumentation-javascript/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Instrumentation library for JavaScript
21 changes: 21 additions & 0 deletions packages/instrumentation-javascript/lib/index.ts
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright 2020-2023 Delft University of Technology and SynTest contributors
*
* This file is part of SynTest Framework - SynTest Javascript.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from "./instrumentation/Instrumenter";
export * from "./instrumentation/Visitor";
export * from "./instrumentation/VisitState";
9 changes: 9 additions & 0 deletions packages/instrumentation-javascript/lib/tsconfig.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../../tsconfig-base.json",
"compilerOptions": {
"outDir": "../dist",
"rootDir": ".",
"composite": true
},
"include": ["**/*.ts"]
}
57 changes: 57 additions & 0 deletions packages/instrumentation-javascript/package.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "@syntest/instrumentation-javascript",
"version": "0.0.1",
"description": "SynTest Instrumentation JavaScript is a library for instrumenting JavaScript code",
"keywords": [
"syntest",
"abstract-syntax-tree"
],
"homepage": "https://www.syntest.org",
"bugs": {
"url": "https://github.com/syntest-framework/syntest-javascript/issues"
},
"license": "Apache-2.0",
"contributors": [
"Annibale Panichella",
"Mitchell Olsthoorn",
"Dimitri Stallenberg"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"/dist",
"/NOTICE",
"README.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/syntest-framework/syntest-javascript.git"
},
"scripts": {
"build": "tsc --build",
"build:watch": "tsc --build --watch",
"clean": "rm -rf .nyc_output dist node_modules",
"clean:dist": "rm -rf dist",
"format": "prettier --config ../../.prettierrc.json --ignore-path ../../.prettierignore --write .",
"format:check": "prettier --config ../../.prettierrc.json --ignore-path ../../.prettierignore --check .",
"lint": "eslint --config ../../.eslintrc.json --ignore-path ../../.eslintignore .",
"lint:fix": "eslint --config ../../.eslintrc.json --ignore-path ../../.eslintignore . --fix",
"test": "mocha --config ../../.mocharc.json",
"test:coverage": "nyc --reporter=text --reporter=html mocha --config ../../.mocharc.json",
"test:coverage:ci": "nyc --reporter=lcovonly mocha --config ../../.mocharc.json --reporter json --reporter-option output=test-results.json",
"test:watch": "mocha --config ../../.mocharc.json --watch"
},
"dependencies": {
"@babel/core": "7.20.12",
"@syntest/ast-javascript": "*"
},
"devDependencies": {
"@types/babel__core": "7.20.0"
},
"engines": {
"node": ">=10.24.0"
},
"publishConfig": {
"access": "public"
}
}
13 changes: 13 additions & 0 deletions packages/instrumentation-javascript/test/example.test.ts
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as chai from "chai";
import { Instrumenter } from "../lib";
const expect = chai.expect;

/**
* This test is only added such that the github action does not fail.
*/
describe("example test", () => {
it("test", async () => {
new Instrumenter();
expect(true);
});
});
6 changes: 6 additions & 0 deletions packages/instrumentation-javascript/tsconfig.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../../tsconfig-base.json",
"files": [],
"include": [],
"references": [{ "path": "lib/" }]
}
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { Relation } from "./types/discovery/Relation";
import { Element } from "@syntest/ast-javascript";
import { TypeEnum } from "./types/resolving/TypeEnum";
import { TypeProbability } from "./types/resolving/TypeProbability";
import { Instrumenter } from "../../instrumentation/Instrumenter";
import { Instrumenter } from "@syntest/instrumentation-javascript";
import { ExportType } from "./dependency/IdentifierVisitor";
import * as t from "@babel/types";
import { JavaScriptTestCase } from "../../testcase/JavaScriptTestCase";
Expand Down
1 change: 1 addition & 0 deletions packages/javascript/package.json
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@syntest/ast-javascript": "^0.1.0-beta.1",
"@syntest/cfg-javascript": "^0.1.0-beta.1",
"@syntest/core": "^0.3.1-beta.0",
"@syntest/instrumentation-javascript": "*",
"chai": "4.3.7",
"chai-as-promised": "7.1.1",
"chalk": "4.1.1",
Expand Down

AltStyle によって変換されたページ (->オリジナル) /