1.5.0 • Published 1 year ago

@postxl/lock v1.5.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

lock

A simple lock file implementation for PostXL projects.

Definitions

We divide files into static and dynamic files.

  • static files are files that are not bound to data schema (e.g. atoms/Button/Button.tsx),
  • dynamic files are files that are bound to data schema and change as the data model changes (e.g. models/User/Form.tsx).

We further divide static files into project files and template files.

  • project files change in each project (e.g. web/package.json), while
  • template files mostly stay unchanged (e.g. atoms/Button/Button.tsx - we only change them when we fix a bug or add a new feature).

We further divide dynamic files into managed and detached files.

  • managed files are files which have the same content as generator would've generated, while
  • detached files are files that user has modified manually.

LockFile

To figure whether user has modified a file, we track checksums of all files in the project.

By convention we store checksums in postxl-lock.yaml.

We determine whether the file has been modified by comparing the checksum of the actual file on the disk with the checksum in the lockfile. If the file has been modified, the checksum will be different.

1.5.0

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.3.0

2 years ago

0.4.1

2 years ago

0.3.2

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago