TypeScript tools for OpenWRT ucode
npm install ts-ucodeTypeScript tools for OpenWRT ucode.
---
---
``shell`
npm install -g ts-ucode
`shell`within the directory to initialize
ts2ucode init
If ran from a ts-ucode initialized directory:
`shell`
ts2ucode
or from anywhere else:
`shell`
ts2ucode
- [ ] compiler
- [x] compile source dir to target dir
- [ ] compile standalone source file
- [ ] user friendly errors using TS diagnostics
- [ ] initialize project
- [x] create a package.json (improvements needed)tsconfig.json
- [x] create a (improvements needed)uloop
- [ ] ...
- [ ] Typings/IDE completions
- [x] removed standard JS lib
- [x] ucode core functions
- [x] (some fixes/improvements needed)ubus
- [x] (some fixes/improvements needed)fs
- [x] (incomplete?)uci
- [x] (incomplete for packages)math
- [x] nl80211
- [ ] resolv
- [ ] struct
- [ ] rtnl
- [ ] undefined
- [ ] transformers
- [x] default parameters
- [x] => nullfor (.. of ..)
- [x] methods to functions
- [x] arrow function compatibility
- [x] exports grouped at the end
- [x] => for (.. in ..)throw
- [x] import
- [x] fixes pathsprivate/protected/public
- [ ] destructuring arrays
- [ ] destructuring objects
- [x] classes
- [x] members (static or not)constructor
- [x] (as well as members in parameters)super` keyword
- [x] member initializers
- [x] inheritance
- [x]
- [ ] decorators
- [ ] functions
- [ ] class
- [x] class members
- [ ] test runner (WIP, not even in this repo but to be imported from private closed sources)
- [ ] run on docker
- [ ] run on specific device