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

@fluidframework/webpack-fluid-loader

v0.44.1

Published

Fluid object loader for webpack-dev-server

Downloads

364

Readme

@fluidframework/webpack-fluid-loader

This folder contains the webpack-fluid-loader. This package is meant to be used with the webpack-dev-server and is used by yo Fluid as the default start option.

This loader is intended for development purposes only and should not be used in production.

The following environment variables can be defined when running webpack-dev-server to change the behavior of webpack-fluid-loader:

| variable | description | | ---------| ----------- | | mode | Specify the mode to run in. See modes below. | | single | Load Fluid object normally when using local mode for ordering, etc. | | fluidHost | Host url to target while testing. If you supply this, you must supply a tenant ID and secret | | tenantId | Tenant ID for your host. If you supply this you must supply a tenant secret | | tenantSecret | Secret for your tenant | | bearerSecret | Secret for your bearer |

| modes | description | | ---------| ----------- | | docker | Use docker running routerlicious server for ordering, etc. You'll need to start this service locally | | r11s | Use remote routerlicious server for ordering, etc. | | local | Load Fluid object in two side-by-side divs using test-driver (default option) | | tinylicious | Run against a local instance of tinylicious. You'll need to start this service locally | | spo-df | Use SharePoint DogFood server with your personal OneDrive for storage | | spo | Use SharePoint server with your personal OneDrive for storage |

Manually attach the container

In all modes you can start a detached container that you can later attach by appending /manualAttach to the url. For example - http://localhost:8080/manualAttach.

You can interact with the Fluid object and do any number of operations before clicking the Attach Container button to attach the container.

If in side by side mode, only one side will be visible until attached.

Connecting to a remote server

To connect to a remote server, a host, tenant ID, tenant secret, and npm registry must be provided. These can be provided in the following ways (looked for in the following order):

command line:

npm run start -- --env.fluidHost https://fluidhost.com --env.tenantId my_tenant --env.tenantSecret my_secret --env.bearerSecret bear_secret --env.npm npm.com

environment variables:

  • fluid__webpack__fluidHost
  • fluid__webpack__tenantId
  • fluid__webpack__tenantSecret
  • fluid__webpack__bearerSecret
  • fluid__webpack__npm

config file:

or in an optional config.json file in the baseDir passed into webpack-fluid-loader.after() that looks like this:

{
    "fluid": {
        "webpack": {
            "fluidHost": "https://fluidhost.com",
            "tenantId": "my_tenant",
            "tenantSecret": "my_secret",
            "bearerSecret": "bear_secret",
            "npm": "npm.com"
        }
    }
}

SharePoint

To use a SharePoint server, the Microsoft login clientId and secret environment variables must be set. This can be done by running the getkeys tool.

Sometimes the cached tokens are out of date or incorrect, and it will not automatically refresh them. They can be manually refreshed by going navigating to http://localhost:8080/odspLogin (port may vary). To force reauth on start, the env variable odspForceReauth can be set. This can also be done by adding --env.mode forceReauth true to the end of the command. For example: npm run start:spo-df -- --env.mode forceReauth true.

Use spo-df if your OneDrive is on the DogFood server, and spo if it is not.