bevry / cson

CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.
Other
1.34k stars 56 forks source link

Rewrite in TypeScript with Promises #90

Open balupton opened 5 years ago

balupton commented 5 years ago

Definitions already provided by @stpettersens at: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/5344bfc80508c53a23dae37b860fb0c905ff7b24/types/cson/index.d.ts

balupton commented 5 years ago

@stpettersens would you be interested in undertaking this task?

stpettersens commented 5 years ago

Rewrite the library in TypeScript?

balupton commented 4 years ago

Rewrite the library in TypeScript?

Correct.

balupton commented 4 years ago

For anyone who wants to rewrite the CSON library in TypeScript, I can kick off the scaffolding required, but just need someone to do the actual line by line conversions.

Once the initial typescript release is done, I'm also happy for the API to change and move into a Promise API as well, or to just be overall simplified.

I'm able to put a $10USD bounty on this, but that is all I can afford.

balupton commented 4 years ago

actually, going to do it myself now

balupton commented 4 years ago

actually, will need to wait until these deps are converted to typescript first:

extract-opts is not needed, as typescript conversion would deprecate the need for this via bc breaks

so postponing until later

balupton commented 4 years ago

these are the remaining usages of cson within the bevry ecosystem:

https://github.com/docpad/docpad-plugin-cson/blob/875c7fa912e382f2e63f91dd01dfd78165c5d5d5/source/index.coffee#L23-L29

https://github.com/docpad/docpad/blob/7ed5087dab6b88df634952dc7a850d6622b88efb/source/lib/models/document.coffee#L793

https://github.com/docpad/docpad/blob/7ed5087dab6b88df634952dc7a850d6622b88efb/source/lib/models/document.coffee#L227

https://github.com/docpad/docpad/blob/85b3297ea8a50c477d8de890388905469a1ac5e8/source/lib/docpad.coffee#L2298-L2299

https://github.com/docpad/docpad/blob/85b3297ea8a50c477d8de890388905469a1ac5e8/source/lib/docpad.coffee#L2217-L2218

https://github.com/docpad/docpad/blob/85b3297ea8a50c477d8de890388905469a1ac5e8/source/lib/docpad.coffee#L2261

They are all DocPad stuff, it isn't used outside DocPad, which is an archived project. So Bevry priority here is very low.

balupton commented 12 months ago

for swapping out safefs https://github.com/bevry/fs-read https://github.com/bevry/fs-write

Not sure for requirefresh.

balupton commented 12 months ago

They are all DocPad stuff, it isn't used outside DocPad, which is an archived project. So Bevry priority here is very low.

This is no longer the case, there are hundreds of dependents: https://www.npmjs.com/package/cson?activeTab=dependents

still nothing bevry owned uses cson anymore besides docpad which is an archived project

best way to make this happen is via https://bevry.me/fund