webpacker-pnpm 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.gitattributes +0 -0
  3. data/.github/FUNDING.yml +3 -0
  4. data/.github/workflows/ci.yaml +51 -0
  5. data/.gitignore +3 -5
  6. data/.rubocop.yml +23 -5
  7. data/CHANGELOG.md +76 -63
  8. data/Gemfile +8 -8
  9. data/LICENSE +29 -0
  10. data/README.md +44 -37
  11. data/bin/console +15 -15
  12. data/bin/setup +8 -8
  13. data/gemfiles/Gemfile-rails.5.2.x +0 -0
  14. data/gemfiles/Gemfile-rails.6.0.x +0 -0
  15. data/lib/webpacker/pnpm/patches.rb +83 -53
  16. data/lib/webpacker/pnpm/railtie.rb +34 -33
  17. data/lib/webpacker/pnpm/version.rb +9 -9
  18. data/lib/webpacker/pnpm.rb +5 -5
  19. data/lib/webpacker/tasks/check_pnpm.rake +42 -42
  20. data/lib/webpacker/tasks/env.rake +22 -22
  21. data/lib/webpacker/tasks/pnpm_install.rake +14 -14
  22. data/test_app/.gitignore +6 -0
  23. data/test_app/Gemfile +5 -0
  24. data/test_app/Gemfile.lock +175 -0
  25. data/{Rakefile → test_app/Rakefile} +12 -11
  26. data/test_app/app/javascript/packs/application.js +10 -0
  27. data/{test/test_app → test_app}/app/javascript/packs/multi_entry.css +3 -3
  28. data/{test/test_app → test_app}/app/javascript/packs/multi_entry.js +4 -4
  29. data/{test/test_app → test_app}/bin/rails +0 -0
  30. data/{test/test_app → test_app}/bin/rake +0 -0
  31. data/{test/test_app → test_app}/bin/setup +0 -0
  32. data/{test/test_app → test_app}/bin/webpack +15 -15
  33. data/{test/test_app → test_app}/bin/webpack-dev-server +15 -15
  34. data/{test/test_app → test_app}/config/application.rb +13 -13
  35. data/{test/test_app → test_app}/config/boot.rb +5 -5
  36. data/{test/test_app → test_app}/config/environment.rb +6 -6
  37. data/{test/test_app → test_app}/config/webpack/development.js +0 -0
  38. data/{test/test_app → test_app}/config/webpack/environment.js +0 -0
  39. data/test_app/config/webpack/production.js +0 -0
  40. data/{test/test_app → test_app}/config/webpacker.yml +0 -0
  41. data/{test/test_app → test_app}/config/webpacker_public_root.yml +19 -19
  42. data/{test/test_app → test_app}/config.ru +7 -7
  43. data/{test/test_app → test_app}/package.json +3 -1
  44. data/test_app/pnpm-lock.yaml +6756 -0
  45. data/{test/test_app → test_app}/public/packs/manifest.json +31 -31
  46. data/test_app/src/index.js +0 -0
  47. data/{test → test_app/test}/rake_tasks_test.rb +108 -97
  48. data/{test → test_app/test}/test_helper.rb +61 -61
  49. data/webpacker-pnpm.gemspec +44 -44
  50. metadata +41 -59
  51. data/.travis.yml +0 -42
  52. data/test/test_app/.gitignore +0 -7
  53. data/test/test_app/Rakefile +0 -5
  54. data/test/test_app/app/javascript/packs/application.js +0 -10
  55. data/test/test_app/pnpm-lock.yaml +0 -20
data/.travis.yml DELETED
@@ -1,42 +0,0 @@
1
- language: ruby
2
- dist: bionic
3
- os:
4
- - linux
5
- - osx
6
-
7
- cache:
8
- bundler: true
9
- npm: true
10
- directories:
11
- - "~/.pnpm-store"
12
- rvm:
13
- - 2.4.10
14
- - 2.5.5
15
- - 2.6.5
16
- - 2.7.0
17
- - ruby-head
18
- gemfile:
19
- - gemfiles/Gemfile-rails.5.2.x
20
- - gemfiles/Gemfile-rails.6.0.x
21
-
22
- before_install:
23
- - gem install rubygems-update && update_rubygems
24
- - yes | rvm @global do gem install bundler -v 2.1.4 || true
25
- - nvm install --lts
26
- - curl -L https://raw.githubusercontent.com/pnpm/self-installer/master/install.js | node
27
- - pnpm config set store-dir ~/.pnpm-store
28
- - bundle config set path 'vendor/bundle'
29
- install:
30
- - bundle install --jobs 3 --retry 3
31
- - pnpm install --frozen-lockfile
32
- script:
33
- - bundle exec rubocop
34
- - bundle exec rake test
35
-
36
- jobs:
37
- fast_finish: true
38
- allow_failures:
39
- - rvm: ruby-head
40
- exclude:
41
- - rvm: 2.4.10
42
- gemfile: gemfiles/Gemfile-rails.6.0.x
@@ -1,7 +0,0 @@
1
- /.bundle/
2
- /coverage/
3
- /doc/
4
- /pkg/
5
- /spec/reports/
6
- /tmp/
7
- /node_modules
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "config/application"
4
-
5
- Rails.application.load_tasks
@@ -1,10 +0,0 @@
1
- /* eslint no-console:0 */
2
- // This file is automatically compiled by Webpack, along with any other files
3
- // present in this directory. You're encouraged to place your actual application logic in
4
- // a relevant structure within app/javascript and only use these pack files to reference
5
- // that code so it'll be compiled.
6
- //
7
- // To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate
8
- // layout file, like app/views/layouts/application.html.erb
9
-
10
- console.log('"Hello Sanity" from webpacker-pnpm!')
@@ -1,20 +0,0 @@
1
- dependencies:
2
- left-pad: 1.3.0
3
- devDependencies:
4
- right-pad: 1.0.1
5
- lockfileVersion: 5.1
6
- packages:
7
- /left-pad/1.3.0:
8
- deprecated: use String.prototype.padStart()
9
- dev: false
10
- resolution:
11
- integrity: sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==
12
- /right-pad/1.0.1:
13
- dev: true
14
- engines:
15
- node: '>= 0.10'
16
- resolution:
17
- integrity: sha1-jKCMLLtbVedNr6lr9/0aJ9VoyNA=
18
- specifiers:
19
- left-pad: ^1.2.0
20
- right-pad: ^1.0.1