* feat: add building of SNJS Docker image for e2e testing purposes * fix: contents of snjs package * feat: add running e2e test suite * fix: include mocha directory in the snjs yarn package * fix: add triggering e2e tests with specific image tag * fix: mocha tests url * fix: add tests before publishing new version * fix: temporary skip linter errors * Revert "fix: temporary skip linter errors" This reverts commit c989536930a291677f6ef8cad402feb13f066b8c. * fix: replace test libraries with unpkg CDN versions * fix: update yarn lock and remove cached libs * fix: add missing library to mocha tests * fix: restore chai-as-promised built version * fix: serving sncrypto-web in mocha test suite * fix: add copy of sncrypto-web to gitignore files
87 lines
2.7 KiB
JSON
87 lines
2.7 KiB
JSON
{
|
|
"name": "@standardnotes/snjs",
|
|
"version": "2.123.6",
|
|
"engines": {
|
|
"node": ">=16.0.0 <17.0.0"
|
|
},
|
|
"main": "dist/snjs.js",
|
|
"author": "Standard Notes",
|
|
"types": "dist/@types",
|
|
"files": [
|
|
"dist",
|
|
"mocha",
|
|
"e2e-server.js"
|
|
],
|
|
"license": "AGPL-3.0-or-later",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "webpack -w --config webpack.dev.js",
|
|
"start:test-server": "yarn node e2e-server.js",
|
|
"clean": "rm -fr dist",
|
|
"prebuild": "yarn clean",
|
|
"build": "yarn tsc && webpack --config webpack.prod.js",
|
|
"docs": "jsdoc -c jsdoc.json",
|
|
"tsc": "tsc --project lib/tsconfig.json && tscpaths -p lib/tsconfig.json -s lib -o dist/@types",
|
|
"lint": "yarn lint:tsc && yarn lint:eslint",
|
|
"lint:eslint": "eslint --ext .ts lib/",
|
|
"lint:tsc": "tsc --noEmit --emitDeclarationOnly false --project lib/tsconfig.json",
|
|
"test:unit": "jest spec --coverage",
|
|
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "*",
|
|
"@babel/preset-env": "*",
|
|
"@types/crypto-js": "^4.1.1",
|
|
"@types/jest": "^28.1.4",
|
|
"@types/jsdom": "^16.2.14",
|
|
"@types/libsodium-wrappers": "^0.7.9",
|
|
"@types/lodash": "^4.14.179",
|
|
"@types/semver": "^7.3.10",
|
|
"@typescript-eslint/eslint-plugin": "^5.30.0",
|
|
"babel-jest": "^28.1.2",
|
|
"babel-loader": "^8.2.3",
|
|
"circular-dependency-plugin": "^5.2.2",
|
|
"crypto-js": "^4.1.1",
|
|
"docdash": "^1.2.0",
|
|
"dom-storage": "^2.1.0",
|
|
"eslint": "*",
|
|
"eslint-plugin-prettier": "*",
|
|
"exports-loader": "^3.1.0",
|
|
"jest": "^28.1.2",
|
|
"jest-environment-jsdom": "^28.1.2",
|
|
"jsdom": "^19.0.0",
|
|
"libsodium-wrappers": "^0.7.9",
|
|
"lodash": "^4.17.21",
|
|
"nock": "^13.2.4",
|
|
"otplib": "^12.0.1",
|
|
"script-loader": "^0.7.2",
|
|
"ts-jest": "^28.0.5",
|
|
"ts-loader": "^9.2.6",
|
|
"ts-node": "^10.8.1",
|
|
"tscpaths": "0.0.9",
|
|
"typescript": "*",
|
|
"uuid": "^8.3.2",
|
|
"webpack": "*",
|
|
"webpack-cli": "*",
|
|
"webpack-merge": "*"
|
|
},
|
|
"dependencies": {
|
|
"@standardnotes/api": "workspace:*",
|
|
"@standardnotes/common": "^1.25.0",
|
|
"@standardnotes/domain-events": "^2.39.0",
|
|
"@standardnotes/encryption": "workspace:*",
|
|
"@standardnotes/features": "workspace:*",
|
|
"@standardnotes/files": "workspace:*",
|
|
"@standardnotes/models": "workspace:*",
|
|
"@standardnotes/responses": "workspace:*",
|
|
"@standardnotes/security": "^1.2.0",
|
|
"@standardnotes/services": "workspace:*",
|
|
"@standardnotes/settings": "^1.17.0",
|
|
"@standardnotes/sncrypto-common": "workspace:*",
|
|
"@standardnotes/sncrypto-web": "workspace:*",
|
|
"@standardnotes/utils": "workspace:*",
|
|
"reflect-metadata": "^0.1.13",
|
|
"semver": "^7.3.7"
|
|
}
|
|
}
|