Configure Aurelia Project using Visual Studio

2020-02-20 06:14发布

问题:

I know it's very new, but I'd like to create a prototype using aurelia with Visual Studio. VS support is in the hopper, but the current documentation is based on node.js et al. Based on the existing documentation, I haven't a clue. I'm hoping I can get some guidance...

回答1:

Not sure this is what you are looking for, but you can check out this github Aurelia project, using Typescript and VS 2013. It still makes use of gulp and jspm but with the VS Taskrunner extension.

https://github.com/AshleyGrant/aspnet-skeleton-navigation

There is now a default project supporting VS 2015: https://github.com/aurelia/skeleton-navigation



回答2:

There are several sample Aurelia Visual Studio solutions contained here: aurelia typescript samples

These samples use a javascript bundle (also created as part of the repo), so no gulp is needed.

Warning - these are samples and are not polished.



回答3:

  • Download and Install Node.js Then create a Visual Studio project and on the toplevel of that folder execute for>
  • Install Gulp for build automation

npm install -g gulp

  • Install JSPM as client-side package manager

npm install -g jspm

  • Install Git for Windows and configure Github

jspm registry config github

  • Generate a skeleton project by using Yeoman

npm install -g yo generator-aurelia

then enter

yo aurelia

  • Install Plugins needed by gulp

npm install

  • Install JSPM dependencies of the package manifest

jspm install -y

  • Gulp Watch to run

gulp watch

all from this tutorial> Tutaurelia.net



回答4:

Visual Studio Code would work well with Aurelia, I had a play around with the demo and the skeleton app and it worked pretty well.



回答5:

I tried to run Aurelia Visual Studio Project without Nodejs .

https://github.com/cmichaelgraham/aurelia-typescript#just-use-it---visual-studio-using-requirejs-amd-module-loader

But it not able to find "http://lcoalhost:6260/aurelia/core-js/client/core.js".

that means we need make sure that NodeJs installed on server with this command

run node r.js -o name=aurelia-bundle-manifest baseUrl=. mainConfigFile=main-config.js out=aurelia-bundle.min.js

Need to create bundling into server like

https://github.com/cmichaelgraham/aurelia-typescript#bundling



回答6:

You can try this https://github.com/BoudewijnvanVeen/Aurelia-Typescript-Skeleton-4VS

Lets you run an Aurelia application using Visual Studio with Typescript debugging.doesnt use Gulp



标签: aurelia