-
-
Notifications
You must be signed in to change notification settings - Fork 322
Create and Install Test Packages
If you would like to test a pre-production build of Skeleton, please follow the instructions below. This will create a tarball '.tgz' file (a bundled file, like a .zip), which can then be installed locally within a test project. This allows you to bypass installing the Skeleton package from the remote NPM repository.
IMPORTANT: THIS SHOULD NOT BE USE IN A PRODUCTION ENVIRONMENT.
This will create a .tgz
file.
- First, ensure you've pulled down all changes and are running the
dev
branch. Do not skip this step. - Run
npm run package
to create a local/dist
directory - Run
npm pack
to generate the.tgz
file - The
.tgz
file can be found via your file browser in the root directory
NOTE: make sure your
.tgz
file is ready, per above, and follow the standard install instructions found on thedev
branch of the documentation site. This ensures everything is update and in-sync with the new package you're about to install.
When you're prompted to install the Skeleton Package (via NPM install), instead do the following:
- Drop the
.tgz
file in the root of your project. - Uninstall the public Skeleton package,
npm remove @skeletonlabs/skeleton
- In your terminal, run
npm install ./{nameOfTarballPackage}.tgz --save-dev
(TIP: use TAB key to autocomplete this name) - You'll note your
package.json
will list this version of the package installed as a dependency
If you're done testing and want to switch back to the production version of the package, do the following:
- Run
npm uninstall {tarballPackage}
(TIP: use TAB key to autocomplete this name) - Install the production package using
npm install @skeletonlabs/skeleton