si-appbuilder
v0.0.3
Published
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][downloads-url] [![The MIT License](https://img.shields.io/badge/license-MIT-orange.svg?style=flat-square)](http://opensource.org/licenses/MIT) [![Visual Studio Team services](https://
Downloads
6
Readme
si-appbuilder
Install
To install using NPM do
npm install si-appbuilder --save
Compile Time
and to set up typescript tsconfig.json to allow resolution of submodules within kolayout package add the following:
"compilerOptions": {
"baseUrl": ".",
"paths": {
"si-appbuilder/*": ["node_modules/si-appbuilder/dist/typings/*"]
}
}
which allows you to do
import {isDefined} from "si-appbuilder/utils/isDefined";
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: "si-appbuilder",
main: "index",
location:"libs/si-appbuilder"
}
]
});
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'
"si-appbuilder": ["si-appbuilder/dist/src"]
}
}
}