Coder Social home page Coder Social logo

Comments (15)

fatadel avatar fatadel commented on June 22, 2024 1

@danielpeintner I currently have an active task from @sebastiankb. So if he approves I would gladly take this one as the next.

from website.

fatadel avatar fatadel commented on June 22, 2024 1

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.

fatadel avatar fatadel commented on June 22, 2024

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.

fatadel avatar fatadel commented on June 22, 2024

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.

egekorkan avatar egekorkan commented on June 22, 2024

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.

fatadel avatar fatadel commented on June 22, 2024

@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.

egekorkan avatar egekorkan commented on June 22, 2024

Yes go for it! This PR was mentioning this

from website.

fatadel avatar fatadel commented on June 22, 2024

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.

danielpeintner avatar danielpeintner commented on June 22, 2024

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.

danielpeintner avatar danielpeintner commented on June 22, 2024

@egekorkan shall we close this issue?

from website.

egekorkan avatar egekorkan commented on June 22, 2024

There is still no mention of the need to remove those lines though?

from website.

danielpeintner avatar danielpeintner commented on June 22, 2024

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.

egekorkan avatar egekorkan commented on June 22, 2024

A link would be a better solution but I don't see one in the tutorial :)

from website.

danielpeintner avatar danielpeintner commented on June 22, 2024

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.

egekorkan avatar egekorkan commented on June 22, 2024

oopsie :) closing

from website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.