https://github.com/tremainebuchanan/reccy
Nodemon for C++ files
https://github.com/tremainebuchanan/reccy
cplusplus file-watcher nodejs npm-package
Last synced: 6 months ago
JSON representation
Nodemon for C++ files
- Host: GitHub
- URL: https://github.com/tremainebuchanan/reccy
- Owner: tremainebuchanan
- Created: 2019-03-02T23:08:25.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2019-03-08T05:15:18.000Z (over 6 years ago)
- Last Synced: 2024-04-26T17:44:56.348Z (over 1 year ago)
- Topics: cplusplus, file-watcher, nodejs, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/reccy
- Size: 2.93 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reccy
Nodemon for C++ files. Watches C++ files in a directory for changes and compiles to object code.# Important Notice
Currently works on Ubuntu 18.04.
# Why reccy
The library was built to automate the generation of C++ object files when writing `.cpp` programs. Generating `.o` files was a problem for me as I would need to run the following lines of code over and over again:`g++ -o output_file_name source_file.cpp`
then run `./output_file_name` to execute the program.
This library would reduce the need to type and run the `g++` command manually.
# Requirements
1. `nodejs` must be installed on your laptop.
2. `g++` must be installed on your laptop.# Installation
From the terminal (Ctrl + T to invoke) run the following
`npm install -g reccy` or
`npm i -g reccy`
# Usage
Once installed globally, navigate to the folder containing `.cpp` files.On the command line within the folder containing the `.cpp` files type
`reccy .cpp`
An object file `.o` with the same name as the `.cpp` file will be created.
# TODO
1. Check if `g++` is installed in host machine before executing script.
2. Execute `.o` file provided that a flag is passed to `reccy`.
3. Create unit tests
4. Add functionality to watch more than one `.cpp` files.