Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
chore(development): move to PHP servers for trad+s3 manual testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rnicholus committed Oct 25, 2016
1 parent 7b70408 commit 97e1e69
Show file tree
Hide file tree
Showing 6 changed files with 299 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ dist
lib
node_modules
src/test/manual/bundle
uploads/
vendor/
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"eslint": "latest",
"eslint-plugin-react": "latest",
"extract-text-webpack-plugin": "latest",
"fine-uploader-traditional-server": "latest",
"jasmine": "latest",
"jasmine-core": "latest",
"karma": "latest",
Expand All @@ -71,7 +70,7 @@
"manual-test": "webpack --config config/webpack.manual-test.config.js --watch --display-error-details",
"push-to-npm": "cp package.json README.md LICENSE lib && (cd lib ; npm publish)",
"release": "npm run test && npm run build && npm run push-to-npm",
"start": "PUBLIC_DIR=$(pwd)/src/test/manual/ NODE_MODULES_DIR=$(pwd)/node_modules/ UPLOADED_FILES_DIR=$(pwd)/uploads/ node node_modules/fine-uploader-traditional-server/nodejs",
"start": "php -S 0.0.0.0:9090 -t src/test/manual -c src/test/manual/php.ini",
"test": "npm run lint && if [ $CI ]; then karma start config/karma.conf; else karma start config/karma.dev.conf; fi"
}
}
6 changes: 6 additions & 0 deletions src/test/manual/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"require": {
"fineuploader/php-traditional-server": "1.2.0",
"fineuploader/php-s3-server": "1.1.0"
}
}
287 changes: 287 additions & 0 deletions src/test/manual/composer.lock

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

2 changes: 2 additions & 0 deletions src/test/manual/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
upload_max_filesize = 10M
post_max_size = 10M
4 changes: 2 additions & 2 deletions src/test/manual/tester.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const uploader = new FineUploader({
debug: true,
deleteFile: {
enabled: true,
endpoint: '/uploads'
endpoint: '/vendor/fineuploader/php-traditional-server/endpoint.php'
},
request: {
endpoint: '/uploads'
endpoint: '/vendor/fineuploader/php-traditional-server/endpoint.php'
},
retry: {
enableAuto: true
Expand Down

0 comments on commit 97e1e69

Please sign in to comment.