create-ern-boilerplate 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/create.js CHANGED
@@ -78,8 +78,7 @@ async function main() {
78
78
  autoInstall = hasInstall; // ✅ install hanya kalau ada flag --install
79
79
  console.log(
80
80
  chalk.green(
81
- `📦 Membuat proyek ${projectName}... (mode cepat${
82
- autoInstall ? " + install dependencies" : ""
81
+ `📦 Membuat proyek ${projectName}... (mode cepat${autoInstall ? " + install dependencies" : ""
83
82
  })`
84
83
  )
85
84
  );
@@ -104,6 +103,14 @@ async function main() {
104
103
  try {
105
104
  await fs.copy(templateDir, targetDir);
106
105
 
106
+ // === Rename .gitignore-template ke .gitignore ===
107
+ const gitignoreTemplatePath = path.join(targetDir, ".gitignore-template");
108
+ const gitignorePath = path.join(targetDir, ".gitignore");
109
+
110
+ if (await fs.pathExists(gitignoreTemplatePath)) {
111
+ await fs.move(gitignoreTemplatePath, gitignorePath);
112
+ }
113
+
107
114
  // === Update package.json ===
108
115
  const pkgPath = path.join(targetDir, "package.json");
109
116
  if (fs.existsSync(pkgPath)) {
@@ -154,11 +161,10 @@ async function main() {
154
161
  ${chalk.green("🎉 Selesai!")}
155
162
  Langkah selanjutnya:
156
163
  ${chalk.cyan(`boilerplate ${projectName} berhasil dibuat, silahkan mulai code berdasarkan kebutuhan anda... atau sesuaikan aja`)}
157
- ${
158
- autoInstall
159
- ? chalk.dim("(dependencies sudah terinstall ✅)")
160
- : chalk.cyan("")
161
- }
164
+ ${autoInstall
165
+ ? chalk.dim("(dependencies sudah terinstall ✅)")
166
+ : chalk.cyan("")
167
+ }
162
168
  ${chalk.cyan("")}
163
169
 
164
170
  Happy coding! 💻
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ern-boilerplate",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "Expo React Native boilerplate generator",
5
5
  "bin": {
6
6
  "create-ern-boilerplate": "./create.js",
@@ -0,0 +1,71 @@
1
+ # OSX
2
+ .DS_Store
3
+
4
+ # Xcode
5
+ build/
6
+ *.pbxuser
7
+ !default.pbxuser
8
+ *.mode1v3
9
+ !default.mode1v3
10
+ *.mode2v3
11
+ !default.mode2v3
12
+ *.perspectivev3
13
+ !default.perspectivev3
14
+ xcuserdata
15
+ *.xccheckout
16
+ *.moved-aside
17
+ DerivedData
18
+ *.hmap
19
+ *.ipa
20
+ *.xcuserstate
21
+ project.xcworkspace
22
+
23
+ # Android
24
+ *.iml
25
+ .gradle
26
+ /local.properties
27
+ /.idea/caches
28
+ /.idea/libraries
29
+ /.idea/modules.xml
30
+ /.idea/workspace.xml
31
+ /.idea/navEditor.xml
32
+ /.idea/assetWizardSettings.xml
33
+ .DS_Store
34
+ /build
35
+ /captures
36
+ .externalNativeBuild
37
+ .cxx
38
+
39
+ # Node
40
+ node_modules/
41
+ npm-debug.log
42
+ yarn-error.log
43
+
44
+ # Expo
45
+ .expo/
46
+ dist/
47
+ web-build/
48
+
49
+ # Environment
50
+ .env
51
+ .env.local
52
+ .env.development.local
53
+ .env.test.local
54
+ .env.production.local
55
+
56
+ # TypeScript
57
+ *.tsbuildinfo
58
+
59
+ # Metro
60
+ .metro-health-check*
61
+
62
+ # Debug
63
+ *.log*
64
+ # @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
65
+ # The following patterns were generated by expo-cli
66
+
67
+ expo-env.d.ts
68
+ # @end expo-cli
69
+
70
+ # Other
71
+ structure.txt