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

shiwa-lp-zip-creator

v1.1.1

Published

To use it add the following to your package.json file: ```json { "scripts": { "create-lp-zip": "shiwa-lp-zip-creator <path to source directory> <path to output directory>.zip" } } ``` and then run: ```bash npm run create-lp-zip ```

Downloads

7

Readme

Shiwa LP Zip Creator NPM Package

Overview

The Shiwa LP Zip Creator is an npm package that enables the conversion of static single-page applications (SPA) into LP zip format files. These files can be directly used in CMS systems as landing pages.

Prerequisites

Installation of Node.js in the development environment. An existing SPA project that you wish to convert into LP zip format.

Installation

Install the shiwa-lp-zip-creator package in your project using the following command:

npm install shiwa-lp-zip-creator --save-dev

This command adds the package to your project's devDependencies.

Configuration

To use the package, add the following script to your package.json file:

{
    "scripts": {
        "create-lp-zip": "shiwa-lp-zip-creator <source directory path> <output file path>.zip"
    }
}

Replace <source directory path> and <output file path> with the appropriate paths.

Creating an LP Zip File

To create an LP zip file, run the following command:

npm run create-lp-zip

This command starts the conversion process, which creates an LP zip file from the specified source directory and saves it at the specified output location.

Error Handling

The package includes error handling features that notify the user if any errors occur during the conversion process. Such errors can include:

  • Incorrect source directory or output file path.
  • Technical issues in the conversion process.

Additional Information

You can find this detailed documentation and possible settings of the shiwa-lp-zip-creator package on its npm page.

Integration

React Application Integration

Updating the Build Script

In the package.json file of your React project, update the build script to automatically run the shiwa-lp-zip-creator script after the build process. For example:

    ...
    "scripts": {
        "build": "react-scripts build && shiwa-lp-zip-creator build <output file path>.zip",
        "create-lp-zip": "shiwa-lp-zip-creator build <output file path>.zip"
    }
    ...

In this example, replace <output file path> with the desired output file path.

Running the Build Command

When you run the npm run build command, the React application's build is created first, and then the shiwa-lp-zip-creator creates an LP zip file at the specified location.

Vue.js Application Integration

Updating the Build Script

Similarly, in a Vue.js project, modify the build script in the package.json file:

    ....
    "scripts": {
        "build": "vue-cli-service build && shiwa-lp-zip-creator dist <output file path>.zip",
        "create-lp-zip": "shiwa-lp-zip-creator dist <output file path>.zip"
    }
    ...

Here again, replace <output file path> with your own path.

Running the Build Command

When you run the npm run build command, after the Vue.js application is built, the shiwa-lp-zip-creator automatically creates an LP zip file at the specified output location.

With these steps, the shiwa-lp-zip-creator can be easily integrated into existing React and Vue.js application build processes, automating the creation of LP zip files. This integration not only saves time but also ensures that the latest versions are uploaded to the CMS system.