How to use the Aurelia.io app without using the Gulp watch

How to start an Aurelia application without starting gulp watch and just go to localhost:9000 . Ideally, I would just like to start my nodejs server, and all this just works without having to run a separate task (gulp task).

I would like to build Aurelia and just start using it the same way I can with Durandal.

+8
durandal aurelia
source share
2 answers

take a look at Aurelia- Node Repo for a quick launch. It uses ExpressJS to provide a simple REST api, as well as for static maintenance of the Aurelia application.

You still need the Gulp task (inside public / app) to build your es6 modules, etc., but the hosting then works on the node itself, so Gulp build should be enough.

EDIT: The repo also provides the gulpfile in the root. The big difference with this is that it not only translates external code, but also the Syncs browser application node through nodemon. Again, all this is not necessary for the final hosting. A normal node app.js will be enough. Gulp etc. Used only during the development process.

+6
source share

I download the Aurelia repository from

https://github.com/aurelia/

And run the project successfully through webstrom on a different port, and not on localhost: 9000 without gulp watch. "

But I installed the Aurelia dependency, and then started successfully running the project on a web server.

Steps to start a project without a "gulp watch" ...

Run the given command on the command line from the project folder.

 Install the Apps dependencies - **npm install** Install JSPM dependencies - **jspm install -y** Install Gulp - **npm install gulp** 

then examine the index.html page on chrome. Make sure you use Aurelia in Chrome, IE, and Firefox.

I tested the Aurelia app in Chrome, IE, Safari, and Firefox results.

Chrome - Pass IE - Pass Firefox - Pass Safari - Fail

But in safari it didn’t work out.

0
source share

All Articles