diff --git a/package-lock.json b/package-lock.json index fc017cfb1..b6105da8b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "network-canvas-architect", - "version": "6.5.0", + "version": "6.5.1", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 861750b43..c9d4fbd1e 100644 --- a/package.json +++ b/package.json @@ -1,273 +1,273 @@ { - "name": "network-canvas-architect", - "version": "6.5.0", - "productName": "Network Canvas Architect", - "description": "A tool for building Network Canvas interviews.", - "author": "Complex Data Collective ", - "private": true, - "engines": { - "node": "14.21.3", - "npm": "8.19.4" - }, - "scripts": { - "postinstall": "cd network-canvas && npm install && cd ../", - "pack": "electron-builder --dir", - "update-submodules": "git submodule update --init --recursive", - "start": "cross-env BUILD_TARGET=web node scripts/start.js", - "start:electron": "npm run start:architect:electron", - "start:architect:electron": "node scripts/start.js", - "start:network-canvas:electron": "cd network-canvas && npm run start:electron", - "preelectron:dev": "node scripts/build-electron-dev.js", - "dev:electron": "cross-env NODE_ENV=development WEBPACK_NC_DEV_SERVER_PORT=3000 WEBPACK_DEV_SERVER_PORT=3003 electron electron-dev/", - "build": "npm run build:architect && npm run build:network-canvas", - "build:architect": "node scripts/build.js", - "build:network-canvas": "cd network-canvas && npm install && npm run build:electron && cd ../ && node scripts/move-network-canvas-build.js", - "lint": "npm run lint:js && npm run sass-lint", - "lint:js": "eslint src", - "sass-lint": "stylelint **/*.scss", - "test": "cross-env TEST=true node scripts/test.js --env=jsdom", - "test:update-snapshots": "node scripts/test.js --env=jsdom --updateSnapshot", - "build-docs": "jsdoc src -r -d docs-build -c ./jsdoc.conf.json --verbose", - "electron": "env NODE_ENV=build electron ./app", - "generate-icons": "node scripts/generate-app-icons.js", - "dist": "electron-builder", - "dist:mac": "npm run build && electron-builder -m --x64", - "dist:linux": "npm run build && electron-builder -l", - "dist:win": "npm run build && electron-builder -w", - "dist:all": "npm run build && electron-builder -mlw", - "bump": "node scripts/bump.js", - "preflight": "npm run lint:js && npm run lint:sass -- --max-warnings 0 && npm test -- --coverage" - }, - "repository": { - "type": "git" - }, - "devDependencies": { - "@babel/cli": "^7.12.1", - "@babel/core": "^7.12.3", - "@babel/eslint-parser": "^7.13.10", - "@babel/eslint-plugin": "^7.13.10", - "@babel/plugin-proposal-class-properties": "^7.12.1", - "@babel/preset-react": "^7.12.1", - "@codaco/ui": "^5.8.3", - "@electron/notarize": "^1.2.3", - "@material-ui/icons": "^4.11.2", - "@tippyjs/react": "^4.2.5", - "animejs": "^2.2.0", - "archiver": "^3.1.1", - "autoprefixer": "^9.8.8", - "axios": "^0.27.2", - "babel-jest": "^26.6.3", - "babel-loader": "^8.2.2", - "babel-runtime": "6.26.0", - "case-sensitive-paths-webpack-plugin": "2.1.1", - "chalk": "1.1.3", - "change-case": "^3.0.1", - "classnames": "^2.2.6", - "compare-versions": "^3.6.0", - "cross-env": "^5.2.0", - "css-loader": "^1.0.0", - "csv-parse": "^4.10.1", - "csvtojson": "^2.0.10", - "decompress": "^4.2.1", - "dmg-builder": "~23.6.0", - "dotenv": "4.0.0", - "electron": "^9.4.4", - "electron-builder": "^22.7.0", - "electron-devtools-installer": "^3.2.0", - "electron-log": "^4.2.2", - "emoji-dictionary": "^1.0.9", - "enzyme": "^3.11.0", - "enzyme-adapter-react-16": "^1.15.4", - "enzyme-to-json": "^3.6.1", - "eslint": "^7.0.0", - "eslint-config-airbnb": "^18.2.1", - "eslint-config-react-app": "^6.0.0", - "eslint-import-resolver-alias": "^1.1.2", - "eslint-loader": "^4.0.2", - "eslint-plugin-import": "2.22.1", - "eslint-plugin-jsx-a11y": "6.4.1", - "eslint-plugin-react": "^7.11.1", - "faker": "^4.1.0", - "file-loader": "^1.1.11", - "framer-motion": "^5.5.6", - "fs-extra": "^8.1.0", - "fuse.js": "^3.6.1", - "history": "^4.7.2", - "html-webpack-plugin": "^4.3.0", - "icon-gen": "^1.0.5", - "jest": "^26.4.2", - "jest-date-mock": "^1.0.8", - "jszip": "^3.10.1", - "lodash": "^4.17.19", - "luxon": "^1.24.1", - "mini-css-extract-plugin": "^1.6.2", - "object-hash": "^1.3.0", - "path-to-regexp": "^2.4.0", - "postcss": "^8.4.28", - "postcss-loader": "^4.3.0", - "postcss-preset-env": "^9.1.2", - "postcss-url": "^8.0.0", - "prop-types": "^15.6.2", - "react": "^16.13.1", - "react-dev-utils": "^11.0.4", - "react-dom": "^16.13.1", - "react-error-overlay": "^5.0.4", - "react-flip-toolkit": "^6.5.4", - "react-grid-layout": "^0.16.6", - "react-redux": "^7.2.1", - "react-router-dom": "~5.2.0", - "react-router-hash-link": "^2.4.1", - "react-scripts": "^4.0.3", - "react-select": "^3.1.0", - "react-sortable-hoc": "^2.0.0", - "react-table": "^7.7.0", - "react-test-renderer": "^16.13.1", - "react-transform-hmr": "^1.0.4", - "react-transition-group": "^4.4.1", - "react-virtualized-auto-sizer": "^1.0.6", - "react-window": "^1.8.6", - "recompose": "^0.30.0", - "redux": "^4.0.5", - "redux-form": "^8.3.6", - "redux-logger": "^2.7.4", - "redux-mock-store": "^1.5.4", - "redux-persist": "^6.0.0", - "redux-thunk": "^2.3.0", - "reselect": "^3.0.0", - "rxjs": "^6.6.6", - "sass": "^1.56.1", - "sass-loader": "^10.4.1", - "scrollparent": "^2.0.1", - "style-loader": "^0.21.0", - "stylelint": "^15.10.3", - "stylelint-config-standard": "^34.0.0", - "stylelint-config-standard-scss": "^10.0.0", - "svg2png": "^3.0.1", - "thread-loader": "^1.2.0", - "url-loader": "^1.1.1", - "uuid": "^3.4.0", - "webpack": "^4.43.0", - "webpack-dev-server": "^3.11.0", - "webpack-manifest-plugin": "^2.0.4" - }, - "homepage": ".", - "main": "www/electron-starter.js", - "build": { - "extends": null, - "appId": "NetworkCanvasArchitect", - "afterSign": "./build-resources/scripts/afterSignHook.js", - "directories": { - "buildResources": "build-resources", - "output": "release-builds" + "name": "network-canvas-architect", + "version": "6.5.1", + "productName": "Network Canvas Architect", + "description": "A tool for building Network Canvas interviews.", + "author": "Complex Data Collective ", + "private": true, + "engines": { + "node": "14.21.3", + "npm": "8.19.4" }, - "mac": { - "category": "public.app-category.education", - "hardenedRuntime": true, - "entitlements": "./build-resources/entitlements.mac.inherit.plist" + "scripts": { + "postinstall": "cd network-canvas && npm install && cd ../", + "pack": "electron-builder --dir", + "update-submodules": "git submodule update --init --recursive", + "start": "cross-env BUILD_TARGET=web node scripts/start.js", + "start:electron": "npm run start:architect:electron", + "start:architect:electron": "node scripts/start.js", + "start:network-canvas:electron": "cd network-canvas && npm run start:electron", + "preelectron:dev": "node scripts/build-electron-dev.js", + "dev:electron": "cross-env NODE_ENV=development WEBPACK_NC_DEV_SERVER_PORT=3000 WEBPACK_DEV_SERVER_PORT=3003 electron electron-dev/", + "build": "npm run build:architect && npm run build:network-canvas", + "build:architect": "node scripts/build.js", + "build:network-canvas": "cd network-canvas && npm install && npm run build:electron && cd ../ && node scripts/move-network-canvas-build.js", + "lint": "npm run lint:js && npm run sass-lint", + "lint:js": "eslint src", + "sass-lint": "stylelint **/*.scss", + "test": "cross-env TEST=true node scripts/test.js --env=jsdom", + "test:update-snapshots": "node scripts/test.js --env=jsdom --updateSnapshot", + "build-docs": "jsdoc src -r -d docs-build -c ./jsdoc.conf.json --verbose", + "electron": "env NODE_ENV=build electron ./app", + "generate-icons": "node scripts/generate-app-icons.js", + "dist": "electron-builder", + "dist:mac": "npm run build && electron-builder -m --x64", + "dist:linux": "npm run build && electron-builder -l", + "dist:win": "npm run build && electron-builder -w", + "dist:all": "npm run build && electron-builder -mlw", + "bump": "node scripts/bump.js", + "preflight": "npm run lint:js && npm run lint:sass -- --max-warnings 0 && npm test -- --coverage" }, - "win": { - "target": "nsis", - "certificateSha1": "8F1243989C0B23B29B50E872282AAB00A4302CCD" + "repository": { + "type": "git" }, - "linux": { - "maintainer": "Joshua Melville ", - "target": [ - { - "target": "deb", - "arch": [ - "x64", - "arm64" - ] + "devDependencies": { + "@babel/cli": "^7.12.1", + "@babel/core": "^7.12.3", + "@babel/eslint-parser": "^7.13.10", + "@babel/eslint-plugin": "^7.13.10", + "@babel/plugin-proposal-class-properties": "^7.12.1", + "@babel/preset-react": "^7.12.1", + "@codaco/ui": "^5.8.3", + "@electron/notarize": "^1.2.3", + "@material-ui/icons": "^4.11.2", + "@tippyjs/react": "^4.2.5", + "animejs": "^2.2.0", + "archiver": "^3.1.1", + "autoprefixer": "^9.8.8", + "axios": "^0.27.2", + "babel-jest": "^26.6.3", + "babel-loader": "^8.2.2", + "babel-runtime": "6.26.0", + "case-sensitive-paths-webpack-plugin": "2.1.1", + "chalk": "1.1.3", + "change-case": "^3.0.1", + "classnames": "^2.2.6", + "compare-versions": "^3.6.0", + "cross-env": "^5.2.0", + "css-loader": "^1.0.0", + "csv-parse": "^4.10.1", + "csvtojson": "^2.0.10", + "decompress": "^4.2.1", + "dmg-builder": "~23.6.0", + "dotenv": "4.0.0", + "electron": "^9.4.4", + "electron-builder": "^22.7.0", + "electron-devtools-installer": "^3.2.0", + "electron-log": "^4.2.2", + "emoji-dictionary": "^1.0.9", + "enzyme": "^3.11.0", + "enzyme-adapter-react-16": "^1.15.4", + "enzyme-to-json": "^3.6.1", + "eslint": "^7.0.0", + "eslint-config-airbnb": "^18.2.1", + "eslint-config-react-app": "^6.0.0", + "eslint-import-resolver-alias": "^1.1.2", + "eslint-loader": "^4.0.2", + "eslint-plugin-import": "2.22.1", + "eslint-plugin-jsx-a11y": "6.4.1", + "eslint-plugin-react": "^7.11.1", + "faker": "^4.1.0", + "file-loader": "^1.1.11", + "framer-motion": "^5.5.6", + "fs-extra": "^8.1.0", + "fuse.js": "^3.6.1", + "history": "^4.7.2", + "html-webpack-plugin": "^4.3.0", + "icon-gen": "^1.0.5", + "jest": "^26.4.2", + "jest-date-mock": "^1.0.8", + "jszip": "^3.10.1", + "lodash": "^4.17.19", + "luxon": "^1.24.1", + "mini-css-extract-plugin": "^1.6.2", + "object-hash": "^1.3.0", + "path-to-regexp": "^2.4.0", + "postcss": "^8.4.28", + "postcss-loader": "^4.3.0", + "postcss-preset-env": "^9.1.2", + "postcss-url": "^8.0.0", + "prop-types": "^15.6.2", + "react": "^16.13.1", + "react-dev-utils": "^11.0.4", + "react-dom": "^16.13.1", + "react-error-overlay": "^5.0.4", + "react-flip-toolkit": "^6.5.4", + "react-grid-layout": "^0.16.6", + "react-redux": "^7.2.1", + "react-router-dom": "~5.2.0", + "react-router-hash-link": "^2.4.1", + "react-scripts": "^4.0.3", + "react-select": "^3.1.0", + "react-sortable-hoc": "^2.0.0", + "react-table": "^7.7.0", + "react-test-renderer": "^16.13.1", + "react-transform-hmr": "^1.0.4", + "react-transition-group": "^4.4.1", + "react-virtualized-auto-sizer": "^1.0.6", + "react-window": "^1.8.6", + "recompose": "^0.30.0", + "redux": "^4.0.5", + "redux-form": "^8.3.6", + "redux-logger": "^2.7.4", + "redux-mock-store": "^1.5.4", + "redux-persist": "^6.0.0", + "redux-thunk": "^2.3.0", + "reselect": "^3.0.0", + "rxjs": "^6.6.6", + "sass": "^1.56.1", + "sass-loader": "^10.4.1", + "scrollparent": "^2.0.1", + "style-loader": "^0.21.0", + "stylelint": "^15.10.3", + "stylelint-config-standard": "^34.0.0", + "stylelint-config-standard-scss": "^10.0.0", + "svg2png": "^3.0.1", + "thread-loader": "^1.2.0", + "url-loader": "^1.1.1", + "uuid": "^3.4.0", + "webpack": "^4.43.0", + "webpack-dev-server": "^3.11.0", + "webpack-manifest-plugin": "^2.0.4" + }, + "homepage": ".", + "main": "www/electron-starter.js", + "build": { + "extends": null, + "appId": "NetworkCanvasArchitect", + "afterSign": "./build-resources/scripts/afterSignHook.js", + "directories": { + "buildResources": "build-resources", + "output": "release-builds" }, - { - "target": "rpm", - "arch": [ - "x64", - "arm64" - ] + "mac": { + "category": "public.app-category.education", + "hardenedRuntime": true, + "entitlements": "./build-resources/entitlements.mac.inherit.plist" }, - { - "target": "AppImage", - "arch": [ - "x64", - "arm64" - ] + "win": { + "target": "nsis", + "certificateSha1": "8F1243989C0B23B29B50E872282AAB00A4302CCD" }, - { - "target": "tar.gz", - "arch": [ - "x64", - "arm64" - ] - } - ] - }, - "fileAssociations": { - "ext": "netcanvas", - "description": "Network Canvas interview protocol", - "icon": "file", - "role": "Editor" - }, - "publish": [ - { - "provider": "github", - "owner": "complexdatacollective", - "repo": "architect" - } - ] - }, - "jest": { - "collectCoverageFrom": [ - "src/**/*.{js,jsx}", - "!src/protocol-validation/**", - "!network-canvas/**", - "!app/**", - "!electron-dev/**", - "!release-builds/**" - ], - "snapshotSerializers": [ - "enzyme-to-json/serializer" - ], - "setupFiles": [ - "jest-date-mock", - "/config/polyfills.js", - "/config/jest/polyfills.js", - "/config/jest/enzyme.js", - "/config/jest/automock.js" - ], - "testPathIgnorePatterns": [ - "[/\\\\](www|docs|node_modules|scripts)[/\\\\]", - "[/\\\\](network-canvas)[/\\\\]", - "[/\\\\](electron-dev)[/\\\\]", - "[/\\\\](app)[/\\\\]", - "[/\\\\](src/protocol-validation)[/\\\\]" - ], - "modulePathIgnorePatterns": [ - "[/\\\\](network-canvas)[/\\\\]", - "[/\\\\](electron-dev)[/\\\\]", - "[/\\\\](app)[/\\\\]", - "[/\\\\](src/protocol-validation)[/\\\\]", - "[/\\\\](release-builds)[/\\\\]" - ], - "testEnvironment": "node", - "testURL": "http://localhost", - "transform": { - "^.+\\.(js|jsx)$": "/node_modules/babel-jest", - "^.+\\.css$": "/config/jest/cssTransform.js", - "^(?!.*\\.(js|jsx|css|json)$)": "/config/jest/fileTransform.js" + "linux": { + "maintainer": "Joshua Melville ", + "target": [ + { + "target": "deb", + "arch": [ + "x64", + "arm64" + ] + }, + { + "target": "rpm", + "arch": [ + "x64", + "arm64" + ] + }, + { + "target": "AppImage", + "arch": [ + "x64", + "arm64" + ] + }, + { + "target": "tar.gz", + "arch": [ + "x64", + "arm64" + ] + } + ] + }, + "fileAssociations": { + "ext": "netcanvas", + "description": "Network Canvas interview protocol", + "icon": "file", + "role": "Editor" + }, + "publish": [ + { + "provider": "github", + "owner": "complexdatacollective", + "repo": "architect" + } + ] }, - "transformIgnorePatterns": [ - "/node_modules/(?!@codaco/ui).+\\.(js|jsx)$" - ], - "testRegex": "(/__tests__/.*|(\\.|/))\\.test\\.[jt]sx?$", - "moduleNameMapper": { - "@app/(.*)$": "/src/$1", - "@components/(.*)$": "/src/components/$1", - "@selectors/(.*)$": "/src/selectors/$1", - "@hooks/(.*)$": "/src/hooks/$1", - "@modules/(.*)$": "/src/ducks/modules/$1", - "@utils/(.*)$": "/src/utils/$1", - "^react-native$": "react-native-web" + "jest": { + "collectCoverageFrom": [ + "src/**/*.{js,jsx}", + "!src/protocol-validation/**", + "!network-canvas/**", + "!app/**", + "!electron-dev/**", + "!release-builds/**" + ], + "snapshotSerializers": [ + "enzyme-to-json/serializer" + ], + "setupFiles": [ + "jest-date-mock", + "/config/polyfills.js", + "/config/jest/polyfills.js", + "/config/jest/enzyme.js", + "/config/jest/automock.js" + ], + "testPathIgnorePatterns": [ + "[/\\\\](www|docs|node_modules|scripts)[/\\\\]", + "[/\\\\](network-canvas)[/\\\\]", + "[/\\\\](electron-dev)[/\\\\]", + "[/\\\\](app)[/\\\\]", + "[/\\\\](src/protocol-validation)[/\\\\]" + ], + "modulePathIgnorePatterns": [ + "[/\\\\](network-canvas)[/\\\\]", + "[/\\\\](electron-dev)[/\\\\]", + "[/\\\\](app)[/\\\\]", + "[/\\\\](src/protocol-validation)[/\\\\]", + "[/\\\\](release-builds)[/\\\\]" + ], + "testEnvironment": "node", + "testURL": "http://localhost", + "transform": { + "^.+\\.(js|jsx)$": "/node_modules/babel-jest", + "^.+\\.css$": "/config/jest/cssTransform.js", + "^(?!.*\\.(js|jsx|css|json)$)": "/config/jest/fileTransform.js" + }, + "transformIgnorePatterns": [ + "/node_modules/(?!@codaco/ui).+\\.(js|jsx)$" + ], + "testRegex": "(/__tests__/.*|(\\.|/))\\.test\\.[jt]sx?$", + "moduleNameMapper": { + "@app/(.*)$": "/src/$1", + "@components/(.*)$": "/src/components/$1", + "@selectors/(.*)$": "/src/selectors/$1", + "@hooks/(.*)$": "/src/hooks/$1", + "@modules/(.*)$": "/src/ducks/modules/$1", + "@utils/(.*)$": "/src/utils/$1", + "^react-native$": "react-native-web" + } } - } } diff --git a/public/package.json b/public/package.json index 57254fe98..c860b2e85 100644 --- a/public/package.json +++ b/public/package.json @@ -1,6 +1,6 @@ { "name": "network-canvas-architect", - "version": "6.5.0", + "version": "6.5.1", "productName": "Network Canvas Architect", "description": "A tool for building Network Canvas interviews.", "author": "Complex Data Collective",