Skip to content

Commit

Permalink
Refactor all to TypeScript (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRataplan committed Jan 14, 2019
1 parent bcf5065 commit 6f695cd
Show file tree
Hide file tree
Showing 429 changed files with 17,461 additions and 15,265 deletions.
30 changes: 0 additions & 30 deletions .babelrc.js

This file was deleted.

167 changes: 0 additions & 167 deletions .eslintrc

This file was deleted.

19 changes: 11 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
platform
coverage
node_modules
test/assets/QT3TS
test/assets/XQUTS
dist/fontoxpath.*
src/parsing/xPathParser.raw.js
.nyc_output
/coverage
/node_modules
/test/assets/QT3TS
/test/assets/XQUTS
/test/built
/built
/demo/built
/dist
/src/parsing/xPathParser.raw.js
/.nyc_output
/tmp
19 changes: 13 additions & 6 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
{
"require": [
"@babel/register"
],
"sourceMap": false,
"instrument": false,
"require": "ts-node/register",
"extension": [
".js",
".ts"
],
"reporter": [
"text-summary",
"html"
],
"instrument": true,
"sourceMap": true,
"include": [
"src/**/*.js"
"src/**/*.ts",
"test/**/*.ts"
]
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 100,
"singleQuote": true,
"tabWidth": 4,
"useTabs": true
}
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ before_script:
- unzip -q test/assets/QT3TS/xqueryx.zip -d ./test/assets/QT3TS/

script:
- timeout 600 xvfb-run -a npm run ci-test -- --reporter dot;
- timeout 600 xvfb-run -a npm run ci-qt3tests -- --reporter dot;
- timeout 600 xvfb-run -a npm run integrationtests -- --reporter dot;
- timeout 600 xvfb-run -a npm run qt3tests -- --dist --reporter dot;
- timeout 600 xvfb-run -a npm run qt3testsxqueryx -- --reporter dot;
- timeout 600 xvfb-run -a npm run ci-xqutstests -- --reporter dot;
- timeout 600 xvfb-run -a npm run xqutstestsxqueryx -- --reporter dot;
- timeout 600 npm run ci-test -- --reporter dot;
- timeout 600 npm run ci-qt3tests -- --reporter dot;
- timeout 600 npm run integrationtests -- --dist --reporter dot;
- timeout 600 npm run qt3tests -- --dist --reporter dot;
- timeout 600 npm run qt3testsxqueryx -- --reporter dot;
- timeout 600 npm run ci-xqutstests -- --reporter dot;
- timeout 600 npm run xqutstestsxqueryx -- --reporter dot;

after_success: npm run coverage
68 changes: 68 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch current file w/ mocha",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"env": {
"TS_NODE_PROJECT": "test/tsconfig.json"
},
"args": [
"--ui",
"tdd",
"--timeout",
"4000",
"--colors",
"--require",
"ts-node/register",
"--require",
"tsconfig-paths/register",
"${relativeFile}"
],
"skipFiles": [
"node_modules/**/*.js",
"lib/**/*.js",
"async_hooks.js",
"inspector_async_hook.js",
"fs.js",
"loader.js"
],
"cwd": "${workspaceRoot}",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "node",
"request": "launch",
"name": "Run all the tests",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"env": {
"TS_NODE_PROJECT": "test/tsconfig.json"
},
"args": [
"--ui",
"tdd",
"--timeout",
"4000",
"--colors",
"--require",
"ts-node/register",
"--require",
"tsconfig-paths/register",
"test/specs/**/*.tests.ts",
"--allow-uncaught"
],
"skipFiles": [
"node_modules/**/*.js",
"lib/**/*.js",
"async_hooks.js",
"inspector_async_hook.js",
"fs.js",
"loader.js"
],
"cwd": "${workspaceRoot}",
"internalConsoleOptions": "openOnSessionStart"
}
]
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"liveshare.features": "experimental",
"liveshare.languages.allowGuestCommandControl": true,
"files.watcherExclude": {
"**/built/**": true,
"**/coverage/**": true,
"**/dist/**": true
},
"mocha.enabled": false
}
Loading

0 comments on commit 6f695cd

Please sign in to comment.