0.9.2-pre.13 • Published 7 years ago

kolayout v0.9.2-pre.13

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

KoLayout

NPM version Downloads The MIT License Visual Studio Team services Coveralls GitHub David David

Install

To install using NPM do

npm install kolayout --save

Compile Time

and to set up typescript tsconfig.json to allow resolution of submodules within kolayout package add the following:

  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "kolayout/*": ["node_modules/kolayout/dist/typings/*"]
    }
  }

which allows you to do

import {isDefined} from "kolayout/utils/isDefined";

if only IKoLayout or KoLayout is required, simply doing

import {IKoLayout,KoLayout} from "kolayout";

Run Time

Here is example setup for runtime using requirejs and using the directly transpiled output located in /dist/src folder within your application

  require.config({
    paths:{},
    packages:[
      {
         name: "kolayout",
         main: "index",
         location:"libs/kolayout"
      }
    ]
  });

assuming you copyed over npm package to libs in your gruntfile.js

  npmcopy: {
    // Anything can be copied 
    libs: {
      options: {
        destPrefix: 'wwwroot/libs'
      },
      files: {
        // Keys are destinations (prefixed with `options.destPrefix`) 
        // Values are sources (prefixed with `options.srcPrefix`); One source per destination 
        // e.g. 'node_modules/chai/lib/chai.js' will be copied to 'test/js/libs/chai.js' 
        "kolayout": ["kolayout/dist/src"],
        "knockout":["knockout/build/output"]
      }
    }
  }
0.9.2-pre.13

7 years ago

0.9.2-pre.12

7 years ago

0.9.2-pre.11

8 years ago

0.9.2-pre.10

8 years ago

0.9.2-pre.9

8 years ago

0.9.2-pre.8

8 years ago

0.9.2-pre.7

8 years ago

0.9.2-pre.6

8 years ago

0.9.2-pre.5

8 years ago

0.9.2-pre.4

8 years ago

0.9.2-pre.3

8 years ago

0.9.2-pre.2

8 years ago

0.9.2-pre.1

8 years ago

0.9.2-pre.0

8 years ago

0.9.0-pre

8 years ago