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

tmake

v0.6.5

Published

[![NPM](https://nodei.co/npm/tmake.png?downloads=true)](https://nodei.co/npm/tmake/)

Downloads

7

Readme

TrieMake uses JSON to configure/build/test large c++ dependency trees Build Status Coverage Status

NPM

warning

This tool is currently experimental, and possibly not useful, examine at your own risk. check out (not my project) https://conan.io if you need c++ dependency management today

What ?

  • npm for c++, (but not really because scripting vs symbols, em i rite?)

Why ?

  • native code runs fast, is safe, saves electricity

'it' can ->

  • fetch
    • git branches or tarballs
  • configure
    • create / replace / files ala autotools "config.h.in"
    • generate ninja or cmake files
    • or use directly those things i.e cmake --configure
  • build
    • with ninja
    • easily override all cFlags / cxxFlags
  • install
    • automagically aggregates headers and libs, but can override for specific copying
    • no 'make install' everything is stored locally, and dependencies include locally
  • test
    • run tests -- not implemented yet

other things of note

  • can be run directly on mac / win / linux with node
  • can use docker run 1e1f/tmake (if linux host environment is ok)

current roadmap, things aren't done that need to be

host: yaml configs as json in a central repo cache: store static_libs + headers against config hash clang cross-compile and dynamic support for different toolchain / sysroot

philosophies

  • always be cross-compiling
  • statically link all the things
  • declarative yaml / json only, no imperative configuration logic
  • can override settings in any dependency from any point below it in the config tree
  • cascading selectors make configuration as DRY as possible
  • support other build tools (ninja, cmake, make, gyp)
  • be embeddable in another project / build system
  • avoid use of any globals on dev machine, project folder is the universe
  • no explicit publication of built source, just pull a hash if it exists

To Install

npm install -g tmake

REQUIREMENTS

Trying to make this as automatic as possible

depends on node fetches most other aspects of the toolchain, except for git + cmake (presently)

  • nodejs - https://nodejs.org/en/
    • it is built in node
    • https://www.google.com/search?client=safari&rls=en&q=install+nodejs&ie=UTF-8&oe=UTF-8
  • build tools
    • ninja - will be automatically installed locally
    • cmake - https://cmake.org https://www.google.com/search?client=safari&rls=en&q=install+cmake&ie=UTF-8&oe=UTF-8
  • some build tools i.e.
    • xcode on mac
    • build-essentials on linux
    • maybe works on windows? (i haven't checked yet)

Run an example

mkdir tmake-example && cd tmake-example
tmake example served
tmake
./build/example_served &
curl http://127.0.0.1:8080/hello

What's the build file look like?

a simple cross platform zlib config

---
git:
  repository: madler/zlib
  tag: v1.2.8
configure:
  replace:
    gzguts:
      matching:
        - "gzguts.h"
      inputs:
        unistd:
        - "#ifdef _LARGEFILE64_SOURCE"
        - "#include <unistd.h>\n#ifdef _LARGEFILE64_SOURCE"
build:
  with: ninja
  sources:
    matching:
      - "*.c"
  compilerFlags:
    ios:
      miphoneos-version-min: "=6.0"
  cFlags:
    O: 3
    Wall: true
    Wwrite-strings: true
    Wpointer-arith: true
    Wconversion: true
    ios:
      "fembed-bitcode": true

Contributing

see 'warning' at the top, update this project is ALMOST useful now, please holler at [email protected] if you're interested in this project

Release History

(Nothing yet)

License

Copyright (c) 2016 1e1f Licensed under the MIT license.