Skip to content

Commit

Permalink
Merge pull request #1084 from stencila/chore/remove-unused-deps
Browse files Browse the repository at this point in the history
Remove unused codecs and dependencies
  • Loading branch information
nokome authored Feb 4, 2025
2 parents a831c40 + 08ac72a commit 0b8b9cc
Show file tree
Hide file tree
Showing 71 changed files with 7,035 additions and 52,322 deletions.
25,321 changes: 7,011 additions & 18,310 deletions package-lock.json

Large diffs are not rendered by default.

85 changes: 3 additions & 82 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"install.js",
"dist"
],
"bin": "dist/index.js",
"main": "dist/index.js",
"scripts": {
"install": "node install.js",
Expand All @@ -15,7 +14,6 @@
"lint:fix": "eslint 'src/**/*.{ts,js}' --fix",
"fixtures": "npx ts-node --files src/__fixtures__/make",
"test": "jest --maxWorkers=4 --testTimeout=120000",
"test:wild": "NOCK_BACK_MODE=wild npm test",
"test:cover": "npm test -- --coverage",
"test:watch": "npm test -- --watchAll",
"test:docker": "docker build --tag stencila/encoda . && docker run -it --rm stencila/encoda",
Expand All @@ -25,11 +23,8 @@
"start": "ts-node --files src",
"convert-jats": "ts-node ./src/convertJats.ts",
"debug": "node --require ./ts-node-register.js --inspect=9229 src --debug=1",
"$comment": "The build script builds everything required to publish a release, including binaries and docs",
"build": "npm run build:codemeta && npm run build:dist && npm run build:docs",
"build:codemeta": "ts-node src manifest > codemeta.json",
"build:dist": "tsc -p tsconfig.prod.json && npm run build:csl-assets",
"build:csl-assets": "cp -r src/codecs/csl/styles/. dist/codecs/csl/styles/",
"build": "npm run build:dist && npm run build:docs",
"build:dist": "tsc -p tsconfig.prod.json",
"build:docs": "typedoc --options typedoc.js ./src",
"clean": "rm -rf bin coverage dist docs tests/**/*.to.*",
"prepublishOnly": "npm run build"
Expand All @@ -44,64 +39,15 @@
"url": "https://github.com/stencila/encoda/issues"
},
"dependencies": {
"@stencila/jesta": "^1.10.5",
"@stencila/logga": "^4.0.0",
"@stencila/thema": "^2.24.4",
"appdata-path": "^1.0.0",
"asciimath2tex": "https://github.com/christianp/asciimath2tex/tarball/dedc42ddfdb80678bfb09864cfa76afb0a4b5f44",
"async-lock": "^1.4.1",
"bin-wrapper": "^4.1.0",
"citation-js": "^0.5.7",
"collapse-whitespace": "^1.1.7",
"content-type": "^1.0.5",
"datapackage": "^1.1.10",
"escape-html": "^1.0.3",
"fastest-levenshtein": "^1.0.16",
"fp-ts": "^2.16.5",
"fs-extra": "^11.2.0",
"get-stdin": "^8.0.0",
"github-slugger": "^1.5.0",
"globby": "^11.1.0",
"hyperscript": "^2.0.2",
"is-docker": "^2.2.1",
"jimp": "^0.22.10",
"js-beautify": "^1.15.1",
"js-yaml": "^4.1.0",
"jsdom": "^22.1.0",
"json5": "^2.2.3",
"jsonld": "^8.3.2",
"mathjax-node": "^2.1.1",
"mdast-util-compact": "^3.0.0",
"mime": "^3.0.0",
"minimist": "^1.2.8",
"papaparse": "^5.4.1",
"parse-author": "^2.0.0",
"parse-full-name": "^1.2.6",
"pdf-lib": "^1.17.1",
"plotly.js-dist": "^1.58.5",
"png-chunk-text": "^1.0.0",
"png-chunks-encode": "^1.0.0",
"png-chunks-extract": "^1.0.0",
"puppeteer": "^11.0.0",
"remark-attr": "^0.11.1",
"remark-frontmatter": "^2.0.0",
"remark-generic-extensions": "^1.4.0",
"remark-math": "^3.0.1",
"remark-parse": "^8.0.3",
"remark-stringify": "^8.1.1",
"remark-sub-super": "^1.0.21",
"sentence-case": "^3.0.4",
"tar": "^6.1.15",
"temp-dir": "^2.0.0",
"tempy": "^1.0.1",
"to-vfile": "^6.1.0",
"trash": "^7.2.0",
"unified": "^9.2.2",
"unist-util-filter": "^2.0.3",
"unist-util-map": "^2.0.1",
"unist-util-select": "^3.0.4",
"vfile": "^4.2.1",
"xlsx": "^0.18.5",
"xml-js": "^1.6.11"
},
"peerDependencies": {
Expand All @@ -115,42 +61,19 @@
"@stencila/eslint-config": "^3.0.4",
"@stencila/semantic-release-config": "2.0.20",
"@testing-library/jest-dom": "5.17.0",
"@types/async-lock": "1.4.0",
"@types/content-type": "1.1.5",
"@types/escape-html": "1.0.2",
"@types/fs-extra": "9.0.13",
"@types/github-slugger": "1.3.0",
"@types/hyperscript": "0.0.4",
"@types/jest": "29.5.4",
"@types/js-beautify": "1.14.0",
"@types/js-yaml": "4.0.5",
"@types/jsdom": "16.2.15",
"@types/jsonld": "1.5.9",
"@types/mdast": "3.0.12",
"@types/json-schema": "^7.0.15",
"@types/mime": "2.0.3",
"@types/minimist": "1.2.2",
"@types/node": "18.17.9",
"@types/pa11y": "5.3.5",
"@types/papaparse": "5.3.8",
"@types/parse-author": "2.0.1",
"@types/punycode": "2.1.0",
"@types/tar": "6.1.5",
"@types/testing-library__dom": "7.5.0",
"@types/unist": "2.0.7",
"callsites": "3.1.0",
"csl-json": "0.1.0",
"delay": "5.0.0",
"dependency-check": "4.1.0",
"googleapis": "95.0.0",
"jest": "29.6.4",
"jest-file-snapshot": "0.5.0",
"jest-matcher-utils": "29.6.4",
"json-schema-to-typescript": "11.0.5",
"markdown-toc": "1.2.0",
"nock": "13.3.3",
"pa11y": "6.2.3",
"semantic-release": "24.1.0",
"structured-data-testing-tool": "4.5.0",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
"typedoc": "0.24.8",
Expand Down Expand Up @@ -196,7 +119,6 @@
"preset": "ts-jest",
"testEnvironment": "node",
"setupFilesAfterEnv": [
"<rootDir>/src/__tests__/setup.ts",
"<rootDir>/src/__tests__/matchers.ts"
],
"testMatch": [
Expand All @@ -208,7 +130,6 @@
],
"testPathIgnorePatterns": [
"<rootDir>/dist/",
"__tests__/setup.ts",
"__tests__/matchers.ts",
"__tests__/teardown.ts",
"__tests__/helpers.ts"
Expand Down
165 changes: 0 additions & 165 deletions src/__fixtures__/gapis.js

This file was deleted.

18 changes: 0 additions & 18 deletions src/__tests__/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import schema from '@stencila/schema'
import callsites from 'callsites'
import fs from 'fs-extra'
import * as nock from 'nock'
import path from 'path'
import * as vfile from '../util/vfile'

Expand Down Expand Up @@ -59,23 +58,6 @@ export const snapshot = (filename: string): string =>
export const output = (filename: string): string =>
path.join(callDir(), '__outputs__', filename)

/**
* Record a nock request / response as a file fixture
*
* Attempt to use other solutions for this e.g. `nock-record`
* and `jest-nock-back` failed because they interfered
* with other tests.
*
* @param filename The filename of the records HTTP request / response
*/
export const nockRecord = async (filename: string) => {
const mode = (process.env.NOCK_BACK_MODE || 'record') as nock.BackMode
nock.back.setMode(mode)
nock.back.fixtures = path.join(callDir(), '__fixtures__')
const result = await nock.back(filename)
return result.nockDone
}

/**
* The directory of the calling test file
*/
Expand Down
18 changes: 0 additions & 18 deletions src/__tests__/setup.ts

This file was deleted.

Loading

0 comments on commit 0b8b9cc

Please sign in to comment.