You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
carbon/package.json

110 lines
2.9 KiB
JSON

8 years ago
{
7 years ago
"name": "carbon",
6 years ago
"version": "3.8.0",
8 years ago
"main": "index.js",
"license": "MIT",
"scripts": {
"dev": "next",
8 years ago
"build": "next build",
"start": "next start",
"export": "next export",
"test": "npm run cy:run --",
"deploy": "now",
6 years ago
"prettier": "prettier --config .prettierrc --write {.,components,lib,pages}/*.js {components,lib,pages,packages}/**/*.js",
"lint": "eslint .",
"contrib:add": "all-contributors add",
"contrib:build": "all-contributors generate",
"cy:run": "cypress run",
"cy:open": "cypress open",
"now-build": "cross-env NODE_ENV=production yarn build && yarn export -o dist"
8 years ago
},
"dependencies": {
"axios": "^0.18.0",
"codemirror": "^5.42.2",
"codemirror-graphql": "^0.8.3",
"codemirror-mode-elixir": "^1.1.2",
"cross-env": "^5.2.0",
8 years ago
"dom-to-image": "^2.5.2",
"downshift": "^3.1.8",
"dropperx": "0.2.1",
"graphql": "^14.0.2",
"highlight.js": "^9.13.1",
"lodash.debounce": "^4.0.8",
Add preset feature (#595) * Add preset feature without create * fix lint errors * Add presets to Editor state * add remove, update -> apply, omit presets * replace name with index, add undo functionality * fix reduce function * Tweaks: - Make remove filter setState atomic - Remove broken sCU in BackgroundSelect - Touch up style of arrow functions a little - Remove titleBar from default settings - Don't expose SETTINGS_KEYS - Use hasOwnProperty instead of includes() * refactor preset state into Settings * move format code into editor and make it work again * omit custom in applyPreset * move presets array state into Settings * keep custom sCU in BackgroundSelect * pull out inline objects * revert pages/index * increase Presets font-size, remove margin-top * Add ability to create presets * also enable passing exportSize as prop * move selectedPreset back into Settings (my bad Sean) * replace splice with filter, getSavedX -> getX * Revert "move selectedPreset back into Settings (my bad Sean)" This reverts commit ae5da4700ea36ad7c31e697e83a2724be4b448f4. * make sure background updates remove selected preset * selectedPreset -> preset * use onChange instead of selectPreset * use preset id's instead of indexes * bug fixes * use disabled instead of pointer-events * make .settings-presets-applied flex 💪 * make .settings-presets-arrow flex 💪 * move getPresets outside of `setState` * move inline styles to style tag * refactor using omitBy and isFunction * remove lodash.isfunction * fix applyPreset to disclude preset field * move omit to getSettingsFromProps * replace lodash.omit with omitBy solution * .includes -> .indexOf * add default preset and presetApplied state * fix lint error * remove presetApplied * add more default presets * fix default preset functionality * tweaks * preserve preset list scrollLeft b/w updates with a hack * Use ref for preset content * remove forwardRef
6 years ago
"lodash.omitby": "^4.6.0",
"match-sorter": "^2.3.0",
"morphmorph": "^0.1.0",
"ms": "^2.0.0",
"next": "^7.0.2",
"next-offline": "^3.3.1",
"prettier": "^1.14.3",
"react": "^16.7.0",
7 years ago
"react-click-outside": "^3.0.0",
"react-codemirror2": "^5.1.0",
"react-color": "^2.17.0",
"react-copy-to-clipboard": "^5.0.1",
"react-dnd": "^5.0.0",
"react-dnd-html5-backend": "^5.0.0",
"react-dom": "^16.7.0",
"react-image-crop": "^6.0.10",
"react-spinner": "^0.2.7",
7 years ago
"react-syntax-highlight": "^15.3.1",
"resize-observer-polyfill": "^1.5.1",
7 years ago
"tohash": "^1.0.2",
"url": "^0.11.0"
},
"devDependencies": {
"all-contributors-cli": "^5.6.0",
"babel-eslint": "^10.0.1",
"cypress": "^3.1.4",
"eslint": "^5.11.1",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-react": "^7.12.2",
"husky": "^1.3.1",
"lint-staged": "^8.1.0",
"now": "^13.0.0",
"wait-on": "^3.2.0"
},
"lint-staged": {
6 years ago
"*.js": [
"npm run lint",
"prettier --config .prettierrc --write",
"git add"
]
},
"greenkeeper": {
"groups": {
"app": {
"packages": [
"package.json"
],
"ignore": [
"graphql",
"react-dnd-html5-backend",
"react-dom",
"webpack"
]
},
"integrations": {
"packages": [
"packages/gatsby-remark-embed-carbon/package.json"
]
}
}
},
7 years ago
"description": "Create and share beautiful images of your source code",
"repository": {
"type": "git",
"url": "git+https://github.com/dawnlabs/carbon.git"
},
"author": "Dawn Labs <@dawnlabs>",
"bugs": {
"url": "https://github.com/dawnlabs/carbon/issues"
},
6 years ago
"homepage": "https://dawnlabs.io/carbon",
"husky": {
"hooks": {
"pre-commit": "npm run contrib:build && git add README.md && lint-staged"
}
}
8 years ago
}