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

@hrwg/reactivate

v0.3.1

Published

Zero config build and dev server tool for JavaScript and popular frameworks.

Downloads

124

Readme

Reactivate

Reactivate is a zero configuration build tool and dev server for popular JavaScript frameworks aiming to help jumpstarting projects by reducing setup code and boilerplate. It is powered by webpack and babel.

Reactivate is still under development and is going to improve dramarically over the course of the next weeks.

Table of contents

Features

  • Support for ReactJS and VueJS
  • Babel 7 used for transpilation
  • Hot reloading out of the box
  • Easy to configure, starting with zero config

Installation

Reactivate can be installed either locally or globally using npm.

$ npm i -g @hrwg/reactivate

Running your project

By default, reactivate assumes your project to meet the following conditions:

  • The applications entrypoint is src/index.js
  • The main html template is src/index.html
  • You use ReactJS or plain JavaScript

If your project does not meet those defaults, you will need a config file.

Development server

To run the development server, execute the following command inside your projects root directory.

$ reactivate serve

Development build

To run a development build, execute the following command inside your projects root directory.

$ reactivate build

Production build

To build for production, include the --production or -p flag.

$ reactivate build -p

Configuration

In order to configure reactivate, create a reactivate.config.js inside the root directory of your project. The file exports a JSON config, like in the example below.

// reactivate.config.js

module.exports = {
  entry: 'src/index.js'
};

The following parameters can be set inside the config.

| Parameter | Type | Description | Default | |-----------|------|-------------|---------| | entry | string |Defines the entry point of the application | src/index.js | | template | string | Defines the default html template the app is rendered to | src/index.html | | framework | "react", "vue" | Defines the framework used by the project | "react |

You can provide another config file, by using the -c option.

$ reactivate serve -c myconfig.js

Planned features

  • [ ] Support for style and static asset loading
  • [ ] Customize babel plugins
  • [ ] Zero config universal rendering
  • [ ] Angular support
  • [ ] Config eject

License

MIT

Contributing

If there are any ideas or optimizations to improve this project, feel free to submit a pull request including your documented changes.