Skip to content

marclaval/ng-bootstrap-tsickle-build

Repository files navigation

ng-bootstrap-tsickle-build

A tsickled-ES6 distribution of ng-bootstrap

Steps to build:

  • clone mlaval/ng-bootstrap, and cd into it
  • git checkout ng4.0.0-beta.6
  • npm install
  • add the following tsconfig.json file in the src folder:
{
  "compilerOptions": {
    "target": "es6",
    "module": "es2015",
    "moduleResolution": "node",
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "declaration": true,
    "baseUrl": ".",
    "stripInternal": true,
    "outDir": "../tmp/ng-bootstrap",
    "rootDir": ".",
    "sourceMap": true,
    "inlineSources": true,
    "skipLibCheck": true,
    "lib": ["es2015", "dom"]
  },
  "files": [
    "./index.ts"
  ],
  "angularCompilerOptions": {
    "annotationsAs": "static fields",
    "annotateForClosureCompiler": true
  }
}
  • node node_modules/@angular/tsc-wrapped/src/main -p src/tsconfig.json
  • copy the content of tmp/ng-bootstrap to here
  • create package.json as follows:
{
  "name": "@ng-bootstrap/ng-bootstrap",
  "version": "1.0.0-alpha.20",
  "description": "Angular 2 powered Bootstrap",
  "keywords": "Angular 2 Angular2 Bootstrap autocomplete accordion alert buttons carousel collapse dropdown pagination popover progressbar rating tabset timepicker tooltip typeahead",
  "author": "https://github.com/ng-bootstrap/ng-bootstrap/graphs/contributors",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/ng-bootstrap/ng-bootstrap.git"
  },
  "license": {
    "type": "MIT",
    "url": "https://raw.githubusercontent.com/ng-bootstrap/ng-bootstrap/master/LICENSE"
  },
  "bugs": {
    "url": "https://github.com/ng-bootstrap/ng-bootstrap/issues"
  },
  "homepage": "https://github.com/ng-bootstrap/ng-bootstrap#readme",
  "main": "bundles/ng-bootstrap.js",
  "module": "index.js",
  "typings": "index.d.ts",
  "peerDependencies": {
    "@angular/core": "^4.0.0-beta.6",
    "@angular/common": "^4.0.0-beta.6",
    "@angular/forms": "^4.0.0-beta.6"
  }
}

About

A tsickled-ES6 distribution of ng-bootstrap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published