Comments (15)
@danielpeintner I currently have an active task from @sebastiankb. So if he approves I would gladly take this one as the next.
from website.
So, @sebastiankb has approved, and I am starting to work on eclipse-thingweb/node-wot#185.
@egekorkan I think this issue can be closed now.
from website.
I think that if one wants to compile their own example then they will find the readme file you've mentioned on how to do that. The initial purpose of the tutorial was to demonstrate the capabilities of WoT and the usage of node-wot API but not "how to create & compile your own code".
Anyway, I can definitely add that information to the tutorial. However, I would also ask @sebastiankb's opinion on that.
from website.
But the way, when I was creating the example scripts I have created a simple shell script that automates the process you've mentioned @egekorkan.
Could we maybe adapt and integrate it somehow in node-wot?
#!/usr/bin/env bash
cd $PATH_TO_PROJECT/thingweb.node-wot/packages/examples
npx tsc
cd - > /dev/null
cp $PATH_TO_PROJECT/thingweb.node-wot/packages/examples/dist/scripts/coffee-machine.js $PATH_TO_PROJECT/thingweb.node-wot/examples/scripts/
sed -i "/Object\.defineProperty(exports, \"__esModule\", { value: true })\;/d" $PATH_TO_PROJECT/thingweb.node-wot/examples/scripts/coffee-machine.js
sed -i "/require(\"wot-typescript-definitions\")\;/d" $PATH_TO_PROJECT/thingweb.node-wot/examples/scripts/coffee-machine.js
sed -i "/let WoT\;/d" $PATH_TO_PROJECT/thingweb.node-wot/examples/scripts/coffee-machine.js
sed -i "/let WoTHelpers\;/d" $PATH_TO_PROJECT/thingweb.node-wot/examples/scripts/coffee-machine.js
echo "Enjoy your drink!"
from website.
I would say yes for this script! However, for the builds to work under windows, a node.js way would be better which allows the abstraction of the OS.
Regarding where to put the above mentioned information, you should at least link to the readme that shows that this needs to be done. I actually had a student who did your tutorial but his compiled version simply didn't work and he didn't know that you should remove the 3-4 lines. You should think that your tutorial is how someone starts using node-wot for the first time ;)
from website.
@egekorkan Okay, I will add that :)
Regarding the script, I think it would be good to move it into a separate "feature-request" issue. Shall I create it or you do it yourself?
from website.
Yes go for it! This PR was mentioning this
from website.
This PR, among others, links the aforementioned readme file with the smart coffee machine tutorial.
Regarding the automation script, I have found that there is already an open issue for that - eclipse-thingweb/node-wot#185.
from website.
Regarding the automation script, I have found that there is already an open issue for that - eclipse/thingweb.node-wot#185.
Correct, but on the script somebody still needs to work on ...
from website.
@egekorkan shall we close this issue?
from website.
There is still no mention of the need to remove those lines though?
from website.
There is a link to the workflow which is better than mentioning the workflow again .. I think (tends to get out of sync easily)
Note: thanks to @relu91 one can now also load ts files...
from website.
A link would be a better solution but I don't see one in the tutorial :)
from website.
Mhh, are we talking about the same?
On http://www.thingweb.io/smart-coffee-machine.html I see
"If you want to add your own example scripts be sure to follow the workflow".
from website.
oopsie :) closing
from website.
Related Issues (20)
- [Enhancement] Make Website more developer-friendly
- [Enhancement] Make Website more search engine optimized
- Eclipse progress review - footer HOT 1
- Templates need to be updated for v.0.8.0 HOT 1
- Thingweb vserver moved HOT 2
- Use https for thingweb.io HOT 3
- Make GitHub Link more prominent HOT 2
- Build fails with new Hugo version
- Layout between header and footer not nicely aligned
- Rethinking news section HOT 2
- Examples Web Page HOT 3
- GitHub buttons integration
- 404 page misses to load CSS properly HOT 4
- Favor favor WoT.requestThingDescription() instead of general fetch
- Make external links accessible HOT 1
- Rework the "News" page HOT 1
- Implementation of a cookie/consent button for consent management
- Improve the get involved page HOT 1
- [Redesign] Possible Thingweb Component Combinations HOT 1
- Moving Vaimee online things to a *new* home HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from website.