GithubHelp home page GithubHelp logo

marwijn / aspnet-skeleton-navigation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ashleygrant/aspnet-skeleton-navigation

0.0 2.0 0.0 230 KB

A sample Visual Studio Project utilizing Aurelia and Typescript. Includes automated running of npm install, jspm install, and gulp commands.

C# 5.55% JavaScript 57.71% HTML 24.97% TypeScript 9.19% CSS 2.59%

aspnet-skeleton-navigation's Introduction

aspnet-skeleton-navigation

This skeleton is an example of how to utilize Aurelia with Visual Studio 2013 and Typescript. It sets up a standard navigation-style app using the Typescript compiler. Gulp is used to copy all html, ts, js, and map files to the dist\ directory. Karma/Jasmine testing is also configured. Integration of npm and jspm with the Visual Studio is provided but is disabled by default due to resource usage.

To keep up to date on Aurelia, please visit and subscribe to the official blog. If you have questions, we invite you to join us on our Gitter Channel.

Installing Dependencies

  1. Install the Task Runner Explorer Visual Studio Extension.

  2. Install the Typescript 1.3 Visual Studio Extension.

  3. Make sure that Git is installed and the path to the Git executable is in the $PATH system variable. Either Git for Windows or GitHub for Windows should work for this.

  4. Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.

  5. Ensure that Gulp is installed. If you need to install it, use the following command:

npm install -g gulp
  1. Ensure that jspm is installed. If you need to install it, use the following command:
npm install -g jspm

Running The App

To run the app, follow these steps.

  1. Open the project in Visual Studio.

  2. Set Visual Studio to launch using Google Chrome. See below for instructions on running the app using Internet Explorer.

  3. Press F5 to run the project.

Note: The build process will run npm install and jspm install. For this reason, the first build will take quite a while.

Note: Visual Studio sometimes launches the browser before Gulp has finished deploying changes. If you get a black screen, try hitting refresh.

Note: At present there is a bug in the HTMLImports polyfill which only occurs on IE. We have submitted a pull request to the team with the fix. In the mean time, if you want to test on IE, you can work around the issue by explicitly adding a script tag before you load system.js. The script tag should look something like this (be sure to confirm the version number):

<script src="jspm_packages/github/webcomponents/[email protected]/HTMLImports.js"></script>

Running The Tests

To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:

  1. Ensure that the Karma CLI is installed. If you need to install it, use the following command:
npm install -g karma-cli
  1. You can now run the tests with this command:
karma start

Contributing

We'd love for you to contribute to our source code and to make this project even better than it is today! If this interests you, please begin by reading our contributing guidelines. The contributing document will provide you with all the information you need to get started. Once you have read that, you will need to also sign our CLA before we can accepts a Pull Request from you. More information on the process is including in the contributor's guide.

aspnet-skeleton-navigation's People

Contributors

ashleygrant avatar dazinator avatar

Watchers

 avatar  avatar

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.