This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 178
/
Copy pathpackage.json
82 lines (82 loc) · 3.83 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
{
"private": true,
"//": "Copyright (c) Meta Platforms, Inc. and affiliates.",
"name": "demo-app",
"//version": "Follow SemVer specs at https://semver.org/",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"all": "babel-node run_all",
"build": "webpack",
"clean-build": "yarn clean-fbts && yarn install && yarn build",
"clean-fbts": "rm .enum_manifest.json .src_manifest.json .source_strings.json src/translatedFbts.json .test_*.json 2&> /dev/null || exit 0",
"collect-fbts": "fbt-collect --fbt-common-path ./common_strings.json --pretty --manifest < .src_manifest.json > .source_strings.json",
"manifest": "fbt-manifest --src src",
"preinstall": "yarn workspace babel-plugin-fbt prepack",
"postinstall": "yarn all",
"start": "webpack-dev-server --open",
"test-collect-fbts": "fbt-collect --fbt-common-path ./common_strings.json --pretty --manifest < .src_manifest.json > .test_source_strings.json",
"test-collect-fbts-with-tiger-hash": "fbt-collect --fbt-common-path ./common_strings.json --pretty --manifest --hash-module fb-tiger-hash < .src_manifest.json > .test_source_strings_with_tiger_hash.json",
"test-translate-fbts-into-output-dir": "fbt-translate --translations translations/*.json --jenkins --output-dir src/translatedFbts",
"test": "yarn test-build-scripts && cd .. && jest demo-app",
"test-build-scripts": "yarn test-collect-fbts && yarn test-collect-fbts-with-tiger-hash && yarn test-translate-fbts-into-output-dir && yarn translate-fbts-single-file",
"translate-fbts-single-file": "fbt-translate --jenkins --stdin < translation_input.json > src/translatedFbts.json",
"translate-fbts": "fbt-translate --translations translations/*.json --jenkins > src/translatedFbts.json",
"watch:fbts": "yarn watch 'yarn clean-fbts && yarn all' ./src/example ../packages/babel-plugin-fbt/dist/ --ignoreDotFiles --wait=1"
},
"devDependencies": {
"@cnakazawa/watch": "^1.0.4",
"@babel/core": "7.2.2",
"@babel/node": "7.2.2",
"@babel/plugin-proposal-class-properties": "7.1.0",
"@babel/plugin-proposal-object-rest-spread": "7.0.0",
"@babel/plugin-proposal-optional-chaining": "7.0.0",
"@babel/plugin-syntax-class-properties": "^7.2.0",
"@babel/plugin-syntax-flow": "^7.2.0",
"@babel/plugin-syntax-jsx": "^7.2.0",
"@babel/plugin-syntax-nullish-coalescing-operator": "^7.2.0",
"@babel/plugin-syntax-numeric-separator": "^7.2.0",
"@babel/plugin-syntax-object-rest-spread": "^7.2.0",
"@babel/plugin-syntax-optional-catch-binding": "^7.2.0",
"@babel/plugin-syntax-optional-chaining": "^7.2.0",
"@babel/plugin-transform-flow-strip-types": "^7.2.0",
"@babel/preset-env": "7.1.6",
"@babel/preset-flow": "7.0.0",
"@babel/preset-react": "7.0.0",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^24.8.0",
"babel-loader": "8.0.4",
"classnames": "2.2.6",
"css-loader": "1.0.1",
"fb-tiger-hash": "x.x.x",
"file-loader": "2.0.0",
"html-webpack-plugin": "^4.5.0",
"invariant": "^2.2.4",
"jest": "^24.8.0",
"jest-docblock": "^22.2.0",
"normalize.css": "8.0.1",
"raf": "3.4.1",
"react-test-renderer": "16.6.3",
"remove-flow-types-loader": "1.1.0",
"shelljs": "^0.8.5",
"style-loader": "0.23.1",
"webpack": "^5.4.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0",
"webpack-stream": "^5.2.1"
},
"dependencies": {
"@babel/plugin-syntax-nullish-coalescing-operator": "^7.2.0",
"@babel/plugin-syntax-numeric-separator": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.2.0",
"babel-plugin-fbt": "x.x.x",
"@fbtjs/default-collection-transform": "x.x.x",
"babel-plugin-fbt-runtime": "x.x.x",
"babel-plugin-minify-replace": "^0.5.0",
"invariant": "^2.2.4",
"fbt": "x.x.x",
"react": "^16.6.3",
"react-dom": "^16.6.3"
}
}