forked from ste-xx/json-schema-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
109 lines (109 loc) · 4.81 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
{
"name": "json-schema-viewer",
"version": "1.0.0",
"description": "A website that allows for the viewing of JSON Schemas.",
"author": "Robert Massaioli <[email protected]>",
"license": "MIT",
"private": true,
"dependencies": {
"@atlaskit/atlassian-navigation": "^0.12.5",
"@atlaskit/breadcrumbs": "^10.1.0",
"@atlaskit/button": "^15.1.4",
"@atlaskit/code": "^13.1.1",
"@atlaskit/css-reset": "^6.0.5",
"@atlaskit/empty-state": "^7.1.5",
"@atlaskit/form": "^9.1.2",
"@atlaskit/icon": "^21.2.0",
"@atlaskit/logo": "^13.0.7",
"@atlaskit/lozenge": "^10.1.0",
"@atlaskit/menu": "^0.7.0",
"@atlaskit/popup": "^1.0.6",
"@atlaskit/spinner": "^15.0.6",
"@atlaskit/table": "^0.4.6",
"@atlaskit/tabs": "^12.1.2",
"@atlaskit/textfield": "^5.0.0",
"@atlaskit/theme": "^11.0.2",
"@atlaskit/tooltip": "^17.1.2",
"@monaco-editor/react": "^4.5.1",
"js-yaml": "^4.0.0",
"jsonpointer": "^4.1.0",
"monaco-editor": "^0.39.0",
"react": "^16.8",
"react-copy-to-clipboard": "^5.0.2",
"react-dom": "^16.8",
"react-markdown": "^8.0.7",
"react-router-dom": "^5.2.0",
"rehype-raw": "^6.1.1",
"rehype-sanitize": "^5.0.1",
"styled-components": "^3.2",
"ts-is-present": "^1.2.1",
"yaml": "^2.4.1"
},
"devDependencies": {
"@babel/core": "^7.22.5",
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
"@babel/plugin-transform-runtime": "^7.22.5",
"@babel/preset-env": "^7.22.5",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@compiled/babel-plugin": "^0.19.1",
"@storybook/addon-actions": "^7.0.22",
"@storybook/addon-essentials": "^7.0.22",
"@storybook/addon-links": "^7.0.22",
"@storybook/cli": "^7.0.22",
"@storybook/react-webpack5": "^7.0.22",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^11.2.7",
"@types/jest": "^29.5.2",
"@types/js-yaml": "^4.0.0",
"@types/react": "^16.8",
"@types/react-copy-to-clipboard": "^5.0.0",
"@types/react-dom": "^16.8",
"@types/react-router-dom": "^5.1.7",
"babel-jest": "^29.5.0",
"babel-loader": "^8.2.2",
"babel-plugin-transform-class-properties": "^6.24.1",
"csp-html-webpack-plugin": "^5.1.0",
"css-loader": "^5.0.1",
"favicons": "^7.1.3",
"favicons-webpack-plugin": "^6.0.0",
"html-webpack-plugin": "^5.5.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"json-schema-to-typescript": "^10.1.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"storybook": "^7.0.22",
"style-loader": "^2.0.0",
"typescript": "^5.1.3",
"webpack": "^5.87.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1",
"webpack-merge": "^5.7.3"
},
"scripts": {
"start": "webpack serve -c webpack.dev.js",
"lint": "tsc --noEmit",
"test": "jest",
"postinstall": "npm run gen-schema",
"build-dev": "webpack -c webpack.dev.js",
"build-prod": "webpack -c webpack.prod.js",
"build": "rm -fr dist && webpack -c webpack.prod.js",
"clean": "rm -rf *.zip source/witch/nodejs/node_modules/",
"pack-witch": "cd aws/witch && npm install --prefix nodejs mime-types && cp witch.js nodejs/node_modules/ && zip -r ../../witch.zip nodejs",
"pack-secured-headers": "cd aws/secured-headers/ && zip -r ../../s-headers.zip index.js",
"pack-website": "cd dist && zip -r ../website.zip *",
"package-all": "run-p pack-witch pack-secured-headers pack-website",
"package-build": "run-s clean package-all",
"aws-package": "aws cloudformation package --template-file templates/main.yaml --s3-bucket json-schema-viewer-cloudformation --output-template-file packaged.template",
"aws-deploy": "aws --region us-east-1 cloudformation deploy --stack-name json-schema-viewer --template-file packaged.template --capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND --parameter-overrides DomainName=json-schema.app SubDomain=www CreateApex=yes",
"build-and-deploy": "run-s build package-build aws-package aws-deploy",
"upload": "aws s3 sync --profile AdministratorAccess-110055367801 --cache-control \"max-age=31536000\" --exclude 'index.html' --delete dist s3://json-schema-viewer-customresourcesta-s3bucketroot-vjmtja1bzua1 && aws s3 cp --profile AdministratorAccess-110055367801 --cache-control \"max-age=300\" dist/index.html s3://json-schema-viewer-customresourcesta-s3bucketroot-vjmtja1bzua1",
"build-and-upload": "run-s build upload",
"cloudfront-invalidate": "aws cloudfront create-invalidation --distribution-id E2LM6EIHUKJUXG --paths '/*' | cat",
"check-invalidate": "aws cloudfront get-invalidation --distribution-id E2LM6EIHUKJUXG --id",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"gen-schema": "json2ts json-schema.draft-07.json > src/schema.ts"
}
}