metadata-based-explorer1
Version:
Box UI Elements
301 lines (300 loc) • 12.9 kB
JSON
{
"name": "metadata-based-explorer1",
"version": "0.1.0",
"description": "Box UI Elements",
"author": "Box (https://www.box.com/)",
"license": "SEE LICENSE IN LICENSE",
"homepage": "https://developer.box.com/docs/box-ui-elements",
"main": "es/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"keywords": [
"box",
"box platform",
"box-platform",
"box content",
"box-content",
"ui elements",
"preview",
"uploader",
"picker",
"explorer",
"box-content-ui-elements",
"box-content-preview",
"box-content-uploader",
"box-content-picker",
"box-content-explorer"
],
"repository": {
"type": "git",
"url": "git@github.com:box/box-ui-elements.git"
},
"bugs": {
"url": "https://github.com/box/box-ui-elements/issues"
},
"scripts": {
"build": "yarn build:dev:dist",
"build:ci:es": "yarn build:prod:es",
"build:ci:dist": "LANGUAGE=en-US ENTRY=explorer REACT=true yarn build:prod:dist",
"build:dev:dist": "LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev webpack --config scripts/webpack.config.js --mode development --progress --colors",
"build:dev:es": "BABEL_ENV=dev NODE_ENV=dev yarn build:es --copy-files --source-maps inline --watch --ignore \"**/__tests__/**,**/__mocks__/**\"",
"build:es": "babel src --out-dir es",
"build:i18n": "props2es",
"build:npm": "npm-run-all clean build:i18n build:prod:npm build:prod:es",
"build:prod:analyze": "BUNDLE_ANALYSIS=true npm-run-all setup build:prod:npm",
"build:prod:es": "BABEL_ENV=npm NODE_ENV=production yarn build:es --ignore \"**/__tests__/**,**/__mocks__/**\"",
"build:prod:dist": "NODE_ENV=production webpack --config scripts/webpack.config.js --mode production",
"build:prod:examples": "LANGUAGE=en-US REACT=true NODE_ENV=production node --max_old_space_size=8192 node_modules/react-styleguidist/bin/styleguidist.js build --config scripts/styleguide.config.js --mode production",
"build:prod:npm": "BABEL_ENV=production OUTPUT=dist LANGUAGE=en-US REACT=true yarn build:prod:dist",
"build:variables": "node ./scripts/build-style-vars.js ./src/styles/_variables.scss ./src/styles/variables.js ./src/styles/variables.json",
"clean": "rm -rf dist es i18n/json i18n/*.js reports styleguide",
"copy:styles": "copyfiles './src/**/*.scss' es --up 1",
"copy:flow": "flow-copy-source --ignore \"**/__tests__/**\" --ignore \"**/__mocks__/**\" ./src ./es",
"cy:open": "yarn cy:wait; yarn cypress open",
"cy:run": "yarn cy:wait; yarn cypress run --spec \"test/integration/**/*.test.js\"",
"cy:wait": "wait-on http-get://localhost:6060/#",
"lint": "npm-run-all lint:*",
"lint:js": "eslint --max-warnings=0 .",
"lint:css": "stylelint \"src/**/*.scss\" --syntax scss",
"prebuild:es": "npm-run-all build:variables copy:styles copy:flow",
"release": "yarn release:beta",
"release:beta": "BRANCH=master ./scripts/release.sh",
"release:latest": "BRANCH=release ./scripts/release.sh",
"release:hotfix": "HOTFIX=true ./scripts/release.sh",
"release:cdn": "yarn setup; node ./scripts/prod.js",
"setup": "yarn install --frozen-lockfile; npm-run-all clean build:i18n",
"start": "npm-run-all setup start:examples",
"start:dev": "yarn setup; LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev node --max_old_space_size=8192 node_modules/webpack-dev-server/bin/webpack-dev-server.js --config scripts/webpack.config.js --mode development",
"start:examples": "EXAMPLES=true LANGUAGE=en-US REACT=true BABEL_ENV=dev NODE_ENV=dev node --max_old_space_size=8192 node_modules/react-styleguidist/bin/styleguidist.js server --config scripts/styleguide.config.js --mode development",
"start:examples:legacy": "BROWSERSLIST_ENV=production yarn start:examples",
"start:npm": "yarn setup; yarn build:dev:es",
"test": "BABEL_ENV=test NODE_ENV=test yarn jest",
"test:e2e": "BROWSERSLIST_ENV=test npm-run-all -p -r start:examples cy:run",
"test:e2e:open": "BROWSERSLIST_ENV=test npm-run-all -p -r start:examples cy:open"
},
"browserslist": {
"production": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 Edge versions",
"last 2 iOS versions",
"IE 11"
],
"dev": ["last 1 Chrome versions", "last 1 Firefox versions"]
},
"lint-staged": {
"linters": {
"*.js": ["eslint --fix", "git add"],
"*.md": ["prettier --write --parser=markdown", "git add"],
"*.json": ["prettier --write --parser=json", "git add"],
"*.html": ["prettier --write --parser=html", "git add"],
"*.scss": ["prettier --write --parser=scss", "stylelint --syntax scss --fix", "git add"],
"*.css": ["prettier --write --parser=css", "stylelint --syntax css --fix", "git add"]
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "./scripts/prepush.sh",
"commit-msg": "commitlint -e"
}
},
"jest": {
"clearMocks": true,
"restoreMocks": true,
"moduleNameMapper": {
"react-intl-locale-data": "<rootDir>/node_modules/react-intl/locale-data/en.js",
"box-ui-elements-locale-data": "<rootDir>/i18n/en-US.js",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/scripts/jest/fileMock.js",
"\\.(css|less|scss)$": "<rootDir>/scripts/jest/mocks/styleMock.js",
"react-virtualized/dist/es": "react-virtualized/dist/commonjs"
},
"transformIgnorePatterns": ["node_modules/(?!(react-virtualized/dist/es))"],
"collectCoverage": false,
"coverageDirectory": "<rootDir>/reports",
"collectCoverageFrom": ["src/**/*.js", "!**/node_modules/**", "!**/__tests__/**"],
"globalSetup": "<rootDir>/scripts/jest/env-setup.js",
"roots": ["src"],
"setupFilesAfterEnv": [
"<rootDir>/node_modules/regenerator-runtime/runtime.js",
"<rootDir>/scripts/jest/enzyme-adapter.js"
],
"snapshotSerializers": ["enzyme-to-json/serializer"]
},
"engines": {
"node": ">=8.x",
"yarn": ">=1.10.0"
},
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.5.5",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@babel/template": "^7.4.4",
"@babel/types": "^7.5.5",
"@box/frontend": "^2.0.0",
"@box/languages": "^1.0.0",
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"@commitlint/travis-cli": "^8.1.0",
"@hapi/address": "^2.0.0",
"autoprefixer": "^9.6.1",
"axios": "0.18.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.2",
"babel-jest": "^24.8.0",
"babel-loader": "^8.0.6",
"babel-plugin-dynamic-import-node": "^2.2.0",
"babel-plugin-flow-react-proptypes": "^24.1.2",
"babel-plugin-react-intl": "^2.4.0",
"babel-plugin-react-remove-properties": "^0.2.5",
"babel-plugin-rewire": "^1.0.0",
"babel-preset-react-app": "^7.0.0",
"circular-dependency-plugin": "^5.0.2",
"classnames": "^2.2.6",
"color": "^3.0.0",
"colors": "^1.3.3",
"conventional-changelog": "^2.0.3",
"conventional-changelog-cli": "^2.0.5",
"conventional-github-releaser": "^3.1.2",
"copyfiles": "^2.1.0",
"core-js": "^2.5.7",
"css-loader": "^1.0.0",
"cssnano": "^4.1.0",
"cypress": "3.2.0",
"deepmerge": "^2.1.1",
"draft-js": "^0.10.1",
"enzyme": "3.10.0",
"enzyme-adapter-react-16": "^1.12.1",
"enzyme-to-json": "^3.3.4",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.0.1",
"eslint-plugin-babel": "^5.2.0",
"eslint-plugin-cypress": "^2.2.1",
"eslint-plugin-flowtype": "^2.34.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jest": "^21.21.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-lodash": "^5.1.0",
"eslint-plugin-prettier": "^2.6.2",
"eslint-plugin-react": "^7.8.2",
"eslint-plugin-react-hooks": "^1.6.0",
"filesize": "^4.1.2",
"flow-bin": "^0.95.1",
"flow-copy-source": "^2.0.2",
"flow-typed": "^2.5.1",
"form-serialize": "^0.7.2",
"formik": "^1.5.4",
"husky": "^2.4.1",
"ilib-tree-node": "^1.2.0",
"immutable": "^3.7.4",
"intl": "^1.2.5",
"intl-messageformat": "^2.2.0",
"jest": "^24.8.0",
"jsuri": "^1.3.1",
"leche": "^2.2.3",
"lint-staged": "^8.0.4",
"lodash": "^4.17.15",
"message-accumulator": "^2.1.1",
"mini-css-extract-plugin": "^0.4.2",
"mocha": "^5.2.0",
"mousetrap": "^1.6.3",
"mutationobserver-shim": "^0.3.3",
"node-sass": "^4.9.3",
"npm-run-all": "^4.1.3",
"nsp": "^3.2.1",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"pikaday": "^1.8.0",
"postcss-loader": "^3.0.0",
"postcss-safe-parser": "^4.0.1",
"prettier": "^1.16.4",
"prettier-eslint-cli": "^4.7.1",
"prop-types": "^15.6.2",
"properties-parser": "^0.3.1",
"query-string": "5.1.1",
"raf": "^3.4.0",
"react": "^16.8.0",
"react-animate-height": "^2.0.8",
"react-beautiful-dnd": "^9.0.2",
"react-dom": "^16.8.0",
"react-draggable": "^3.3.0",
"react-immutable-proptypes": "^2.1.0",
"react-intl": "^2.8.0",
"react-measure": "^2.3.0",
"react-modal": "^3.8.1",
"react-process-string": "^1.2.0",
"react-router-dom": "^5.0.0",
"react-styleguidist": "^8.0.6",
"react-tether": "1.0.1",
"react-textarea-autosize": "^7.1.0",
"react-virtualized": "^9.21.0",
"regenerator-runtime": "^0.13.2",
"sass-lint": "^1.12.1",
"sass-loader": "^7.1.0",
"sass-variable-parser": "^1.2.2",
"scroll-into-view-if-needed": "^2.2.20",
"semantic-release": "^16.0.0-beta.19",
"sinon": "^2.3.7",
"string-replace-loader": "^2.1.1",
"style-loader": "^0.23.0",
"stylelint": "^10.1.0",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^18.3.0",
"stylelint-order": "^3.0.1",
"tabbable": "^1.1.3",
"uuid": "^3.3.2",
"wait-on": "^3.2.0",
"webpack": "^4.19.0",
"webpack-bundle-analyzer": "^3.0.2",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.14",
"worker-farm": "^1.6.0"
},
"peerDependencies": {
"@hapi/address": "^2.0.0",
"axios": "^0.18.1",
"classnames": "^2.2.5",
"draft-js": "^0.10.1",
"filesize": "^4.1.2",
"form-serialize": "^0.7.2",
"formik": "^1.5.4",
"ilib-tree-node": "^1.2.0",
"immutable": "^3.7.4",
"jsuri": "^1.3.1",
"lodash": "^4.17.5",
"message-accumulator": "^2.1.1",
"mousetrap": "^1.6.3",
"pikaday": "^1.8.0",
"query-string": "5.1.1",
"react": "^16.8.0",
"react-animate-height": "^2.0.8",
"react-beautiful-dnd": "^9.0.2",
"react-dom": "^16.8.0",
"react-draggable": "^3.3.0",
"react-immutable-proptypes": "^2.1.0",
"react-intl": "^2.8.0",
"react-measure": "^2.3.0",
"react-modal": "^3.8.1",
"react-process-string": "^1.2.0",
"react-router-dom": "^5.0.0",
"react-tether": "^1.0.0",
"react-textarea-autosize": "^7.1.0",
"react-virtualized": "^9.21.0",
"regenerator-runtime": "^0.13.2",
"scroll-into-view-if-needed": "^2.2.20",
"tabbable": "^1.1.2",
"uuid": "^3.3.2"
}
}