Skip to content

Commit

Permalink
Yarn: vendorize it
Browse files Browse the repository at this point in the history
  • Loading branch information
ewlarson committed Sep 8, 2023
1 parent 267c141 commit 5da6453
Show file tree
Hide file tree
Showing 61,219 changed files with 7,959,468 additions and 3 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public/uploads/*
# Ignore storage
storage/*

vendor/*
node_modules/*

.DS_Store
Expand Down
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--modules-folder vendor/yarn
4 changes: 2 additions & 2 deletions config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
# Add Yarn node_modules folder to the asset load path.
Rails.application.config.assets.paths << Rails.root.join('node_modules')
# Rails.application.config.assets.paths << Rails.root.join('node_modules')

# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets
Expand All @@ -17,6 +17,6 @@
Rails.application.config.assets.precompile += %w( favicon.ico )

# GBL ADMIN
Rails.application.config.assets.paths << Rails.root.join('node_modules')
Rails.application.config.assets.paths << Rails.root.join('vendor/yarn')
Rails.application.config.assets.precompile += %w( geoblacklight_admin.js )
Rails.application.config.assets.precompile += %w[application.js]
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Bug report
about: Create a report to help us improve

---

<!--
Thanks for taking the time to open an issue!
Please provide a general summary of the issue in the title above .
-->

- [ ] I've looked at the [documentation](http://leafletjs.com/reference.html) to make sure the behavior is documented and expected
- [ ] I'm sure this is a Leaflet code issue, not an issue with my own code nor with the framework I'm using (Cordova, Ionic, Angular, React…)
- [ ] I've searched through the issues to make sure it's not yet reported

**Steps to reproduce**
Steps to reproduce the behavior:
- step 1
- step 2
- ...

**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->

**Current behavior**
<!-- A clear and concise description of what is actually happening. -->

**Environment**
- Leaflet version:
- Browser (with version):
- OS/Platform (with version):

**Additional context**
<!-- Add any other context about the problem here. -->

**Minimal example reproducing the issue**

Please create an example using https://leafletjs.com/edit.html or any other jsfiddle-like site.

- [ ] this example is as simple as possible
- [ ] this example does not rely on any third party code
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Support
about: I need support with Leaflet

---

--------------^ Click "Preview" tab for a nicer view!

We use GitHub as an issue tracker.
For usage and support questions, please check out resources below:

1. Read Leaflet documentation: https://leafletjs.com
2. For support questions like "How can I do X with Leaflet?" please search or ask questions on StackOverflow or StackExchange using Leaflet tag:
- https://stackoverflow.com/questions/tagged/leaflet
- https://gis.stackexchange.com/questions/tagged/leaflet

Thanks!
22 changes: 22 additions & 0 deletions vendor/assets/javascripts/Leaflet-1.4.0/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
node_modules
.DS_Store
tmp/**/*
.idea
.idea/**/*
*.iml
_site
*.sublime-*
_site
dist/*.js
dist/*.map
dist/reference.html
coverage/
*.js.html
.mailmap
bower.json
component.json
debug/local/
Gemfile.lock
package-lock.json
yarn.lock
*.log
32 changes: 32 additions & 0 deletions vendor/assets/javascripts/Leaflet-1.4.0/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
sudo: false
language: node_js
node_js:
- node
addons:
artifacts:
paths:
- dist
target_paths:
- content/leaflet/${NAME}
firefox: latest
env:
global:
- ARTIFACTS_BUCKET=leafletjs-cdn
- ARTIFACTS_PERMISSIONS=public-read
- secure: |-
JlC1rD7WryxlUbWmD3NWVX9E60XB/+ss7+j0OaY3WqWziGUWDCuoVkOMGXnp
Ev27O8qhlmRkeyiimUN64UzK0yeZ139DcZMY6r4A5E2kwHYRAO/H/zl5RAGo
Yd9GUPwZfr3xV8WhH2GFy/L/mRjkGwue2o6ZxdsqBOKfYaF9Ryg=
- secure: |-
XW1hzORAtSpTgTKkQwel5gRMDy6SotzeSRsVV2jQCn46VIMx8G/J5nOI+ImL
yeoH12PhCR0h39dM7mq8TYJo5DHwvbotI5nQhpMruSt8eMFbym8nGiqQh806
fSJXkxmQ4MAjUdNFDIirBHhdZme8q3PueFzJ+5odFMvPGn/aITQ=
script:
- npm test
- xvfb-run --server-args="-screen 0 1280x1024x16" npm run test-nolint -- --browsers Firefox
after_success:
- npm run build
- cd dist && zip -x .DS_Store -r leaflet.zip . && cd ..
- NAME=$TRAVIS_BRANCH
- '[[ $TRAVIS_PULL_REQUEST != ''false'' ]] && NAME=$TRAVIS_PULL_REQUEST'
- '[[ -n $TRAVIS_TAG ]] && NAME=$TRAVIS_TAG'
Loading

0 comments on commit 5da6453

Please sign in to comment.