mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
607deb31dc
Mainly leave shadow-cljs for build cljs stuff and use esbuild for bundle all js dependencies, completly avoiding all possible incompatibility issues between js libraries and google closure compiler.
121 lines
4.5 KiB
JSON
121 lines
4.5 KiB
JSON
{
|
|
"name": "frontend",
|
|
"version": "1.0.0",
|
|
"license": "MPL-2.0",
|
|
"author": "Kaleidos INC",
|
|
"private": true,
|
|
"packageManager": "yarn@4.3.1",
|
|
"browserslist": [
|
|
"defaults"
|
|
],
|
|
"type": "module",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/penpot/penpot"
|
|
},
|
|
"resolutions": {
|
|
"@vitejs/plugin-react": "^4.2.0"
|
|
},
|
|
"scripts": {
|
|
"build:app:assets": "node ./scripts/build-app-assets.js",
|
|
"build:storybook": "yarn run build:storybook:assets && yarn run build:storybook:cljs && storybook build",
|
|
"build:storybook:assets": "node ./scripts/build-storybook-assets.js",
|
|
"build:storybook:cljs": "clojure -M:dev:shadow-cljs compile storybook",
|
|
"build:app": "clojure -M:dev:shadow-cljs release main worker",
|
|
"e2e:server": "node ./scripts/e2e-server.js",
|
|
"fmt:clj": "cljfmt fix --parallel=true src/ test/",
|
|
"fmt:clj:check": "cljfmt check --parallel=false src/ test/",
|
|
"fmt:js": "yarn run prettier -c src/**/*.stories.jsx -c playwright/**/*.js -c scripts/**/*.js -w",
|
|
"fmt:js:check": "yarn run prettier -c src/**/*.stories.jsx -c playwright/**/*.js -c scripts/**/*.js",
|
|
"lint:clj": "clj-kondo --parallel --lint src/",
|
|
"lint:scss": "yarn run prettier -c resources/styles -c src/**/*.scss",
|
|
"lint:scss:fix": "yarn run prettier -c resources/styles -c src/**/*.scss -w",
|
|
"build:test": "clojure -M:dev:shadow-cljs compile test-esm",
|
|
"test": "yarn run build:test && node target/tests/test.js",
|
|
"watch:test": "concurrently \"clojure -M:dev:shadow-cljs watch test-esm\" \"nodemon -w target/tests/test.js --exec 'sleep 2 && node target/tests/test.js'\"",
|
|
"test:e2e": "playwright test --project default",
|
|
"translations": "node ./scripts/translations.js",
|
|
"build:app:libs": "esbuild --bundle --outfile=resources/public/js/libs.js --format=iife target/index.js --minify",
|
|
"watch:app:libs": "esbuild --bundle --outfile=resources/public/js/libs.js --format=iife target/index.js --watch",
|
|
"watch": "yarn run watch:app:assets",
|
|
"watch:app:assets": "node ./scripts/watch.js",
|
|
"watch:storybook": "concurrently \"clojure -M:dev:shadow-cljs watch storybook\" \"storybook dev -p 6006 --no-open\" \"yarn run watch:storybook:assets\"",
|
|
"watch:storybook:assets": "node ./scripts/watch-storybook.js"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "1.48.1",
|
|
"@storybook/addon-essentials": "^8.3.6",
|
|
"@storybook/addon-themes": "^8.3.6",
|
|
"@storybook/blocks": "^8.3.6",
|
|
"@storybook/react": "^8.3.6",
|
|
"@storybook/react-vite": "^8.3.6",
|
|
"@types/node": "^22.7.7",
|
|
"autoprefixer": "^10.4.20",
|
|
"concurrently": "^9.0.1",
|
|
"esbuild": "^0.24.0",
|
|
"express": "^4.21.1",
|
|
"fancy-log": "^2.0.0",
|
|
"getopts": "^2.3.0",
|
|
"gettext-parser": "^8.0.0",
|
|
"gulp-concat": "^2.6.1",
|
|
"gulp-gzip": "^1.4.2",
|
|
"gulp-mustache": "^5.0.0",
|
|
"gulp-postcss": "^10.0.0",
|
|
"gulp-rename": "^2.0.0",
|
|
"gulp-sass": "^5.1.0",
|
|
"gulp-sourcemaps": "^3.0.0",
|
|
"gulp-svg-sprite": "^2.0.3",
|
|
"jsdom": "^25.0.1",
|
|
"map-stream": "0.0.7",
|
|
"marked": "^14.1.3",
|
|
"mkdirp": "^3.0.1",
|
|
"mustache": "^4.2.0",
|
|
"nodemon": "^3.1.7",
|
|
"npm-run-all": "^4.1.5",
|
|
"p-limit": "^6.1.0",
|
|
"postcss": "^8.4.47",
|
|
"postcss-clean": "^1.2.2",
|
|
"prettier": "3.3.3",
|
|
"pretty-time": "^1.1.0",
|
|
"prop-types": "^15.8.1",
|
|
"rimraf": "^6.0.1",
|
|
"sass": "^1.80.3",
|
|
"sass-embedded": "^1.80.3",
|
|
"shadow-cljs": "2.28.18",
|
|
"storybook": "^8.3.6",
|
|
"svg-sprite": "^2.0.4",
|
|
"typescript": "^5.6.3",
|
|
"vite": "^5.4.9",
|
|
"vitest": "^2.1.3",
|
|
"wasm-pack": "^0.13.0",
|
|
"watcher": "^2.3.1",
|
|
"workerpool": "^9.2.0"
|
|
},
|
|
"dependencies": {
|
|
"@penpot/draft-js": "file:./vendor/draft-js",
|
|
"@penpot/hljs": "file:./vendor/hljs",
|
|
"@penpot/mousetrap": "file:./vendor/mousetrap",
|
|
"@penpot/svgo": "penpot/svgo#c6fba7a4dcfbc27b643e7fc0c94fc98cf680b77b",
|
|
"@penpot/text-editor": "penpot/penpot-text-editor#bae79a69c3d484f4a9271c2ed44022e36fce3cfb",
|
|
"compression": "^1.7.4",
|
|
"date-fns": "^4.1.0",
|
|
"eventsource-parser": "^3.0.0",
|
|
"js-beautify": "^1.15.1",
|
|
"jszip": "^3.10.1",
|
|
"lodash": "^4.17.21",
|
|
"luxon": "^3.5.0",
|
|
"opentype.js": "^1.3.4",
|
|
"postcss-modules": "^6.0.0",
|
|
"randomcolor": "^0.6.2",
|
|
"react": "18.3.1",
|
|
"react-dom": "18.3.1",
|
|
"react-error-boundary": "^4.1.2",
|
|
"react-virtualized": "^9.22.5",
|
|
"rxjs": "8.0.0-alpha.14",
|
|
"sax": "^1.4.1",
|
|
"source-map-support": "^0.5.21",
|
|
"tdigest": "^0.1.2",
|
|
"ua-parser-js": "2.0.0-rc.1",
|
|
"xregexp": "^5.1.1"
|
|
}
|
|
}
|