Open rob-lindman opened 5 years ago
I believe I am within inches of being able to run depthy (which is a cool tool!).
I am experiencing some issues when running grunt build, and I am not sure how to run it.
note two issues in the codepile... a typerror, and a fatal error related to gifsicle.
After I can fix it, then i need to know if I can run it with PM2 or?
The instructions aren't exactly precise and this error is not mentioned afaic.
root@zzzz:/var/www/html/apps/depthy/depthy# grunt build Loading "grunt-karma.js" tasks...ERROR >> TypeError: Cannot read property 'prototype' of undefined (node:22328) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. Running "clean:dist" (clean) task Running "useminPrepare:html" (useminPrepare) task Going through app/index.html to update the config Looking for build script HTML comment blocks Configuration is now: concat: { generated: { files: [ { dest: '.tmp/concat/scripts/vendor.js', src: [ 'app/scripts/modernizr.js', 'app/scripts/modernizr-platform.js', 'app/bower_components/jquery/dist/jquery.min.js', 'app/bower_components/angular/angular.js', 'app/bower_components/angular-animate/angular-animate.min.js', 'app/bower_components/angular-ui-router/release/angular-ui-router.min.js', 'app/bower_components/lodash/dist/lodash.compat.js', 'app/bower_components/pixi.js/bin/pixi.dev.js', 'app/bower_components/angular-ga/ga.js', 'app/bower_components/angular-ui-bootstrap/src/buttons/buttons.js', 'app/bower_components/angular-ui-bootstrap/src/modal/modal.js', 'app/bower_components/angular-ui-bootstrap/src/transition/transition.js', 'app/bower_components/angular-ui-bootstrap/src/dropdown/dropdown.js', 'app/bower_components/angular-touch/angular-touch.min.js', 'app/bower_components/is-jpg/browser.js', 'app/bower_components/is-png/browser.js', 'app/scripts/vendor/LensBlurDepthExtractor.js', 'app/scripts/vendor/md5.js', 'app/scripts/classes/GDepthEncoder.js', 'app/scripts/classes/dataURITools.js', 'app/bower_components/promise/index.js', 'app/bower_components/screenfull/dist/screenfull.js', 'app/bower_components/iscroll/build/iscroll.js' ] }, { dest: '.tmp/concat/scripts/scripts.js', src: [ '{.tmp,app}/scripts/app.js', '{.tmp,app}/scripts/services/depthy.js', '{.tmp,app}/scripts/controllers/main.js', '{.tmp,app}/scripts/controllers/draw.js', '{.tmp,app}/scripts/directives/fileselect.js', '{.tmp,app}/scripts/directives/pixi.js', '{.tmp,app}/scripts/directives/depthyViewer.js', '{.tmp,app}/scripts/directives/shareurls.js', '{.tmp,app}/scripts/directives/rangeStepper.js', '{.tmp,app}/scripts/pixi/ColorMatrixFilter2.js', '{.tmp,app}/scripts/pixi/DepthDisplacementFilter.js', '{.tmp,app}/scripts/pixi/DepthPerspectiveFilter.js', '{.tmp,app}/scripts/pixi/utils.js', '{.tmp,app}/scripts/templates.js', '{.tmp,app}/scripts/bs-templates.js', '{.tmp,app}/scripts/svg-templates.js', '{.tmp,app}/scripts/controllers/exportgifmodal.js', '{.tmp,app}/scripts/controllers/exportwebmmodal.js', '{.tmp,app}/scripts/controllers/imageinfomodal.js', '{.tmp,app}/scripts/controllers/sharepngmodal.js', '{.tmp,app}/scripts/controllers/exportpngmodal.js', '{.tmp,app}/scripts/controllers/exportjpgmodal.js', '{.tmp,app}/scripts/controllers/exportanaglyphmodal.js', '{.tmp,app}/scripts/classes/DepthyViewer.js', '{.tmp,app}/scripts/classes/DepthyDrawer.js', '{.tmp,app}/scripts/services/statemodal.js', '{.tmp,app}/scripts/services/UpdateCheck.js' ] } ] } } uglify: { options: {}, generated: { files: [ { dest: 'dist/scripts/vendor.js', src: [ '.tmp/concat/scripts/vendor.js' ] }, { dest: 'dist/scripts/scripts.js', src: [ '.tmp/concat/scripts/scripts.js' ] } ] } } cssmin: { generated: { files: [ { dest: 'dist/styles/main.css', src: [ '{.tmp,app}/styles/main.css' ] } ] } } Running "concurrent:dist" (concurrent) task >> Warning: There are more tasks than your concurrency limit. After this limit >> is reached no further tasks will be run until the current tasks are >> completed. You can adjust the limit in the concurrent task options Fatal error: Path must be a string. Received { url: 'https://raw.github.com/imagemin/gifsicle-bin/v0.1.7/vendor/linux/x64/gifsicle', name: 'gifsicle', os: 'linux', arch: 'x64' } Execution Time (2019-08-17 22:25:22 UTC) loading tasks 8ms ▇▇ 1% clean:dist 11ms ▇▇ 2% useminPrepare:html 31ms ▇▇▇▇▇ 4% concurrent:dist 663ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 92% Total 721ms `
I believe I am within inches of being able to run depthy (which is a cool tool!).
I am experiencing some issues when running grunt build, and I am not sure how to run it.
note two issues in the codepile... a typerror, and a fatal error related to gifsicle.
After I can fix it, then i need to know if I can run it with PM2 or?
The instructions aren't exactly precise and this error is not mentioned afaic.