New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

icestark

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icestark

Icestark is a JavaScript library for multiple react projects, Ice workbench solution.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

icestark

Icestark is a JavaScript library for multiple react projects, Ice workbench solution.

NPM version Package Quality build status Test coverage NPM downloads David deps

Installation

npm install icestark --save

Run Demo

Run child:

cd demo/child
npm install
npm start

Run child2

cd demo/child2
npm install
npm start

Run layout:

cd demo/layout
npm install
npm start

Open up http://localhost:3333 in a web browser

Example

class Layout extends React.Component {
  render() {
    return (
      <div>
        <Header />
        <AppLoader
          env="local"
          apps={apps}
          getBundleUrl={({ repo, version, localPort, localIp, env, type }) => {
            if (env === 'local') {
              return `//${localIp}:${localPort}/${type}/index.${type}`;
            }
            const cdnHost = env === 'production' ? 'production.com' : 'daily.com';
            return `//${cdnHost}/${repo}/${version}/${type}/index.${type}`;
          }}
          NotFoundComponent={NotFound}
          onRouteChange={this.onRouteChange}
        />
        <Footer />
      </div>
    );
  }
}

Configuration

PropertyDescriptionTypeDefault
envbundle environment, can be set to local daily prepub productionstringproduction
appsapp configuration includes localPort, basePath, title and so onarray[]
getBundleUrltransform current app configuration to bundleUrlfunctionnoop
onRouteChangecallback executed when route changedfunctionnoop
NotFoundComponentrender when the route changed errorfunction/ReactNode
BundleErrorComponentrender when the bundle pulls an errorfunction/ReactNode
BundleLoadingComponentrender when Bundle is Loadingfunction/ReactNode
shadowRootwhether to use shadowRootbooltrue

Keywords

FAQs

Package last updated on 29 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc