storj/web/satellite/package.json
Monty Anderson 2c83503712 web/satellite: type + lint files store
This change makes the files store fully type-safe. It builds with `npm run build` and lints with `npm run lint`, displaying no errors or warnings.

There was an issue where I was unable to use the newer web APIs for filesystem operations, I think TypesScript (and Vue?) may need to be updated - I already tried updating `@types/web`. To mitigate this, I added slim type definitions for only the parts we use. The definitions are exactly as they appear on MDN and even include links to the relevant documentation. In future they can be removed with no compatibility issues.

Change-Id: I7b8b4a5f95caabdb546157c65e9f2f42c5132a6f
2022-03-29 12:23:16 +00:00

134 lines
3.8 KiB
JSON

{
"name": "storj-satellite",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"lint": "vue-cli-service lint --max-warnings 0 --fix && stylelint . --max-warnings 0 --fix",
"lint-ci": "vue-cli-service lint --max-warnings 0 --no-fix && stylelint . --max-warnings 0 --no-fix",
"build": "vue-cli-service build",
"wasm": "chmod +x ./scripts/build-wasm.sh && ./scripts/build-wasm.sh",
"wasm-dev": "chmod +x ./scripts/build-wasm-dev.sh && ./scripts/build-wasm-dev.sh",
"dev": "vue-cli-service build --mode development --watch",
"test": "vue-cli-service test:unit"
},
"dependencies": {
"@aws-crypto/sha256-browser": "2.0.1",
"@aws-sdk/signature-v4": "3.47.2",
"@aws-sdk/types": "3.47.1",
"apollo-cache-inmemory": "1.6.6",
"apollo-client": "2.6.10",
"apollo-link": "1.2.14",
"apollo-link-context": "1.0.20",
"apollo-link-error": "1.1.13",
"apollo-link-http": "1.5.17",
"aws-sdk": "2.853.0",
"bip39": "3.0.3",
"chart.js": "2.9.4",
"graphql": "15.3.0",
"graphql-tag": "2.11.0",
"load-script": "1.0.0",
"pbkdf2": "3.1.1",
"pretty-bytes": "5.6.0",
"qrcode": "1.4.4",
"stripe": "8.96.0",
"vue": "2.6.12",
"vue-chartjs": "3.5.1",
"vue-class-component": "7.2.5",
"vue-clipboard2": "0.3.1",
"vue-property-decorator": "9.0.0",
"vue-recaptcha": "1.3.0",
"vue-router": "3.4.9",
"vue2-datepicker": "3.7.0",
"vuex": "3.6.0"
},
"devDependencies": {
"@babel/core": "7.14.8",
"@babel/plugin-proposal-object-rest-spread": "7.11.0",
"@types/chart.js": "2.9.34",
"@types/filesystem": "0.0.32",
"@types/node": "13.11.1",
"@types/pbkdf2": "3.1.0",
"@types/qrcode": "1.4.1",
"@types/vue2-datepicker": "3.3.0",
"@typescript-eslint/eslint-plugin": "4.28.5",
"@typescript-eslint/parser": "4.28.5",
"@vue/cli-plugin-babel": "4.5.6",
"@vue/cli-plugin-eslint": "4.5.13",
"@vue/cli-plugin-typescript": "4.5.6",
"@vue/cli-plugin-unit-jest": "4.5.6",
"@vue/cli-service": "4.5.6",
"@vue/eslint-config-typescript": "7.0.0",
"@vue/test-utils": "1.1.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.1.0",
"compression-webpack-plugin": "6.0.0",
"eslint": "6.7.2",
"eslint-plugin-storj": "github:storj/eslint-storj",
"eslint-plugin-vue": "7.16.0",
"jest-fetch-mock": "3.0.3",
"sass": "1.37.0",
"sass-loader": "10.0.2",
"sinon": "9.0.3",
"stylelint": "13.7.1",
"stylelint-config-standard": "20.0.0",
"stylelint-scss": "3.18.0",
"ts-jest": "26.3.0",
"typescript": "4.0.2",
"vue-svg-loader": "0.16.0",
"vue-template-compiler": "2.6.12",
"webpack-bundle-analyzer": "4.4.2",
"worker-plugin": "5.0.0"
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"jest": {
"automock": false,
"setupFiles": [
"./jestSetup.ts"
],
"globals": {
"ts-jest": {
"diagnostics": false
}
},
"moduleFileExtensions": [
"js",
"jsx",
"json",
"vue",
"ts",
"tsx"
],
"collectCoverage": true,
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.vue$": "vue-jest",
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
"^.+\\.tsx?$": "ts-jest",
"^.+\\.svg$": "<rootDir>/tests/unit/mock/svgTransform.js"
},
"transformIgnorePatterns": [
"/node_modules/(?!(apollo-client|apollo-link|vue2-datepicker))"
],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1"
},
"snapshotSerializers": [
"jest-serializer-vue"
],
"testMatch": [
"**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"
],
"testURL": "http://localhost/"
}
}