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

fool-deploy

v0.1.0

Published

a fast deploy your web project in linux server

Downloads

17

Readme

fool-deploy

Test Publish

简体中文

You can use fool-deploy to quickly and easily deploy your blogs, demos, frontend pages, and more on the server.

demo

Deploy the application created by vite and create-react-app:

image image

Precondition

  1. a linux server.
  2. in your server install docker engine.(notes:Choose the type of installation for your server os type)
  3. Through git or XFTP or Linux rz command will your project source code pull or copied to the server
  4. Install node and npm on your server.

How use

  1. install deps
$ npm i fool-deploy

or

$ yarn add fool-deploy

or

$ pnpm i fool-deploy
  1. modify your package.json, add the following command:
"scripts": {
  "deploy":"fool"
}
  1. in your web project root dir run:
$ npm run deploy

or

$ yarn deploy

or

$ pnpm deploy

Configuration

if you want custom config, you need create .foolrc in project root dir.

{
  "cache": true,
  "port": 2333,
  "packageCommand": "npm",
  "buildCommand": "npm run build",
  "nodeVersion": "18.14-alpine",
  "nginxVersion": "1.22.1",
  "imageName": "fool-deploy:prod",
  "output": "dist"
}

cache

cache:Indicates whether to use caching; defaults to true。If you settrue,The .fool-cache directory will be generated at the root of the project after the first build.Each subsequent build will run the configuration file in .foolrc with the same .foolrc configuration. Using caching can shorten the time it takes to deploy your project later.

port

port:Indicates the port on which the project will run after deployment; defaults to 2333。If the port number is occupied, it will automatically +1 until an available port number is found.

packageCommand

packageCommand:Indicates the package manager used to install dependencies and build the project. By default, this will read the package manager you used to execute the deployment command. for example you running yarn deploy,the option is specified as yarn。The configurable options are npm | yarn | pnpm。This option is very important, Suppose the npm manager used by the project is packaged, but specified to run as yarn at deployment time. This could cause dependencies to fail to install or build during deployment.

buildCommand

buildCommand:Indicates the project build command,defaults to specified packageCommand field [packageCommand] build.

nodeVersion

nodeVersion:Indicates the version of the node environment required to install dependencies and packages for the deployed project.Default is 18.14-alpine。 When this version does not meet the project packaging needs, choose a runnable version. More version information can be found at dockerhub node.

nginxVersion

nginxVersion:Indicates the version of nginx environment to run for the deployed project.Default is 1.22.1。When this version does not meet the project packaging needs, choose a runnable version. More version information can be found at dockerhub nginx.

imageName

imageName:Indicates the name of the image that docker is building, and by default it reads the name field in package.json.the format is name:prod

output

output:Indicates the bundled output directory of the project, equivalent to the output directory specified by webpack. The default is dist。If the output directory in your project is build,You must specify it in .foolrc. Otherwise, it will cause an error that the resouce cannot be found.

License

MIT