Skip to content

Commit 64ff082

Browse files
committed
Build engine.runtime and engine.react as ESM modules.
1 parent fef41ca commit 64ff082

3 files changed

Lines changed: 357 additions & 100 deletions

File tree

packages/engine.react/package.json

Lines changed: 64 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,65 @@
11
{
2-
"name": "@c11/engine.react",
3-
"version": "4.0.0-alpha.123",
4-
"description": "A programming engine for a react environment",
5-
"main": "dist/index.js",
6-
"typings": "dist/index.d.ts",
7-
"license": "MIT",
8-
"author": {
9-
"name": "Constantin Dumitrescu",
10-
"email": "dum.constantin@gmail.com"
11-
},
12-
"contributors": [
13-
{
14-
"name": "Alexandru Oprisean",
15-
"email": "alexandru.oprisean@code11.com"
16-
}
17-
],
18-
"scripts": {
19-
"build": "tsc",
20-
"test:simple": "jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/*",
21-
"test:coverage": "jest --runInBand --config ./jest.config.js --coverageDirectory='./coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
22-
"test": "yarn run test:coverage",
23-
"publish": "yarn npm publish --tolerate-republish"
24-
},
25-
"peerDependencies": {
26-
"react": ">=16",
27-
"react-dom": ">=16"
28-
},
29-
"files": [
30-
"dist"
31-
],
32-
"dependencies": {
33-
"@c11/engine.producer": "4.0.0-alpha.123",
34-
"@c11/engine.runtime": "4.0.0-alpha.123",
35-
"@c11/engine.types": "4.0.0-alpha.121",
36-
"@c11/engine.utils": "4.0.0-alpha.122",
37-
"jest-silent-reporter": "^0.5.0",
38-
"lodash": "^4.17.21"
39-
},
40-
"devDependencies": {
41-
"@babel/core": "^7.19.3",
42-
"@babel/plugin-proposal-class-properties": "^7.18.6",
43-
"@babel/plugin-proposal-decorators": "^7.19.3",
44-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
45-
"@babel/preset-env": "^7.19.3",
46-
"@babel/preset-react": "^7.18.6",
47-
"@babel/preset-typescript": "^7.18.6",
48-
"@c11/engine.babel-plugin-syntax": "4.0.0-alpha.122",
49-
"@testing-library/jest-dom": "^5.16.5",
50-
"@testing-library/react": "^13.4.0",
51-
"@types/jest": "^29.1.1",
52-
"@types/lodash": "^4.14.186",
53-
"@types/node": "^18.11.18",
54-
"@types/react": "^18.0.27",
55-
"@types/react-dom": "^18.0.10",
56-
"jest": "^29.1.2",
57-
"jest-environment-jsdom": "^29.1.2",
58-
"react": "18.2.0",
59-
"react-dom": "18.2.0",
60-
"typescript": "4.8.4"
61-
},
62-
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9"
63-
}
2+
"name": "@c11/engine.react",
3+
"version": "4.0.0-alpha.123",
4+
"description": "A programming engine for a react environment",
5+
"main": "dist/index.js",
6+
"typings": "dist/index.d.ts",
7+
"license": "MIT",
8+
"author": {
9+
"name": "Constantin Dumitrescu",
10+
"email": "dum.constantin@gmail.com"
11+
},
12+
"contributors": [
13+
{
14+
"name": "Alexandru Oprisean",
15+
"email": "alexandru.oprisean@code11.com"
16+
}
17+
],
18+
"scripts": {
19+
"build": "tsc && yarn run bundle",
20+
"bundle": "esbuild --bundle --format=esm --sourcemap --minify --platform=browser --outfile=./dist/esm.js --external:\"@c11/*\" --external:\"react\" --external:\"react-dom\" src/index.ts",
21+
"test:simple": "jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/*",
22+
"test:coverage": "jest --runInBand --config ./jest.config.js --coverageDirectory='./coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
23+
"test": "yarn run test:coverage",
24+
"publish": "yarn npm publish --tolerate-republish"
25+
},
26+
"peerDependencies": {
27+
"react": ">=16",
28+
"react-dom": ">=16"
29+
},
30+
"files": [
31+
"dist"
32+
],
33+
"dependencies": {
34+
"@c11/engine.producer": "4.0.0-alpha.123",
35+
"@c11/engine.runtime": "4.0.0-alpha.123",
36+
"@c11/engine.types": "4.0.0-alpha.121",
37+
"@c11/engine.utils": "4.0.0-alpha.122",
38+
"jest-silent-reporter": "^0.5.0",
39+
"lodash": "^4.17.21"
40+
},
41+
"devDependencies": {
42+
"@babel/core": "^7.19.3",
43+
"@babel/plugin-proposal-class-properties": "^7.18.6",
44+
"@babel/plugin-proposal-decorators": "^7.19.3",
45+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
46+
"@babel/preset-env": "^7.19.3",
47+
"@babel/preset-react": "^7.18.6",
48+
"@babel/preset-typescript": "^7.18.6",
49+
"@c11/engine.babel-plugin-syntax": "4.0.0-alpha.122",
50+
"@testing-library/jest-dom": "^5.16.5",
51+
"@testing-library/react": "^13.4.0",
52+
"@types/jest": "^29.1.1",
53+
"@types/lodash": "^4.14.186",
54+
"@types/node": "^18.11.18",
55+
"@types/react": "^18.0.27",
56+
"@types/react-dom": "^18.0.10",
57+
"esbuild": "0.24.0",
58+
"jest": "^29.1.2",
59+
"jest-environment-jsdom": "^29.1.2",
60+
"react": "18.2.0",
61+
"react-dom": "18.2.0",
62+
"typescript": "4.8.4"
63+
},
64+
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9"
65+
}
Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,41 @@
11
{
2-
"name": "@c11/engine.runtime",
3-
"version": "4.0.0-alpha.123",
4-
"description": "A runtime for engine applications",
5-
"main": "dist/index.js",
6-
"typings": "dist/index.d.ts",
7-
"license": "MIT",
8-
"author": {
9-
"name": "Constantin Dumitrescu",
10-
"email": "dum.constantin@gmail.com"
11-
},
12-
"scripts": {
13-
"build": "tsc",
14-
"test:simple": "jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/events*",
15-
"test:coverage": "jest --runInBand --config ./jest.config.js --coverageDirectory='./coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
16-
"test": "yarn run test:coverage",
17-
"publish": "yarn npm publish --tolerate-republish"
18-
},
19-
"dependencies": {
20-
"@c11/engine.db": "4.0.0-alpha.122",
21-
"@c11/engine.producer": "4.0.0-alpha.123",
22-
"@c11/engine.types": "4.0.0-alpha.121",
23-
"@c11/engine.utils": "4.0.0-alpha.118",
24-
"lodash": "^4.17.21"
25-
},
26-
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9",
27-
"devDependencies": {
28-
"@babel/core": "^7.19.3",
29-
"@babel/plugin-proposal-class-properties": "^7.18.6",
30-
"@babel/preset-env": "^7.19.3",
31-
"@babel/preset-typescript": "^7.18.6",
32-
"@c11/engine.babel-plugin-syntax": "4.0.0-alpha.122",
33-
"@types/jest": "^29.4.0",
34-
"@types/lodash": "^4.14.186",
35-
"@types/node": "^18.11.18",
36-
"jest": "^29.4.1",
37-
"typescript": "4.8.4"
38-
}
39-
}
2+
"name": "@c11/engine.runtime",
3+
"version": "4.0.0-alpha.123",
4+
"description": "A runtime for engine applications",
5+
"main": "dist/index.js",
6+
"typings": "dist/index.d.ts",
7+
"license": "MIT",
8+
"author": {
9+
"name": "Constantin Dumitrescu",
10+
"email": "dum.constantin@gmail.com"
11+
},
12+
"scripts": {
13+
"build": "tsc && yarn run bundle",
14+
"bundle": "esbuild --bundle --format=esm --sourcemap --minify --platform=browser --outfile=./dist/esm.js src/index.ts",
15+
"test:simple": "jest --runInBand --config ./jest.config.js --runTestsByPath ./specs/events*",
16+
"test:coverage": "jest --runInBand --config ./jest.config.js --coverageDirectory='./coverage' --collectCoverage --collectCoverageFrom='[\"./src/**/*.{ts,tsx,js,jsx}\"]' --runTestsByPath ./specs/*",
17+
"test": "yarn run test:coverage",
18+
"publish": "yarn npm publish --tolerate-republish"
19+
},
20+
"dependencies": {
21+
"@c11/engine.db": "4.0.0-alpha.122",
22+
"@c11/engine.producer": "4.0.0-alpha.123",
23+
"@c11/engine.types": "4.0.0-alpha.121",
24+
"@c11/engine.utils": "4.0.0-alpha.118",
25+
"lodash": "^4.17.21"
26+
},
27+
"gitHead": "5a84fad4e5eaf1aa3921d42c73c4c01c4a8200f9",
28+
"devDependencies": {
29+
"@babel/core": "^7.19.3",
30+
"@babel/plugin-proposal-class-properties": "^7.18.6",
31+
"@babel/preset-env": "^7.19.3",
32+
"@babel/preset-typescript": "^7.18.6",
33+
"@c11/engine.babel-plugin-syntax": "4.0.0-alpha.122",
34+
"@types/jest": "^29.4.0",
35+
"@types/lodash": "^4.14.186",
36+
"@types/node": "^18.11.18",
37+
"esbuild": "0.24.0",
38+
"jest": "^29.4.1",
39+
"typescript": "4.8.4"
40+
}
41+
}

0 commit comments

Comments
 (0)