Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. # tslib
  2. This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
  3. This library is primarily used by the `--importHelpers` flag in TypeScript.
  4. When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file:
  5. ```ts
  6. var __assign = (this && this.__assign) || Object.assign || function(t) {
  7. for (var s, i = 1, n = arguments.length; i < n; i++) {
  8. s = arguments[i];
  9. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
  10. t[p] = s[p];
  11. }
  12. return t;
  13. };
  14. exports.x = {};
  15. exports.y = __assign({}, exports.x);
  16. ```
  17. will instead be emitted as something like the following:
  18. ```ts
  19. var tslib_1 = require("tslib");
  20. exports.x = {};
  21. exports.y = tslib_1.__assign({}, exports.x);
  22. ```
  23. Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead.
  24. For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`.
  25. # Installing
  26. For the latest stable version, run:
  27. ## npm
  28. ```sh
  29. # TypeScript 2.3.3 or later
  30. npm install tslib
  31. # TypeScript 2.3.2 or earlier
  32. npm install tslib@1.6.1
  33. ```
  34. ## yarn
  35. ```sh
  36. # TypeScript 2.3.3 or later
  37. yarn add tslib
  38. # TypeScript 2.3.2 or earlier
  39. yarn add tslib@1.6.1
  40. ```
  41. ## bower
  42. ```sh
  43. # TypeScript 2.3.3 or later
  44. bower install tslib
  45. # TypeScript 2.3.2 or earlier
  46. bower install tslib@1.6.1
  47. ```
  48. ## JSPM
  49. ```sh
  50. # TypeScript 2.3.3 or later
  51. jspm install tslib
  52. # TypeScript 2.3.2 or earlier
  53. jspm install tslib@1.6.1
  54. ```
  55. # Usage
  56. Set the `importHelpers` compiler option on the command line:
  57. ```
  58. tsc --importHelpers file.ts
  59. ```
  60. or in your tsconfig.json:
  61. ```json
  62. {
  63. "compilerOptions": {
  64. "importHelpers": true
  65. }
  66. }
  67. ```
  68. #### For bower and JSPM users
  69. You will need to add a `paths` mapping for `tslib`, e.g. For Bower users:
  70. ```json
  71. {
  72. "compilerOptions": {
  73. "module": "amd",
  74. "importHelpers": true,
  75. "baseUrl": "./",
  76. "paths": {
  77. "tslib" : ["bower_components/tslib/tslib.d.ts"]
  78. }
  79. }
  80. }
  81. ```
  82. For JSPM users:
  83. ```json
  84. {
  85. "compilerOptions": {
  86. "module": "system",
  87. "importHelpers": true,
  88. "baseUrl": "./",
  89. "paths": {
  90. "tslib" : ["jspm_packages/npm/tslib@1.[version].0/tslib.d.ts"]
  91. }
  92. }
  93. }
  94. ```
  95. # Contribute
  96. There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
  97. * [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
  98. * Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
  99. * Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript).
  100. * Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter.
  101. * [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md).
  102. # Documentation
  103. * [Quick tutorial](http://www.typescriptlang.org/Tutorial)
  104. * [Programming handbook](http://www.typescriptlang.org/Handbook)
  105. * [Homepage](http://www.typescriptlang.org/)