Skip to content

Commit

Permalink
build: Commit the subset of production dependencies
Browse files Browse the repository at this point in the history
* Remove polyfills of php extensions we assume are installed
  (and indeed are installed in production).
* Regenerate lock file and audit dependency changes.
* Commit dependencies for ease of deployment and review.

Ref jquery#319.
  • Loading branch information
Krinkle committed Dec 18, 2019
1 parent c3019ec commit 8bf67d5
Show file tree
Hide file tree
Showing 235 changed files with 39,192 additions and 132 deletions.
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,19 @@ config/localSettings.json
config/localSettings.php
favicon.ico
robots.txt
vendor
node_modules
package-lock.json

# Prod dependencies
/vendor/**/.git
/vendor/**/.gitignore
/vendor/**/.travis.yml
/vendor/**/phpunit.xml.dist
/vendor/psr/log/Psr/Log/Test
/vendor/symfony/*/Tests
# https://github.com/ua-parser/uap-php/pull/57
/vendor/ua-parser/uap-php/tests

# Files generated by editors
.project

Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: php
# In order to use PHP 5.4/5.5, use Ubuntu 14 (Trusty) instead of the newer Ubuntu 16 (Xenial)
# In order to use PHP 5.4/5.5, use Ubuntu 14 (Trusty) instead of the newer Ubuntu 16 (Xenial)
# https://docs.travis-ci.com/user/languages/php/#php-54x---55x-support-is-available-on-precise-and-trusty-only
dist: trusty
php:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ may work as well.
`chmod 777 cache`.

1. Install dependencies
`composer install`
`composer install --no-dev`

1. Install the TestSwarm database by running:
`php scripts/install.php`
Expand Down
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"npm install && npm test"
]
},
"replace": {
"symfony/polyfill-ctype": "1.99",
"symfony/polyfill-mbstring": "1.99"
},
"config": {
"platform": {
"php": "5.4"
Expand Down
141 changes: 12 additions & 129 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions vendor/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit9641d408040a3d9212184826213da7cf::getLoader();
1 change: 1 addition & 0 deletions vendor/bin/uaparser
Loading

0 comments on commit 8bf67d5

Please sign in to comment.