GithubHelp home page GithubHelp logo

marchel2 / generator-durandal2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 34 KB

Scaffold a SPA with durandal, gulp, TypeScript or ES6

License: MIT License

JavaScript 76.00% CSS 2.22% TypeScript 7.15% HTML 14.62%

generator-durandal2's Introduction

About This Generator

This will get you up and running with a skeleton SPA using the Durandal framework and pre-configured Gulp tasks.

###Language Support:

  • JavaScript(ES5)
  • TypeScript

###UI Options:

###Planned Updates:

  • Bower support
  • JSPM
  • Babel6

Getting Started

Environment Setup

Ensure that NodeJS is installed. This provides the platform on which the build tooling runs. From the project folder, execute the following command:

npm install

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

npm install -g gulp

Note: Gulp must be installed globally, but a local version will also be installed to ensure a compatible version is used for the project.

Install Yeoman

This generator needs Yeoman to be installed.

npm install -g yo

Install Generator

To install generator-durandal2 from npm, run:

npm install -g generator-durandal2

Then, initiate the generator:

yo durandal2

##Development

Run the Application

Note: If using TypeScript configuration, install necessary type definitions

typings install
gulp watch

Browse to http://localhost:9000 to see the app. You can make changes in the code found under app and the browser should auto-refresh itself as you save files.

This template uses BrowserSync for automated page refreshes on code/markup changes concurrently across multiple browsers. If you prefer to disable the mirroring feature set the ghostMode option to false

Sub Generators

####ViewModel

You can create a viewmodel the following subgenerator. You can choose between TypeScript or JavaScript.

yo durandal2:viewmodel {name} {transpiler} (--transient)

Note: Passing --transient will create a viewmodel with a transient lifecycle

License

MIT License

generator-durandal2's People

Contributors

marchel2 avatar

Stargazers

 avatar

Watchers

 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.