package.json 3.88 KB
Newer Older
Diego Sampaio's avatar
Diego Sampaio committed
1
{
2
	"name": "@rocket.chat/livechat",
Diego Sampaio's avatar
Diego Sampaio committed
3 4 5 6
	"version": "1.1.6",
	"files": [
		"/build"
	],
7
	"license": "MIT",
Tasso Evangelista's avatar
Tasso Evangelista committed
8 9 10 11
	"repository": {
		"type": "git",
		"url": "https://github.com/RocketChat/Rocket.Chat.Livechat"
	},
12 13
	"scripts": {
		"start": "if-env NODE_ENV=production && npm run -s serve || npm run -s dev",
14 15
		"build:app": "GENERATE_SOURCEMAP=false preact build --no-prerender --optimize-minimize",
		"build:widget": "webpack-cli src/widget.js -o build/rocketchat-livechat.min.js --mode production",
16
		"build:pack": "cp widget-demo.html ./build && tar -C build -czf build.tar.gz '.'",
17
		"build": "run-s build:app build:widget build:pack",
18 19
		"serve": "preact build --no-prerender --optimize-minimize && preact serve",
		"dev": "preact watch",
20 21 22
		"lint": "run-s eslint stylelint",
		"eslint": "eslint src",
		"stylelint": "stylelint 'src/**/*.scss'",
23 24 25 26 27
		"test": "jest ./tests",
		"coverage": "jest --coverage",
		"storybook": "start-storybook -p 9001 -c .storybook",
		"i18n": "i18nline synch && node_modules/.bin/eslint --fix src/i18n/index.js",
		"deploy-storybook": "storybook-to-ghpages",
Tasso Evangelista's avatar
Tasso Evangelista committed
28 29
		"bundle-analyzer": "webpack-bundle-analyzer build/stats.json",
		"release": "gh-release -c master --assets build.tar.gz"
30 31
	},
	"devDependencies": {
32 33 34 35 36 37 38 39 40 41 42
		"@rocket.chat/eslint-config": "^0.3.0",
		"@storybook/addon-a11y": "^5.1.9",
		"@storybook/addon-actions": "^5.1.9",
		"@storybook/addon-backgrounds": "^5.1.9",
		"@storybook/addon-centered": "^5.1.9",
		"@storybook/addon-knobs": "^5.1.9",
		"@storybook/addon-options": "^5.1.9",
		"@storybook/addon-viewport": "^5.1.9",
		"@storybook/react": "^5.1.9",
		"@storybook/storybook-deployer": "^2.8.1",
		"@storybook/theming": "^5.1.9",
43
		"create-react-ref": "^0.1.0",
Tasso Evangelista's avatar
Tasso Evangelista committed
44
		"css-loader": "^2.1.0",
45
		"desvg-loader": "^0.1.0",
Tasso Evangelista's avatar
Tasso Evangelista committed
46 47
		"eslint": "^5.12.1",
		"eslint-config-synacor": "^3.0.3",
Tasso Evangelista's avatar
Tasso Evangelista committed
48
		"gh-release": "^3.5.0",
49
		"husky": "^1.3.1",
50 51 52
		"identity-obj-proxy": "^3.0.0",
		"if-env": "^1.0.0",
		"image-webpack-loader": "^4.3.1",
Tasso Evangelista's avatar
Tasso Evangelista committed
53
		"jest": "^24.0.0",
54 55
		"lorem-ipsum": "^1.0.6",
		"node-sass": "^4.9.3",
56
		"npm-run-all": "^4.1.5",
Tasso Evangelista's avatar
Tasso Evangelista committed
57
		"preact-cli": "3.0.0-next.14",
58 59
		"preact-compat": "^3.18.4",
		"preact-render-spy": "^1.2.1",
Tasso Evangelista's avatar
Tasso Evangelista committed
60
		"prompts": "^2.0.1",
61
		"sass-loader": "^7.1.0",
Tasso Evangelista's avatar
Tasso Evangelista committed
62
		"style-loader": "^0.23.1",
63 64
		"stylelint": "^10.1.0",
		"stylelint-order": "^3.0.0",
65
		"svg-loader": "0.0.2",
66 67
		"webpack-bundle-analyzer": "^3.0.2",
		"webpack-cli": "^3.2.1"
68 69 70
	},
	"dependencies": {
		"@kossnocorp/desvg": "^0.2.0",
71
		"@rocket.chat/sdk": "^1.0.0-alpha.29",
72 73 74
		"date-fns": "^1.29.0",
		"desvg": "^1.0.2",
		"fast-async": "^6.3.8",
75
		"history": "^4.7.2",
76 77 78
		"i18n": "^0.8.3",
		"i18nline": "^2.0.1",
		"markdown-it": "^8.4.2",
79
		"mem": "^4.2.0",
80 81 82 83 84
		"msgpack": "^1.0.2",
		"preact": "^8.2.6",
		"preact-context": "^1.1.1",
		"preact-i18nline": "^2.0.0",
		"preact-router": "^2.5.7",
85
		"query-string": "6.3.0",
86 87
		"tiny-events": "^1.0.1",
		"wolfy87-eventemitter": "^5.2.5"
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
	},
	"jest": {
		"verbose": true,
		"setupFiles": [
			"<rootDir>/src/tests/__mocks__/browserMocks.js"
		],
		"testURL": "http://localhost:8080",
		"moduleFileExtensions": [
			"js",
			"jsx"
		],
		"moduleDirectories": [
			"node_modules"
		],
		"moduleNameMapper": {
			"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/src/tests/__mocks__/fileMock.js",
			"\\.(css|less|scss)$": "identity-obj-proxy",
			"^./style$": "identity-obj-proxy",
			"^preact$": "<rootDir>/node_modules/preact/dist/preact.min.js",
			"^react$": "preact-compat",
			"^react-dom$": "preact-compat",
			"^create-react-class$": "preact-compat/lib/create-react-class",
			"^react-addons-css-transition-group$": "preact-css-transition-group"
		}
	},
	"browserslist": [
		"> 1%",
		"last 2 versions",
		"not ie < 11"
117 118 119 120 121
	],
	"storybook-deployer": {
		"gitUsername": "Guilherme Gazzo",
		"gitEmail": "guilherme.gazzo@rocket.chat",
		"commitMessage": "Deploy Storybook to GitHub Pages [skip ci]"
122 123 124
	},
	"husky": {
		"hooks": {
Tasso Evangelista's avatar
Tasso Evangelista committed
125
			"pre-commit": "run-s i18n && git add -A src/i18n"
126
		}
127
	}
Diego Sampaio's avatar
Diego Sampaio committed
128
}