search directory for references to localhost:1111/sit and replaces existing sit(val) with new sit(val)
to quickly update localhost URL to point at given API
- navigate to root directory:
$ cd path/to/online---frontend
- in terminal use command
sitx
+ @argv, where @argv is the number for the API - to update to sit1 API:
$ sitx 1
- to update to sit3 API:
$ sitx 3
- any single digit number can be used as @argv
- on success, 8 files will be updated to
localhost:1111/sit@argv
npm install -g sitx
Package | Version | Dev |
---|---|---|
replace | ^0.3.0 | ✖ |
node-readme | ^0.1.9 | ✔ |
Contributions welcome; Please submit all pull requests against master branch. Thanks!
michael mcgraw