1.0.2 • Published 2 years ago

bkavcorets v1.0.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Core BKAV Library

Cấu trúc

  • /dist: Các file .ts đã được compiled và bundled (tự tạo qua build)
  • /src:
    • index.ts: export * từ các folder (khi thêm folder phải thêm export * from ./[folder] ở đây)
    • [folder]/: Các folder trong thư viện
      • index.ts: Export từ đây
      • *.ts: Các file khác có chức năng hỗ trợ file index.ts qua export (rồi import từ file ./index.ts), nhưng những export này sẽ không dùng được bên ngoài thư viện do file /src/index.ts chỉ export từ các folder (tức là qua các file src/[folder]/index.ts)
  • tsconfig.json: Các config typescript để tsc build
  • .npmignore: Danh sách các folder/file không upload lên npm package
  • Các file khác: .gitignore, package.json, package-lock.json

Scripts

  • npm run build: Xóa /dist cũ và build /dist mới
  • npm version [VERSION]: Tạo version mới trước khi publish. Trước khi tạo version mới cần git commit.
  • npm publish: Đẩy version lên npm
  • npm run testlocal: build và link package để test được trong folder /test.
    • Tip/workaround để test: Viết import {} from 'bkavcorets' ở đầu các file dùng thư viện để có intellisense.
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago