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.
- checksums.yaml +4 -4
- data/.gitattributes +0 -0
- data/.github/FUNDING.yml +3 -0
- data/.github/workflows/ci.yaml +51 -0
- data/.gitignore +3 -5
- data/.rubocop.yml +23 -5
- data/CHANGELOG.md +76 -63
- data/Gemfile +8 -8
- data/LICENSE +29 -0
- data/README.md +44 -37
- data/bin/console +15 -15
- data/bin/setup +8 -8
- data/gemfiles/Gemfile-rails.5.2.x +0 -0
- data/gemfiles/Gemfile-rails.6.0.x +0 -0
- data/lib/webpacker/pnpm/patches.rb +83 -53
- data/lib/webpacker/pnpm/railtie.rb +34 -33
- data/lib/webpacker/pnpm/version.rb +9 -9
- data/lib/webpacker/pnpm.rb +5 -5
- data/lib/webpacker/tasks/check_pnpm.rake +42 -42
- data/lib/webpacker/tasks/env.rake +22 -22
- data/lib/webpacker/tasks/pnpm_install.rake +14 -14
- data/test_app/.gitignore +6 -0
- data/test_app/Gemfile +5 -0
- data/test_app/Gemfile.lock +175 -0
- data/{Rakefile → test_app/Rakefile} +12 -11
- data/test_app/app/javascript/packs/application.js +10 -0
- data/{test/test_app → test_app}/app/javascript/packs/multi_entry.css +3 -3
- data/{test/test_app → test_app}/app/javascript/packs/multi_entry.js +4 -4
- data/{test/test_app → test_app}/bin/rails +0 -0
- data/{test/test_app → test_app}/bin/rake +0 -0
- data/{test/test_app → test_app}/bin/setup +0 -0
- data/{test/test_app → test_app}/bin/webpack +15 -15
- data/{test/test_app → test_app}/bin/webpack-dev-server +15 -15
- data/{test/test_app → test_app}/config/application.rb +13 -13
- data/{test/test_app → test_app}/config/boot.rb +5 -5
- data/{test/test_app → test_app}/config/environment.rb +6 -6
- data/{test/test_app → test_app}/config/webpack/development.js +0 -0
- data/{test/test_app → test_app}/config/webpack/environment.js +0 -0
- data/test_app/config/webpack/production.js +0 -0
- data/{test/test_app → test_app}/config/webpacker.yml +0 -0
- data/{test/test_app → test_app}/config/webpacker_public_root.yml +19 -19
- data/{test/test_app → test_app}/config.ru +7 -7
- data/{test/test_app → test_app}/package.json +3 -1
- data/test_app/pnpm-lock.yaml +6756 -0
- data/{test/test_app → test_app}/public/packs/manifest.json +31 -31
- data/test_app/src/index.js +0 -0
- data/{test → test_app/test}/rake_tasks_test.rb +108 -97
- data/{test → test_app/test}/test_helper.rb +61 -61
- data/webpacker-pnpm.gemspec +44 -44
- metadata +41 -59
- data/.travis.yml +0 -42
- data/test/test_app/.gitignore +0 -7
- data/test/test_app/Rakefile +0 -5
- data/test/test_app/app/javascript/packs/application.js +0 -10
- 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
|
data/test/test_app/.gitignore
DELETED
data/test/test_app/Rakefile
DELETED
@@ -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
|