This repository has been archived by the owner on May 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
119 lines (119 loc) · 6.63 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
{
"author": "Espen Norderud",
"bin": {
"react4xp-buildconstants": "bin/buildConstants.js"
},
"bugs": {
"url": "https://github.com/enonic/lib-react4xp/issues"
},
"contributors": [
"Christian Westgaard <cwe@enonic.com>"
],
"dependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/plugin-proposal-object-rest-spread": "^7.15.6",
"@babel/plugin-transform-arrow-functions": "^7.14.5",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.15.6",
"@babel/preset-react": "^7.14.5",
"@babel/register": "^7.15.3",
"babel-loader": "^8.2.2",
"chai": "^4.3.4",
"chunks-2-json-webpack-plugin": "^1.0.4",
"core-js": "^3.18.0",
"deep-freeze": "^0.0.1",
"es6-set-and-map": "^1.0.5",
"fetch-timeout": "^0.0.2",
"glob": "^7.1.7",
"q-i": "^2.0.1",
"mocha": "^9.1.1",
"node-fetch": "^3.0.0",
"npm-safe-install": "^1.1.0",
"prop-types": "^15.7.2",
"react4xp-regions": "1.1.0",
"rimraf": "^3.0.2",
"stats-webpack-plugin": "^0.7.0"
},
"description": "Build tools for React4xp",
"devDependencies": {
"@babel/preset-env": "^7",
"path-exists-cli": "^2.0.0",
"webpack": "^5.53.0",
"webpack-cli": "^4.8.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"files": [
"bin/buildConstants.js",
"buildComponents/entriesandchunks.js",
"buildComponents/README.md",
"buildComponents/webpack.config.js",
"client/react4xpClient.es6",
"client/README.md",
"client/webpack.config.js",
"constants/ensureTargetOutputPath.js",
"constants/index.js",
"constants/README.md",
"externals/README.md",
"externals/webpack.config.js",
"nashornPolyfills/nashornPolyfills.es6",
"nashornPolyfills/README.md",
"nashornPolyfills/webpack.config.js",
"util/index.js",
"LICENSE",
"npmInstall.gradle",
"react4xp.gradle",
"react4xp.properties",
"updaters.gradle"
],
"homepage": "https://github.com/enonic/react4xp#readme",
"keywords": [
"React4xp",
"Enonic",
"XP",
"React"
],
"license": "Apache-2.0",
"main": "react4xp.gradle",
"name": "react4xp",
"peerDependencies": {
"@babel/plugin-proposal-class-properties": "^7",
"react": "*",
"react-dom": "*",
"webpack": "^5",
"webpack-cli": "^4"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com:enonic/react4xp-npm.git"
},
"scripts": {
"build": "npm run build:constants && npm run build:components",
"build:components": "npx babel src/buildComponents/entriesandchunks.js -o buildComponents/entriesandchunks.js --no-comments --minified --compact true",
"build:components:test": "./bin/buildConstants.js test/buildComponents \"$(< test/buildComponents/overrides.json)\"",
"build:constants": "npm run build:constants:bin && npm run build:constants:src",
"build:constants:bin": "NODE_PATH=. babel src/constants/bin/cli.es6 -o ./bin/buildConstants.js --no-comments && chmod 775 ./bin/buildConstants.js",
"build:constants:src": "NODE_PATH=. babel src/constants/index.es6 src/constants/ensureTargetOutputPath.es6 -d ./constants --no-comments",
"build:nashornPolyfills:constants:test": "./bin/buildConstants.js test/nashornPolyfills \"$(< test/nashornPolyfills/overrides.json)\"",
"build:nashornPolyfills:test": "webpack --config nashornPolyfills/webpack.config.js --env NASHORNPOLYFILLS_SOURCE=test/nashornPolyfills/testPolyfiller.es6 --env BUILD_ENV=development --env BUILD_R4X=test/nashornPolyfills/output --env NASHORNPOLYFILLS_FILENAME=testPolyfilled",
"clean": "rm -r *.tgz bin build constants/ensureTargetOutputPath.js constants/index.js buildComponents/entriesandchunks.js externals/_AUTOGENERATED_tmp_externals_.es6 test/buildComponents/build test/buildComponents/dummy-build test/client test/constants/build test/constants/output test/nashornPolyfills/output 2>/dev/null; true",
"lint": "eslint client/*.es6 nashornPolyfills/*.es6 src/**/*.es6 src/**/*.js",
"prebuild": "npm run clean",
"prebuild:components:test": "npm run build:constants:bin",
"prepack": "npm run build",
"pretest:components:raw": "npm run build:components:test",
"pretest:components:override": "npm run build:components:test",
"pretest:constants": "npm run build:constants && npm run build:components:test",
"test": "npm run test:client:webpack && npm run test:components && npm run test:constants && test:externals:webpack && npm run test:nashornPolyfills:constants",
"test:client:webpack": "webpack --config client/webpack.config.js --env BUILD_R4X=$(pwd)/test/client/output --env LIBRARY_NAME=React4xp --env CHUNK_CONTENTHASH=9 --env CLIENT_CHUNKS_FILENAME=chunky.json && echo \"-------------- react4xp-runtimeclient builds. ADD SOME ACTUAL TESTS PLZ?\"",
"test:constants": "NODE_PATH=. mocha --require @babel/register --require @babel/polyfill --require test/constants/test_helper.js \"test/constants/**/*@(spec.js)\" && mkdir test/constants/output/cli; bin/buildConstants.js test/constants/output/cli && path-exists test/constants/output/cli/react4xp_constants.json && path-exists test/constants/output/cli/build/resources/main/lib/enonic/react4xp/react4xp_constants.json",
"test:components": "npm run test:components:entriesAndChunks && npm run test:components:raw && npm run test:components:override",
"test:components:entriesAndChunks": "mocha --require @babel/register --require @babel/polyfill --require test/buildComponents/test_helper.js \"test/**/*@(spec.js)\"",
"test:components:raw": "webpack --config buildComponents/webpack.config.js --env ENTRY_DIRS=entries --env CHUNK_DIRS=sharedComps,redux --env ROOT=$(pwd)/../.. --env OVERRIDE_COMPONENT_WEBPACK=test/buildComponents/webpack.config.symlinks.override.js --env REACT4XP_CONFIG_FILE=test/buildComponents/build/constants.json --env VERBOSE=true",
"test:components:override": "webpack --config buildComponents/webpack.config.js --env OVERRIDE_COMPONENT_WEBPACK=test/buildComponents/webpack.config.override.js --env ROOT=$(pwd)/../.. --env VERBOSE=true --env REACT4XP_CONFIG_FILE=test/buildComponents/build/constants.json",
"test:externals:webpack": "NODE_PATH=. webpack --config ./externals/webpack.config.js --env REACT4XP_CONFIG_FILE=/test/externals/react4xpConstants.json --env BUILD_R4X=$(pwd)/build --env ROOT=$(pwd)/../.. && echo \"\" && echo \"--> build/\" && ls build && echo \"-------------- react4xp-runtime-externals builds. ADD SOME ACTUAL TESTS PLZ?\"",
"test:nashornPolyfills:constants": "webpack --config nashornPolyfills/webpack.config.js --env REACT4XP_CONFIG_FILE=test/nashornPolyfills/output/testConfig.json && node test/nashornPolyfills/output/testPolyfilled.js"
},
"version": "2.0.1-SNAPSHOT"
}