box-ui-elements-mlh
Version:
353 lines (352 loc) • 16 kB
JSON
{
"name": "box-ui-elements-mlh",
"version": "2.0.0",
"description": "Box UI Elements",
"author": "Box (https://www.box.com/) & MLH",
"main": "es/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"types": "es/types.d.ts",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"keywords": [
"mlh"
],
"repository": {
"type": "git",
"url": "git@github.com:MaximeLhermite/box-ui-elements.git"
},
"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=development NODE_ENV=development webpack --config scripts/webpack.config.js --mode development --progress --colors",
"build:dev:es": "BABEL_ENV=development NODE_ENV=development yarn build:es --copy-files --source-maps inline --watch --ignore \"**/*.d.ts,**/__tests__/**,**/__mocks__/**\"",
"build:es": "babel src --extensions '.js,.tsx,.ts' --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 --source-maps --ignore \"**/*.d.ts,**/__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:prod:storybook": "LANGUAGE=en-US REACT=true BROWSERSLIST_ENV=production BABEL_ENV=development NODE_ENV=development build-storybook -c .storybook -o styleguide/storybook",
"build:sync": "LANGUAGE=en-US BABEL_ENV=development NODE_ENV=development RSYNC=true webpack --config scripts/webpack.config.js --mode development",
"build:variables": "cat `find src/styles/constants -name '*.scss'` > src/styles/variables.scss | node ./scripts/build-style-vars.js src/styles/variables.scss && rm src/styles/variables.scss",
"build:assets": "./scripts/asset-import/cli.js",
"clean": "rm -rf dist es i18n/json i18n/*.js reports styleguide",
"copy:flow": "flow-copy-source --ignore \"**/__tests__/**\" --ignore \"**/__mocks__/**\" --ignore \"**/*.ts\" ./src ./es && copyfiles './src/**/*.js.flow' es --up 1",
"copy:styles": "copyfiles './src/**/*.scss' es --up 1",
"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:ts": "tsc && eslint --ext=.tsx,.ts --max-warnings=0 .",
"lint:css": "stylelint \"src/**/*.scss\" --syntax scss",
"prebuild:es": "npm-run-all build:variables copy:styles ts:defs copy:flow",
"release": "yarn release:beta",
"release:beta": "DIST=beta BRANCH=master ./scripts/release.sh",
"release:hotfix": "DIST=latest HOTFIX=true ./scripts/release.sh",
"release:latest": "DIST=latest BRANCH=master ./scripts/release.sh",
"release:next": "DIST=next BRANCH=next ./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=development NODE_ENV=development 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=development NODE_ENV=development 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",
"start:storybook": "LANGUAGE=en-US REACT=true BABEL_ENV=development NODE_ENV=development start-storybook -p 6061",
"start:storybook:ci": "yarn start:storybook --ci",
"start:storybook:legacy": "BROWSERSLIST_ENV=production yarn start:storybook",
"test": "NODE_ICU_DATA=node_modules/full-icu 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",
"test:images": "yarn test -c scripts/jest/jest.config.js --maxWorkers=4",
"test:visuals": "start-server-and-test start:storybook:ci http-get://localhost:6061 test:images",
"ts:defs": "tsc --declaration --emitDeclarationOnly --declarationDir es --noEmit false"
},
"browserslist": {
"production": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 Edge versions",
"last 2 iOS versions",
"IE 11"
],
"development": ["last 1 Chrome versions", "last 1 Firefox versions"]
},
"lint-staged": {
"*.js": ["eslint --fix", "git add"],
"*.ts": ["eslint --ext=.ts --fix", "git add"],
"*.tsx": ["eslint --ext=.tsx --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"
}
},
"engines": {
"node": ">=10.x",
"yarn": ">=1.10.0"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/helper-create-class-features-plugin": "^7.8.3",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-flow-strip-types": "^7.8.3",
"@babel/plugin-transform-object-assign": "^7.8.3",
"@babel/polyfill": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/preset-flow": "^7.8.3",
"@babel/preset-react": "^7.8.3",
"@babel/preset-typescript": "^7.8.3",
"@babel/template": "^7.8.3",
"@babel/types": "^7.8.3",
"@box/cldr-data": "^34.2.0",
"@box/frontend": "8.0.0",
"@box/languages": "^1.0.0",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@formatjs/intl-pluralrules": "^1.5.2",
"@formatjs/intl-relativetimeformat": "^4.5.9",
"@formatjs/intl-unified-numberformat": "^3.2.0",
"@hapi/address": "2.1.1",
"@sambego/storybook-state": "^2.0.1",
"@storybook/addon-actions": "^5.3.9",
"@storybook/addon-docs": "^5.3.9",
"@storybook/addon-info": "^5.3.9",
"@storybook/addon-knobs": "^5.3.9",
"@storybook/addon-links": "^5.3.9",
"@storybook/addon-notes": "^5.3.9",
"@storybook/addon-storyshots": "^5.3.9",
"@storybook/addon-viewport": "^5.3.9",
"@storybook/addons": "^5.3.9",
"@storybook/preset-typescript": "^1.1.0",
"@storybook/react": "^5.3.9",
"@svgr/core": "^5.0.1",
"@svgr/plugin-prettier": "^5.0.1",
"@svgr/plugin-svgo": "^5.1.0",
"@testing-library/react": "^10.4.3",
"@testing-library/react-hooks": "^3.3.0",
"@types/classnames": "^2.2.9",
"@types/enzyme": "^3.10.4",
"@types/history": "^4.7.5",
"@types/jest": "^25.1.1",
"@types/jest-image-snapshot": "^2.11.0",
"@types/lodash": "^4.14.149",
"@types/node": "^13.5.2",
"@types/pikaday": "^1.7.4",
"@types/puppeteer": "^2.0.1",
"@types/react": "^16.9.18",
"@types/react-beautiful-dnd": "^13.0.0",
"@types/react-dom": "^16.9.5",
"@types/react-measure": "^2.0.6",
"@types/react-router-dom": "^5.1.3",
"@types/sinon": "^7.5.1",
"@types/webpack": "^4.41.3",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"@wojtekmaj/enzyme-adapter-react-17": "^0.4.0",
"autoprefixer": "^9.7.4",
"axios": "0.18.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.6",
"babel-plugin-dynamic-import-node": "^2.3.0",
"babel-plugin-flow-react-proptypes": "^25.1.0",
"babel-plugin-react-intl": "^5.1.18",
"babel-plugin-react-remove-properties": "^0.3.0",
"babel-plugin-rewire": "^1.0.0",
"babel-plugin-styled-components": "^1.10.7",
"babel-preset-react-app": "^9.1.0",
"camelcase": "^5.3.1",
"circular-dependency-plugin": "^5.2.0",
"classnames": "^2.2.6",
"color": "^3.1.2",
"colors": "^1.4.0",
"conventional-changelog": "^3.1.18",
"conventional-changelog-cli": "^2.0.31",
"conventional-github-releaser": "^3.1.3",
"copyfiles": "^2.2.0",
"core-js": "^3.6.4",
"cosmiconfig": "^6.0.0",
"css-loader": "^3.4.2",
"cssnano": "^4.1.10",
"cypress": "3.8.2",
"deepmerge": "^4.2.2",
"draft-js": "^0.10.1",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.4.3",
"eslint": "^6.7.2",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-cypress": "^2.8.1",
"eslint-plugin-flowtype": "^4.6.0",
"eslint-plugin-formatjs": "^1.5.11",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-jest": "^23.1.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-lodash": "^6.0.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.18.0",
"eslint-plugin-react-hooks": "^2.3.0",
"filesize": "^4.1.2",
"flow-bin": "^0.95.1",
"flow-copy-source": "^2.0.9",
"flow-typed": "^2.6.2",
"form-serialize": "^0.7.2",
"formik": "^2.0.3",
"full-icu": "^1.3.1",
"husky": "^4.0.10",
"ilib-tree-node": "^1.2.0",
"immutable": "^3.7.4",
"intl": "^1.2.5",
"intl-messageformat": "^7.8.4",
"intl-messageformat-parser": "^3.6.4",
"jest": "^25.1.0",
"jest-image-snapshot": "^2.12.0",
"jest-puppeteer": "^4.4.0",
"js-sha1": "0.6.0",
"jsuri": "^1.3.1",
"leche": "^2.3.0",
"lint-staged": "^9.5.0",
"lodash": "^4.17.15",
"message-accumulator": "^2.1.1",
"mini-css-extract-plugin": "^0.9.0",
"mocha": "^6.2.2",
"mousetrap": "^1.6.3",
"mutationobserver-shim": "^0.3.3",
"node-sass": "^4.13.1",
"npm-run-all": "^4.1.3",
"nsp": "^3.2.1",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"ora": "^4.0.3",
"pikaday": "^1.8.0",
"postcss-loader": "^3.0.0",
"postcss-safe-parser": "^4.0.1",
"prettier": "^1.19.1",
"prettier-eslint-cli": "^5.0.0",
"prop-types": "^15.7.2",
"properties-parser": "^0.3.1",
"puppeteer": "^2.0.0",
"query-string": "5.1.1",
"raf": "^3.4.1",
"react": "^17.0.1",
"react-animate-height": "^2.0.8",
"react-beautiful-dnd": "^9.0.2",
"react-docgen-typescript": "^1.16.1",
"react-docgen-typescript-loader": "^3.6.0",
"react-dom": "^17.0.1",
"react-draggable": "^3.3.0",
"react-immutable-proptypes": "^2.1.0",
"react-intl": "^3.11.0",
"react-measure": "^2.3.0",
"react-modal": "^3.8.1",
"react-popper": "^1.3.4",
"react-process-string": "^1.2.0",
"react-router-dom": "^5.0.0",
"react-scrollbars-custom": "^4.0.21",
"react-styleguidist": "^8.0.6",
"react-test-renderer": "^16.13.1",
"react-tether": "1.0.5",
"react-textarea-autosize": "^7.1.0",
"react-virtualized": "^9.21.0",
"regenerator-runtime": "^0.13.3",
"rimraf": "^3.0.1",
"sanitize-html": "1.21.1",
"sass-lint": "^1.13.1",
"sass-loader": "^8.0.2",
"sass-variable-parser": "^1.2.2",
"scroll-into-view-if-needed": "^2.2.20",
"semantic-release": "^16.0.2",
"simple-git": "^1.131.0",
"sinon": "^2.3.7",
"source-map-loader": "^0.2.4",
"start-server-and-test": "^1.10.8",
"storybook": "^5.3.9",
"storybook-addon-intl": "^2.4.1",
"string-replace-loader": "^2.2.0",
"style-loader": "^1.0.0",
"styled-components": "^5.0.0",
"stylelint": "^12.0.0",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^19.0.0",
"stylelint-order": "^3.1.1",
"tabbable": "^1.1.3",
"ts-loader": "^6.2.1",
"typescript": "^3.7.5",
"uniqid": "^5.2.0",
"uuid": "^3.3.2",
"wait-on": "^3.3.0",
"webpack": "^4.41.5",
"webpack-bundle-analyzer": "^3.6.0",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.10.1",
"worker-farm": "^1.7.0",
"yargs": "^15.1.0"
},
"dependencies": {
"@box/cldr-data": "^34.2.0",
"@hapi/address": ">=2.0.0 <2.1.2",
"axios": "^0.18.1",
"classnames": "^2.2.5",
"color": "^3.1.2",
"draft-js": "^0.10.1",
"filesize": "^4.1.2",
"form-serialize": "^0.7.2",
"formik": "^2.0.0",
"ilib-tree-node": "^1.2.0",
"immutable": "^3.7.4",
"intl-messageformat": "^7.8.4",
"js-sha1": "0.6.0",
"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": "^17.0.1",
"react-animate-height": "^2.0.8",
"react-beautiful-dnd": "^9.0.2",
"react-dom": "^17.0.1",
"react-draggable": "^3.3.0",
"react-immutable-proptypes": "^2.1.0",
"react-intl": ">=2.9.0",
"react-measure": "^2.3.0",
"react-modal": "^3.8.1",
"react-popper": "^1.3.4",
"react-process-string": "^1.2.0",
"react-router-dom": "^5.0.0",
"react-scrollbars-custom": "^4.0.21",
"react-tether": "^1.0.0",
"react-textarea-autosize": "^7.1.0",
"react-virtualized": "^9.21.0",
"regenerator-runtime": "^0.13.2",
"sanitize-html": "1.21.1",
"scroll-into-view-if-needed": "^2.2.20",
"tabbable": "^1.1.2",
"uuid": "^3.3.2"
},
"comments": {
"dependencies": {
"@hapi/address": "Version 2.1.2+ requires a polyfill for TextEncoder. Pinning to version 2.1.1 prevents IE11 from breaking.",
"react-tether": "Version 2.x has too many breaking changes and requires forwardRef on all components"
}
}
}