forked from BloomBooks/bloom-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
127 lines (127 loc) · 5.97 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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
117
118
119
120
121
122
123
124
125
126
127
{
"name": "bloom-player",
"// The patch level of this version number is replaced on TeamCity by its build number.": "",
"// A dummy value is needed for the simple-minded replacement to work.": "",
"// The major and minor version numbers shown here are used by the TeamCity build, so they are meaningful.": "",
"// Local builds will always get this exact version number, but that should be okay.": "",
"// There's no need to update the patch value before committing and merging: the TeamCity process ensures a new patch number for each merge.": "",
"version": "2.0.0",
"description": "A library for displaying Bloom books in iframes or WebViews",
"main": "bloomPlayer.min.js",
"author": "SIL International",
"license": "MIT",
"private": false,
"// Might need to be ['*.css'] to avoid 'shaking' our CSS, if we ever get tree shaking working": "",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/BloomBooks/bloom-player.git"
},
"scripts": {
"// start will build, watch, start a server, and open a chrome browser with CORS disabled": "",
"// you can edit index-for-developing.html to point to different books": "",
"start": "concurrently npm:start-webpack-serve npm:chrome",
"start-webpack-serve": "yarn webpack-dev-server",
"storybook": "concurrently npm:storybook-inner npm:schrome",
"storybook-inner": "start-storybook --static-dir ./,./src/activities,./src/activities/legacyQuizHandling -p 9009 --ci",
"// if you are testing with a book hosted on (dev.)bloomlibrary.org, you will have to load chrome with these args": "",
"chrome": "chrome http://localhost:8080/ --disable-web-security --disable-gpu --user-data-dir=%temp%/chromeTemp",
"schrome": "chrome http://localhost:9009/ --disable-web-security --disable-gpu --user-data-dir=%temp%/chromeTemp",
"build": "shx rm -rf dist/ && webpack --config webpack-config-prod.js",
"build-dev": "shx rm -rf dist/ && webpack --config webpack.config.js",
"tslint": "tslint --project tsconfig.json",
"test": "jest --env=jsdom",
"// bloom-library doesn't normally *have* this code; instead, it goes and gets it from s3.": "",
"// To make use of this code while you are developing how BP works in BL, you have to uncomment a line in BloomLibrary's readBook-controller.js": "",
"// Don't forget to run 'yarn chrome' from bloom-library.": "",
"// This will fail if the http server is locking the directory": "",
"// note: shx cp is the same as unix cp, but cross platform. So a bit different semantics than Windows copy": "",
"tobloomlibrary": "yarn build-dev && shx cp dist/bloomplayer-for-developing.htm ../BloomLibrary/build && shx cp dist/bloomPlayer.js ../BloomLibrary/build",
"tobloomlibrary2": "shx rm -f ../BloomLibrary2/public/bloom-player/*.* && shx cp dist/*.* ../BloomLibrary2/public/bloom-player",
"tobloomreader": "shx rm -f ../BloomReader/app/src/main/assets/bloom-player/*.* && shx cp dist/*.* ../BloomReader/app/src/main/assets/bloom-player",
"tobloom": "shx cp dist/*.* ../BloomDesktop/output/browser/bloom-player/dist",
"build4bl": "yarn build && yarn tobloomlibrary",
"build4bl2": "yarn build && yarn tobloomlibrary2",
"build4br": "yarn build && yarn tobloomreader",
"build4bd": "yarn build && yarn tobloom"
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.7.4",
"@babel/preset-typescript": "^7.3.3",
"@crowdin/crowdin-api-client": "^1.10.4",
"@material-ui/core": "^4.0.1",
"@material-ui/icons": "^4.0.1",
"@storybook/addon-a11y": "^5.1.11",
"@storybook/addon-actions": "^5.1.11",
"@storybook/addon-info": "^5.1.11",
"@storybook/addon-knobs": "^5.1.11",
"@storybook/addon-links": "^5.1.11",
"@storybook/addon-viewport": "^5.1.11",
"@storybook/addons": "^5.1.11",
"@storybook/react": "^5.1.11",
"@types/jest": "^24.0.11",
"@types/jquery": "^3.5.5",
"@types/jquery.nicescroll": "^3.7.1",
"@types/node": "^12.7.2",
"@types/react": "^16.9.1",
"@types/react-dom": "^16.8.5",
"@types/storybook__addon-info": "^4.1.2",
"@types/storybook__react": "^4.0.2",
"axios": "^0.18.0",
"babel-jest": "^24.7.1",
"babel-loader": "^8.0.6",
"before-build-webpack": "^0.2.11",
"concurrently": "^4.1.1",
"copy-webpack-plugin": "^5.0.4",
"css-loader": "^2.1.1",
"editorconfig": "^0.15.3",
"eslint": "^6.2.2",
"file-loader": "^3.0.1",
"globule": "^1.2.1",
"html-webpack-plugin": "^3.2.0",
"jest": "^24.7.1",
"jest-teamcity-reporter": "^0.9.0",
"less": "^3.9.0",
"less-loader": "^4.1.0",
"prettier": "^1.16.4",
"raw-loader": "^3.1.0",
"react": "^16.8.5",
"react-dom": "^16.8.5",
"react-id-swiper": "^2.3.2",
"shx": "^0.3.2",
"style-loader": "^0.23.1",
"style-scoped": "^0.2.1",
"swiper": "^4.5.0",
"terser-webpack-plugin": "^1.3.0",
"ts-jest": "^24.0.2",
"ts-loader": "^5.3.3",
"tslint": "^5.15.0",
"tslint-config-prettier": "^1.18.0",
"tslint-react": "^4.0.0",
"typescript": "*",
"url-loader": "^1.1.2",
"webpack": "^4.39.2",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^3.3.0",
"webpack-dev-server": "^3.7.2",
"webpack-merge": "^4.2.1",
"yarn": "^1.15.2"
},
"files": [
"dist/*.js",
"dist/bloomplayer.htm",
"dist/*.mp3",
"lib/*.js",
"dist/*.css",
"dist/*.tsv"
],
"jest": {
"testEnvironment": "jsdom"
},
"dependencies": {
"dynamic-import-polyfill": "^0.1.1",
"jquery.nicescroll": "^3.7.6"
}
}