Skip to content

Commit fcd1a55

Browse files
authored
Merge pull request #220 from ComputerScienceHouse/develop
3.1.3 Production Merge
2 parents 8561748 + 16322e7 commit fcd1a55

File tree

73 files changed

+4565
-4087
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+4565
-4087
lines changed

.eslintrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true
6+
},
7+
"extends": [
8+
"standard"
9+
],
10+
"globals": {
11+
"Atomics": "readonly",
12+
"SharedArrayBuffer": "readonly"
13+
},
14+
"parserOptions": {
15+
"ecmaVersion": 2018
16+
},
17+
"rules": {
18+
"no-undef": "off",
19+
"no-unused-vars": "warn",
20+
"no-prototype-builtins": "warn",
21+
"no-redeclare": "warn",
22+
"no-inner-declarations": "warn",
23+
"no-throw-literal": "warn"
24+
}
25+
}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ img/schedules/*.png
88

99
# Ignore node_modules dependencies
1010
node_modules/*
11+
package-lock.json
1112

1213
# Ignore built files
1314
assets/prod/*
@@ -33,4 +34,6 @@ _Local Working Files/*
3334
*.suo
3435
web.config
3536
vwd.webinfo
36-
WebEssentials-Settings.json
37+
WebEssentials-Settings.json
38+
vendor
39+
composer.lock

.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ RewriteCond %{HTTP:Accept} application/json [NC]
2020
RewriteRule ^(schedule|generate|entity|search|status|rmp)(?:/([^/]*))*$ api/$1.php [L]
2121
RewriteRule ^schedule/[^/]*/ical$ api/schedule.php [L]
2222

23+
# Redirect all images to assets
24+
# TODO Get it to redirect properly
25+
# RewriteRule /([^.]+\.png)$ https://assets.csh.rit.edu/schedulemaker/$1 [R=301,L,NC]
26+
2327
# Don't rewrite files or directories
2428
RewriteCond %{REQUEST_FILENAME} -f [OR]
2529
RewriteCond %{REQUEST_FILENAME} -d

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

.travis.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,22 @@ php:
33
- 7.0
44
- 7.1
55
- 7.2
6-
- hhvm
6+
- 7.3
77
- nightly
8+
node_js:
9+
- 10
810

911
matrix:
1012
allow_failures:
1113
- php: 7.0
12-
- php: hhvm
14+
- php: 7.2
15+
- php: 7.3
1316
- php: nightly
1417

18+
install:
19+
- npm install
20+
1521
script:
1622
- if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi
23+
- npm run lint
24+
- npm run build

Dockerfile

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
11
FROM php:7.1-apache
2-
MAINTAINER Devin Matte <[email protected]>
2+
LABEL author="Devin Matte <[email protected]>"
33

4-
ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf
4+
RUN apt-get -yq update && \
5+
apt-get -yq install gnupg libmagickwand-dev git gcc make autoconf libc-dev pkg-config --no-install-recommends
6+
7+
RUN docker-php-ext-install mysqli && \
8+
yes '' | pecl install imagick && docker-php-ext-enable imagick
9+
10+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
11+
12+
COPY apache-config.conf /etc/apache2/sites-enabled/000-default.conf
513

614
RUN a2enmod rewrite && a2enmod headers && a2enmod expires && \
715
sed -i '/Listen/{s/\([0-9]\+\)/8080/; :a;n; ba}' /etc/apache2/ports.conf && \
816
chmod og+rwx /var/lock/apache2 && chmod -R og+rwx /var/run/apache2
917

10-
RUN apt-get -yq update && \
11-
apt-get -yq install gnupg libmagickwand-dev --no-install-recommends && \
12-
apt-get -yq clean all
13-
14-
RUN docker-php-ext-install mysqli && \
15-
pecl install imagick && docker-php-ext-enable imagick
16-
1718
COPY . /var/www/html
1819

19-
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
20-
apt-get -yq update && \
21-
apt-get -yq install nodejs && \
22-
npm install && \
23-
npm run-script build && \
24-
rm -rf node_modules && \
25-
apt-get -yq remove nodejs && \
26-
apt-get -yq clean all
20+
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
21+
&& apt-get -yq update \
22+
&& apt-get -yq install nodejs --no-install-recommends \
23+
&& npm install \
24+
&& npm run-script build \
25+
&& apt-get -yq remove nodejs \
26+
&& apt-get -yq clean all \
27+
&& rm -rf node_modules
28+
29+
RUN composer install
2730

2831
EXPOSE 8080
2932
EXPOSE 8443

0 commit comments

Comments
 (0)