Skip to content

Commit a56bb97

Browse files
committed
run prettifier
1 parent f4cd01e commit a56bb97

File tree

12 files changed

+42
-87
lines changed

12 files changed

+42
-87
lines changed
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
{
22
"dim": "2",
3-
"feature_set": [
4-
"serde-serialize",
5-
"debug-render"
6-
],
3+
"feature_set": ["serde-serialize", "debug-render"],
74
"target_dir": "../rapier2d/",
85
"template_dir": "./templates/",
96
"additional_rust_flags": "",
107
"additional_wasm_opt_flags": [],
118
"js_package_name": "rapier2d",
12-
"conditions_to_remove": [
13-
"DIM3"
14-
]
15-
}
9+
"conditions_to_remove": ["DIM3"]
10+
}
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
{
22
"dim": "2",
3-
"feature_set": [
4-
"serde-serialize",
5-
"debug-render",
6-
"enhanced-determinism"
7-
],
3+
"feature_set": ["serde-serialize", "debug-render", "enhanced-determinism"],
84
"target_dir": "../rapier2d-deterministic",
95
"template_dir": "./templates/",
106
"additional_rust_flags": "",
117
"additional_wasm_opt_flags": [],
128
"js_package_name": "rapier2d-deterministic",
13-
"conditions_to_remove": [
14-
"DIM3"
15-
]
16-
}
9+
"conditions_to_remove": ["DIM3"]
10+
}
Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
{
2-
"dim": "2",
3-
"feature_set": [
4-
"serde-serialize",
5-
"debug-render",
6-
"simd-stable"
7-
],
8-
"target_dir": "../rapier2d-simd",
9-
"template_dir": "./templates/",
10-
"additional_rust_flags": "-C target-feature=+simd128",
11-
"additional_wasm_opt_flags": [
12-
"--enable-simd"
13-
],
14-
"js_package_name": "rapier2d-simd",
15-
"conditions_to_remove": [
16-
"DIM3"
17-
]
18-
}
2+
"dim": "2",
3+
"feature_set": ["serde-serialize", "debug-render", "simd-stable"],
4+
"target_dir": "../rapier2d-simd",
5+
"template_dir": "./templates/",
6+
"additional_rust_flags": "-C target-feature=+simd128",
7+
"additional_wasm_opt_flags": ["--enable-simd"],
8+
"js_package_name": "rapier2d-simd",
9+
"conditions_to_remove": ["DIM3"]
10+
}
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
{
22
"dim": "3",
3-
"feature_set": [
4-
"serde-serialize",
5-
"debug-render"
6-
],
3+
"feature_set": ["serde-serialize", "debug-render"],
74
"target_dir": "../rapier3d/",
85
"template_dir": "./templates/",
96
"additional_rust_flags": "",
107
"additional_wasm_opt_flags": [],
118
"js_package_name": "rapier3d",
12-
"conditions_to_remove": [
13-
"DIM2"
14-
]
15-
}
9+
"conditions_to_remove": ["DIM2"]
10+
}
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
{
22
"dim": "3",
3-
"feature_set": [
4-
"serde-serialize",
5-
"debug-render",
6-
"enhanced-determinism"
7-
],
3+
"feature_set": ["serde-serialize", "debug-render", "enhanced-determinism"],
84
"target_dir": "../rapier3d-deterministic",
95
"template_dir": "./templates/",
106
"additional_rust_flags": "",
117
"additional_wasm_opt_flags": [],
128
"js_package_name": "rapier3d-deterministic",
13-
"conditions_to_remove": [
14-
"DIM2"
15-
]
16-
}
9+
"conditions_to_remove": ["DIM2"]
10+
}
Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
{
22
"dim": "3",
3-
"feature_set": [
4-
"serde-serialize",
5-
"debug-render",
6-
"simd-stable"
7-
],
3+
"feature_set": ["serde-serialize", "debug-render", "simd-stable"],
84
"target_dir": "../rapier3d-simd",
95
"template_dir": "./templates/",
106
"additional_rust_flags": "-C target-feature=+simd128",
11-
"additional_wasm_opt_flags": [
12-
"--enable-simd"
13-
],
7+
"additional_wasm_opt_flags": ["--enable-simd"],
148
"js_package_name": "rapier3d-simd",
15-
"conditions_to_remove": [
16-
"DIM2"
17-
]
18-
}
9+
"conditions_to_remove": ["DIM2"]
10+
}

builds/prepare_builds/assets/example_dim2_minimal.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,5 @@
66
"additional_rust_flags": "",
77
"additional_wasm_opt_flags": [],
88
"js_package_name": "rapier3d-minimal",
9-
"conditions_to_remove": [
10-
"DIM3",
11-
"SERDE_SERIALIZE",
12-
"DEBUG_RENDER"
13-
]
14-
}
9+
"conditions_to_remove": ["DIM3", "SERDE_SERIALIZE", "DEBUG_RENDER"]
10+
}

builds/prepare_builds/assets/example_dim3_minimal.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,5 @@
66
"additional_rust_flags": "",
77
"additional_wasm_opt_flags": [],
88
"js_package_name": "rapier3d-minimal",
9-
"conditions_to_remove": [
10-
"DIM2",
11-
"SERDE_SERIALIZE",
12-
"DEBUG_RENDER"
13-
]
14-
}
9+
"conditions_to_remove": ["DIM2", "SERDE_SERIALIZE", "DEBUG_RENDER"]
10+
}

rapier-compat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@
4949
"js"
5050
]
5151
}
52-
}
52+
}

rapier-compat/rollup.config.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import path from "path";
66
import {base64} from "rollup-plugin-base64";
77
import copy from "rollup-plugin-copy";
88
import filesize from "rollup-plugin-filesize";
9-
import * as fs from 'fs';
9+
import * as fs from "fs";
1010

1111
const config = (dim, js_package_name) => ({
1212
input: `builds/${js_package_name}/gen${dim}/rapier.ts`,
@@ -69,9 +69,12 @@ const config = (dim, js_package_name) => ({
6969
],
7070
});
7171

72-
const conf = JSON.parse(fs.readFileSync('../builds/prepare_builds/assets/' + process.env.BUILD_CONFIG_NAME + '.json'));
72+
const conf = JSON.parse(
73+
fs.readFileSync(
74+
"../builds/prepare_builds/assets/" +
75+
process.env.BUILD_CONFIG_NAME +
76+
".json",
77+
),
78+
);
7379

74-
75-
export default [
76-
config("" + conf.dim + "d", conf.js_package_name),
77-
];
80+
export default [config("" + conf.dim + "d", conf.js_package_name)];

0 commit comments

Comments
 (0)