Skip to content

yfxie/pnpm-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PNPM Rails

For Rails app using pnpm as package manager. Hook pnpm install and pnpm run build into rails assets:precompile. This gem is like jsbundling-rails but for pnpm. And no installer like webpack, rollup, etc.

Installation

gem "pnpm-rails"

Usage

When the deploy process assets:precompile gets called, pnpm install and pnpm run build will be called automatically. It assumed you have build script for building assets in package.json.

{
  "scripts": {
    "build": "webpack ..."
  }
}

Environment variables

  • SKIP_PNPM_INSTALL - skip pnpm install when assets:precompile gets called.
  • SKIP_JS_BUILD - disable hooking pnpm install and pnpm run build into assets:precompile.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yfxie/pnpm-rails.

License

The gem is available as open source under the terms of the MIT License.

About

For Rails app using pnpm as package manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages