eureka-init 1.1.3 โ 1.1.4
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/README.md +15 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,20 +8,6 @@ Modul untuk menyeragamkan format commit, linting, dan formatting di seluruh proj
|
|
|
8
8
|
- Memudahkan tracking bug & fitur.
|
|
9
9
|
- Siap untuk CI/CD dan audit sistem.
|
|
10
10
|
|
|
11
|
-
## ๐ข Rangkuman Update Terbaru (v1.0.6 - v1.1.0)
|
|
12
|
-
|
|
13
|
-
Modul ini telah mendapatkan peningkatan signifikan untuk mendukung ekosistem pengembangan modern (khususnya React dan Next.js) secara *out-of-the-box*:
|
|
14
|
-
|
|
15
|
-
### ๐ v1.1.0: Integrasi `lint-staged` & Linter React
|
|
16
|
-
- **`lint-staged` & Hook Pre-commit Super Cepat**: Hook `pre-commit` kini otomatis menjalankan `npx lint-staged`. Proses linting dan formatting hanya dilakukan pada file yang mengalami perubahan (di-stage), bukan keseluruhan project, sehingga *commit* menjadi jauh lebih cepat.
|
|
17
|
-
- **Optimasi Tanpa Redundansi**: Konfigurasi `lint-staged.config.js` dirancang cerdas untuk menghindari kerja dua kali. Eksekusi `eslint --fix` pada file JS/TS/JSX/TSX sudah otomatis mencakup *formatting* Prettier (melalui `plugin:prettier/recommended`), sedangkan file non-JS (`.json, .css, .md`) tetap dirapikan dengan `prettier --write`.
|
|
18
|
-
- **Dukungan Penuh Aturan React**: Konfigurasi ESLint (`.eslintrc.js`) kini sudah terbundel dengan `eslint-plugin-react` (`plugin:react/recommended`). Aturan usang pada React modern seperti `react-in-jsx-scope` dan `prop-types` telah dinonaktifkan secara otomatis.
|
|
19
|
-
|
|
20
|
-
### ๐งช v1.0.6: Standarisasi Unit Testing dengan Jest
|
|
21
|
-
- **Environment Testing Siap Pakai**: Konfigurasi `jest.config.js` dan `jest.setup.js` telah disesuaikan untuk pengujian komponen UI React/Next.js menggunakan `@testing-library/react`, `@testing-library/jest-dom`, `@testing-library/user-event`, dan `jest-environment-jsdom`.
|
|
22
|
-
- **Mocking & Modul Alias**: Sudah dilengkapi konfigurasi penanganan aset statis serta pemetaan CSS Modules (`identity-obj-proxy`) agar test tidak gagal saat mengimpor file styling.
|
|
23
|
-
- **Contoh Test Otomatis**: Saat inisialisasi (`npx eureka-init`), sistem otomatis membuat struktur folder `src/__tests__` beserta file `example.test.js` sebagai acuan dan panduan standar penulisan test bagi tim developer.
|
|
24
|
-
|
|
25
11
|
## ๐ Cara Penggunaan
|
|
26
12
|
|
|
27
13
|
### 1. Install Dependency
|
|
@@ -70,4 +56,18 @@ Setelah instalasi, Anda bisa menggunakan:
|
|
|
70
56
|
- `npm run lint`: Menjalankan eslint.
|
|
71
57
|
- `npm run format`: Menjalankan prettier untuk merapikan kode.
|
|
72
58
|
- `npm run test`: Menjalankan unit test menggunakan Jest.
|
|
73
|
-
- `npm run lint-staged`: Menjalankan linting dan formatting otomatis pada file yang di-stage sebelum commit.
|
|
59
|
+
- `npm run lint-staged`: Menjalankan linting dan formatting otomatis pada file yang di-stage sebelum commit.
|
|
60
|
+
|
|
61
|
+
## ๐ข Rangkuman Update Terbaru (v1.0.6 - v1.1.4)
|
|
62
|
+
|
|
63
|
+
Modul ini telah mendapatkan peningkatan signifikan untuk mendukung ekosistem pengembangan modern (khususnya React dan Next.js) secara *out-of-the-box*:
|
|
64
|
+
|
|
65
|
+
### ๐ v1.1.0: Integrasi `lint-staged` & Linter React
|
|
66
|
+
- **`lint-staged` & Hook Pre-commit Super Cepat**: Hook `pre-commit` kini otomatis menjalankan `npx lint-staged`. Proses linting dan formatting hanya dilakukan pada file yang mengalami perubahan (di-stage), bukan keseluruhan project, sehingga *commit* menjadi jauh lebih cepat.
|
|
67
|
+
- **Optimasi Tanpa Redundansi**: Konfigurasi `lint-staged.config.js` dirancang cerdas untuk menghindari kerja dua kali. Eksekusi `eslint --fix` pada file JS/TS/JSX/TSX sudah otomatis mencakup *formatting* Prettier (melalui `plugin:prettier/recommended`), sedangkan file non-JS (`.json, .css, .md`) tetap dirapikan dengan `prettier --write`.
|
|
68
|
+
- **Dukungan Penuh Aturan React**: Konfigurasi ESLint (`.eslintrc.js`) kini sudah terbundel dengan `eslint-plugin-react` (`plugin:react/recommended`). Aturan usang pada React modern seperti `react-in-jsx-scope` dan `prop-types` telah dinonaktifkan secara otomatis.
|
|
69
|
+
|
|
70
|
+
### ๐งช v1.0.6: Standarisasi Unit Testing dengan Jest
|
|
71
|
+
- **Environment Testing Siap Pakai**: Konfigurasi `jest.config.js` dan `jest.setup.js` telah disesuaikan untuk pengujian komponen UI React/Next.js menggunakan `@testing-library/react`, `@testing-library/jest-dom`, `@testing-library/user-event`, dan `jest-environment-jsdom`.
|
|
72
|
+
- **Mocking & Modul Alias**: Sudah dilengkapi konfigurasi penanganan aset statis serta pemetaan CSS Modules (`identity-obj-proxy`) agar test tidak gagal saat mengimpor file styling.
|
|
73
|
+
- **Contoh Test Otomatis**: Saat inisialisasi (`npx eureka-init`), sistem otomatis membuat struktur folder `src/__tests__` beserta file `example.test.js` sebagai acuan dan panduan standar penulisan test bagi tim developer.
|