evothings / evothings-studio

Evothings Studio
http://www.evothings.com/
Apache License 2.0
52 stars 33 forks source link

Implement specification of root folder in package.json #31

Closed TechWizEric closed 9 years ago

TechWizEric commented 9 years ago

It's desired to be able to put a package.json file in an application's folder that contains a specification of what root folder should be served by the server for that app.

Implement parsing any existing package.json residing in the same folder as the index.html file (that is listed in hyper/settings/project-list.json). Find any specification of root folder and serve that as root when pressing the Run button. Serve the HTML-file specified through hyper/settings/project-list.json by default, i.e. it's not desirable to require an additional specification of where the main index.html file resides in package.json.

Note that another reason to have a package.json is that in the future this file could contain info required by e.g. cordova-cli that could be invoked from the Workbench to build app packages.

ghost commented 9 years ago

After several discussions we are going for a solution where the distributed Evothings Studio package has self-contained example projects.

The proposed solution works by having a common folder in EvoThingExamples and a build script that copies common files to the example folders.

See issue: https://github.com/evothings/EvoThingsExamples/issues/71

Closing this issue.