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

@shopgate/sdk-devserver

v1.9.3

Published

The development server for a Shopgate Cloud PWA project.

Downloads

26

Readme

Shopgate Cloud SDK Development Server

Travis CI Build GitHub release Coverage Status License

The development server for your Shopgate Cloud App themes. It uses webpack to compile your resources.

Installation

To run the development server on all your Shopgate Cloud themes, you need to install this package globally:

npm install -g @shopgate/sdk-devserver

Setup

In your console navigate to your project folder:

cd /path/to/my/project/

Then you have to run npm i first to install all your dependencies:

~/ npm i

Afterwards you have to run the development server's setup script:

~/ sgcloud --setup

Then you can start the development server by simply running:

~/ sgcloud

This will start the Shopgate Cloud development server with a Webpack instance.

Options (CLI arguments)

There are a few options available that change the server's behaviour:

--setup

This will setup you project configuration and save it into the configuration file local.json in your project's ./config directory. The directory will be created if it does not exist.

Usage:

~/ sgcloud --setup

--link

This will link the installed @shopgate dependencies with your local copy. NOTE: This will only apply in development mode and only links the @shopgate modules that you have checked out from GitHub.

Usage:

~/ sgcloud --link

--reset

This will reset your theme project by re-installing and re-locking all node modules.

Usage:

~/ sgcloud --reset

--remote

This starts the development server together with the Redux Remote DevTools. With that you can debug the redux state and actions from your mobile device on your desktop browser.

Usage:

~/ sgcloud --remote

--analyze

This uses the Webpack Bundle Analyzer that will help you to realize what's really inside your bundles, find out which modules take up most of it's size and helps you recognize modules that shouldn't be there.

Usage:

~/ sgcloud --analyze

--production

This will build your project for production. It will output all of the resources for your Shopgate App into the ./public folder in your project's root directory. Note: This will most likely be used in the Shopgate Cloud deployment processes. Without the corresponding server-side backend, this will NOT be useful.

Usage:

~/ sgcloud --production

--sourcemap

Additional argument to make the webpack use the style of source mapping of your choice. For more information check the webpack documentation.

Usage:

~/ sgcloud --sourcemap=cheap-eval-source-map

--silent

This argument would suppress most logs outputted to the console.

Usage:

~/ sgcloud --silent

Customization

In order to use your own webpack configuration you can simply provide your own webpack.config.js inside your project's root directory. The development server will automatically recognize and use it.

ATTENTION: You will also need to provide your own babel configuration inside a .babelrc file in your project's root directory!

About Shopgate

Shopgate is the leading mobile commerce platform.

Shopgate offers everything online retailers need to be successful in mobile. Our leading software-as-a-service (SaaS) enables online stores to easily create, maintain and optimize native apps and mobile websites for the iPhone, iPad, Android smartphones and tablets.

License

Shopgate's SDK Development Server is available under the Apache License, Version 2.0.

See the LICENSE.md file for more information.