rkoeninger / ShenScript

Shen for JavaScript
BSD 3-Clause "New" or "Revised" License
57 stars 4 forks source link

Testing the build and running the demo #5

Closed vrescobar closed 5 years ago

vrescobar commented 5 years ago

Hello,

I wanted to try this implementation to evaluate how it would be a practical use of ShenScript. And I wanted to try the demo advertised on the main page, but it seems to fail:

$ brew install webpack
$ npm start
> ShenScript@0.4.0 start /Users/vresko/projects/ShenScript
> webpack-cli --watch

webpack is watching the files…

Hash: 70a761fd3a6c065ce219
Version: webpack 4.39.2
Time: 194ms
Built at: 17.08.2019 09:15:55
    Asset      Size  Chunks             Chunk Names
bundle.js  72.8 KiB    main  [emitted]  main
Entrypoint main = bundle.js
[../../../../usr/local/Cellar/webpack/4.39.2/libexec/lib/node_modules/webpack-cli/node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {main} [built]
[./dist sync recursive ^\.\/kernel\..*$] ./dist sync ^\.\/kernel\..*$ 160 bytes {main} [built]
[./index.js] 423 bytes {main} [built]
[./lib sync recursive ^\.\/config\..*$] ./lib sync ^\.\/config\..*$ 252 bytes {main} [built]
[./lib sync recursive ^\.\/frontend\..*$] ./lib sync ^\.\/frontend\..*$ 262 bytes {main} [built]
[./lib/ast.js] 6.24 KiB {main} [built]
[./lib/backend.js] 25.4 KiB {main} [built]
[./lib/config.js] 458 bytes {main} [built]
[./lib/config.node.js] 325 bytes {main} [optional] [built]
[./lib/config.web.js] 1.28 KiB {main} [optional] [built]
[./lib/frontend.js] 15.4 KiB {main} [built]
[./lib/frontend.node.js] 563 bytes {main} [optional] [built]
[./lib/frontend.web.js] 814 bytes {main} [optional] [built]
[./lib/utils.js] 1.41 KiB {main} [built]
[./shen.js] 651 bytes {main} [optional] [built]
    + 2 hidden modules

ERROR in ./lib/ast.js
Module not found: Error: Can't resolve 'astring' in '/Users/vresko/projects/ShenScript/lib'
 @ ./lib/ast.js 1:21-39
 @ ./lib/frontend.js
 @ ./lib sync ^\.\/frontend\..*$
 @ ./shen.js
 @ ./index.js

Unfortunately I am not that skilled with shen to debug that just myself. Any assistance to get to a demo page with an example is running would be great.

vrescobar commented 5 years ago

Seems that I forgot to run the mandatory npm install, my bad. I also saw that in order to run the demo page the main index.html has to be served with an external server.

Then it just prints environment created in 25536ms. (that was a modern laptop, chrome browser).

I hope there was a way to speed up this load time to something more practical. Any ideas?