Configure Aurelia Project using Visual Studio

2020-02-20 05:26发布

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

标签: aurelia
6条回答
Viruses.
2楼-- · 2020-02-20 06:04

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

查看更多
ら.Afraid
3楼-- · 2020-02-20 06:15

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.

查看更多
乱世女痞
4楼-- · 2020-02-20 06:15

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

查看更多
▲ chillily
5楼-- · 2020-02-20 06:21

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.

查看更多
乱世女痞
6楼-- · 2020-02-20 06:21

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 enter image description here

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

查看更多
男人必须洒脱
7楼-- · 2020-02-20 06:24
  • 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

查看更多
登录 后发表回答