npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rmake

v0.0.1

Published

C++ Project and CMake Makefile generator

Downloads

2

Readme

RMAKE - Rapid Testable C++ Project Creator

Description

RMake is a command line utility for creating C++ projects using CMake. It also creates a Test sub-project using Micro Test.

To use the rmake Ruby script

  1. On Linux add the following alias to your ~/.bachrc file (of course your path will be different).

    alias rmake='~/dev/rmake/rmake.rb'

    Note: I have rmake installed under my User path: ~/dev/rmake/

  2. On Windows you will need to edit the PATH environment variable and add the folder path to where rmake.rb is located.

Basic Usage

Let's go through the steps of creating a simple "hello" project using rmake.

Project "hello" Creation

The project is created under folder 'hello'.

cd /tmp
rmake hello

Building Project

Makefile is located under sub-folder build.

cd hello/build
make

Running hello program

The executable can be found under the build folder.

./hello

Running the Test Program

The test program is found under build/test/ sub-folder. Initially one failing test is created for you to follow.

./test/test.hello

Watch Video

Video

Micro Test - Testing Your Project

RMake creates a test sub-folder under src/ and uses the latest Micro Test header file, it basically pulls it from the Micro Test Git repository.

To learn more about how to write tests using Micro Test check out the project site. You will be amazed how simple and fast it is to write test code.

Importing Eclipse Project (Linux)

Launch Eclipse, then from the file menu select:

File -> New -> "Make project with existing code"

  1. Select Linux GCC for the toochain
  2. Browse to the existing project root
  3. Click finish

After the project is imported, from eclipse, right-click on the project name and pick "Properties" to bring up the project settings, or use the <Alt+Enter> shortcut.

Next click on "C/C++ Builds"

  1. Uncheck use default build command and type: "make VERBOSE=1"
  2. Click workspace button and select the folder "build" for this project
  3. Click OK

Next expand on "C/C++ General" and select "Path & Symbols"

  1. Click on the "Source Location" tab
  2. Click "Add Folder" button and select folder "src"
  3. Click OK

You should now be able to build and debug your C++ project.

Importing the Eclipse project (Windows & VC++)

Now we import our project into Eclipse. Launch Eclipse and from the file menu select:

File -> New -> "Make project with existing code"

  1. Select "Microsoft Visual C++" for the toochain
  2. browse to the existing project root
  3. click finish

We need to determine where the Include and Lib folder can be found. To do this from VC++ command prompt type:

echo %VSINSTALLDIR%
echo %WindowsSdkDir%

Once the project is imported, select it and right-click and pick "Properties" to bring up the project settings, or use the <Alt+Enter> shortcut.

  1. Select "C/C++ Build" -> "Settings"
  2. Click on "Linker" -> "Libraries"
  3. Under "Addtional libpath" click on the "+" icon
  4. Enter path to Lib folder, if should be something like
"C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib"
OR
"C:\Program Files\Microsoft Visual Studio 10.0\VC\lib"

Next expand on "C/C++ General" and select "Path & Symbols".

  1. Click on the "Source Location" tab
  2. Click "Add Folder" button and select "src" folder
  3. Click OK

We now need to excluse the build folder from the build process.

  1. Right click on the build folder
  2. Select "Resource Configurations" -> "Exclude from build".
  3. Select ALL and click OK

You should be able to build and run your project.

Thank You for using RMake, your support is very appreciated!

Happy Hacking =)


Contact

Rajinder Yadav

Labs DevMentor.org Corp.

Web: http://labs.devmentor.org

Email: [email protected]