Skip to content

Commit 572944e

Browse files
committed
fix: generate Ruby Bundler config in new projects
1 parent d6003bc commit 572944e

File tree

7 files changed

+14
-5
lines changed

7 files changed

+14
-5
lines changed

.bundle/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BUNDLE_PATH: ".bundle"
2+
BUNDLE_FORCE_RUBY_PLATFORM: 1

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
*.xcworkspace/
55
.DS_Store
66
.android-test-*
7+
.bundle/*
8+
!.bundle/config
79
.ccache/*
810
!.ccache/ccache.conf
911
.cxx/

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require:
1+
plugins:
22
- rubocop-minitest
33

44
AllCops:

.yarn/plugins/clean.cjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ module.exports = {
2626
);
2727
fs.rmSync(symlink, { force: true, maxRetries: 3, recursive: true });
2828

29-
spawnSync("git", ["clean", "-dfqx", "--exclude=.yarn/cache"], {
30-
cwd: projectRoot,
31-
stdio: "inherit",
32-
});
29+
spawnSync(
30+
"git",
31+
["clean", "-dfqx", "--exclude=.bundle", "--exclude=.yarn/cache"],
32+
{ cwd: projectRoot, stdio: "inherit" }
33+
);
3334
}
3435
}
3536

example/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
*.xcworkspace/
44
*.zip
55
.DS_Store
6+
.bundle/*
7+
!.bundle/config
68
.gradle/
79
.idea/
810
.vs/

scripts/configure.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ export const getConfig = (() => {
305305
: {
306306
"App.js": copyFrom(templateDir, "App.js"),
307307
}),
308+
".bundle/config": copyFrom(testAppPath, ".bundle", "config"),
308309
Gemfile: copyFrom(templateDir, "Gemfile"),
309310
"app.json": appManifest(name),
310311
"index.js": copyFrom(templateDir, "index.js"),

test/configure/getConfig.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ describe("getConfig()", () => {
4545
const config = getConfig(params, "common");
4646

4747
deepEqual(Object.keys(config.files).sort(), [
48+
".bundle/config",
4849
".gitignore",
4950
".watchmanconfig",
5051
"App.tsx",

0 commit comments

Comments
 (0)