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

rocket-framework

v4.0.18

Published

Rocket is an awesome front-end framework and builder.

Downloads

17

Readme

Rocket Framework

Rocket is an configuration based front-end framework that lets you stay focused on building.

Getting Rocket

You can either download a copy of the rocket framework right here from GitHub, else install the framework via npm. See an example below.

npm install rocket-framework

Launching

Simply drop the Rocket directory into your project and include the launch.js file before your ending body tag. Below is an example of this and note that an id of rocket is required.

<body style="display: none;">
    /* Your content goes here */
    <script id="rocket" src="rocket/launch.js"></script>
</body>

The body tag style attribute is used to prevent CSS style snapping on load and is highly recommended.

Cockpit File Loading

All projects include a combination of CSS and Javascript and Rocket makes it super easy to load these using a simple configuration file. You can find this file at rocket/cockpit.json. Below is a basic example.

{
   "css": ["welcome.css", "theme.css"],
   "js": ["welcome.js"]
}

You will notice that the array allows you to load more than one file and that the Rocket path is not required. This is because Rocket automatically knows where to look within the directory. You can also load different files on different pages.

Page Loader

If you would like a page loader to display while your project files load, simply wrap your content in a div with id rocket-content. See an example below.

<body>
   <div id="rocket-content" style="display: none;">
      /* Your content goes here */
   </div>

   <script id="rocket" src="rocket/launch.js"></script>
</body>

Browser Support: IE9+, Chrome, Firefox, Safari, Opera

Go Into Orbit

Before you have even started, Rocket has already loaded up Modernizr, Normalize.css, Typeplate, Anime.js, Rocket Tools, Rocket Require and icon font support at a minimal size. This takes away most of the set up time and acts like a kind of advanced boilerplate.

This will get you up and running for most projects but if you want to delve into Rocket's automatic NPM and SASS integration then just read over some of the online documentation and become a bonafide pro.

Command-line Tool

One of the best features of Rocket is the command-line tool. It will make building your project so much easier and helps with SASS building, Javascript minification and module development. While it is an advanced feature it has tons of uses like watching for file changes and updating your browser automatically.

https://rocketrocks.io/documentation/command-line

Webplate Migration

While Webplate has many of the same core features as Rocket, it is not recommended that you try and migrate. Rocket has many philosophical and developmental differences, from the the altered Rocket namespace to the build tools. Webplate will however be branched and maintained for bug fixes.

If you wish to attempt a migration do so only for smaller projects as for larger projects it would be not be wise, even though it is technically possible.

Documentation

Rocket has many aspects to it so for more information view the comprehensive online documentation.

Author

Created and maintained by Chris Humboldt Website: chrishumboldt.com Twitter: twitter.com/chrishumboldt GitHub github.com/chrishumboldt

Contributors

Simon Goellner Oleg Kalandarashvili digiltd

Copyright and License

Copyright 2017 Rocket Project

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.