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

crediful-bower

v0.0.5

Published

Grunt plugin which helps migrating from Bower to npm.

Downloads

16

Readme

Crediful

This repository is part of the source code of Crediful. You can find more information at [crediful.io](https://crediful.io or by contacting [email protected].

You can find the published source code at github.com/crediful.

For licensing information, see the attached LICENSE file and the list of third-party licenses at crediful.io/legal/licenses/.

Description

Grunt plugin which helps migrating from Bower to npm.

Installation

npm install --save-dev crediful-bower
grunt.loadNpmTasks('crediful-bower');

Workflow

Using crediful-bower is as simple as this:

  1. Run bower-away command in the project you want to migrate (but don't delete your bower.json yet!).
  2. Run crediful-bower task (from your Gruntfile.js)
  3. Finally, delete your bower.json (☠)

An exemplary task configuration:

Gruntfile.js

module.exports = grunt => {
  grunt.initConfig({
    npmBower: {
      options: {
        cleanTargetDir: true,
        targetDir: './lib',
        verbose: true,
      }
  });

  grunt.loadNpmTasks('crediful-bower');
  grunt.registerTask('default', ['npmBower']);
};

Options

bowerConfig

  • Type: String
  • Default: bower.json

Location of your Bower configuration (relative to your project's root directory).

componentDir

  • Type: String
  • Default: node_modules

Location where your Bower components are installed. When using bower install this will be bower_components. If you are using npm install (or yarn), it's node_modules. If you are using a .bowerrc file, it might be something else.

npmConfig

  • Type: String
  • Default: package.json

Location of your npm configuration (relative to your project's root directory).

cleanTargetDir

  • Type: Boolean
  • Default: false

If setted to true, the specified targetDir will be removed before copying Bower components there.

overrideProp

  • Type: String
  • Default: exportsOverride

Key name that is being used for export overrides (if defined). Read more about exportsOverride in "Advanced usage".

resolveName

  • Type: Boolean
  • Default: true

If setted to true, the plugin tries to resolve the names of your dependencies from a bower.json, .bower.json or package.json file (in this order). If setted to false, it resolves the names from your package.json (Example: @bower_components/dexie).