Skip to content

Commit 68bfb31

Browse files
committed
Add AppVeyor for Windows builds
1 parent c5af49b commit 68bfb31

File tree

9 files changed

+2175
-12
lines changed

9 files changed

+2175
-12
lines changed

appveyor.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
environment:
2+
nodejs_version: "0.12"
3+
matrix:
4+
- TYPESCRIPT: typescript
5+
- TYPESCRIPT: typescript@next
6+
install:
7+
- ps: Install-Product node $env:nodejs_version
8+
- npm install
9+
- npm install %TYPESCRIPT%
10+
test_script:
11+
- node --version
12+
- npm --version
13+
- npm run build
14+
- npm test
15+
build: off

test/jsx-1.8/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This test demonstrates the new JSX functionality of TypeScript.
2+
3+
Note that the nightly build of TypeScript is required for this functionality to work.
4+
Install `typescript@next` to use. Also note that React is not actually bundled here.
5+
6+
See [this blog post](http://www.jbrantly.com/typescript-and-jsx/) for more information about JSX in TypeScript.

test/jsx-1.8/app.tsx

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React = require('react');
2+
3+
interface Props {
4+
content: string;
5+
}
6+
7+
class MyComponent extends React.Component<Props, {}> {
8+
render() {
9+
return <div>{this.props.content}</div>
10+
}
11+
}
12+
13+
React.render(<MyComponent content="Hello World" />, document.body);

test/jsx-1.8/expectedOutput/bundle.js

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/******/ (function(modules) { // webpackBootstrap
2+
/******/ // The module cache
3+
/******/ var installedModules = {};
4+
5+
/******/ // The require function
6+
/******/ function __webpack_require__(moduleId) {
7+
8+
/******/ // Check if module is in cache
9+
/******/ if(installedModules[moduleId])
10+
/******/ return installedModules[moduleId].exports;
11+
12+
/******/ // Create a new module (and put it into the cache)
13+
/******/ var module = installedModules[moduleId] = {
14+
/******/ exports: {},
15+
/******/ id: moduleId,
16+
/******/ loaded: false
17+
/******/ };
18+
19+
/******/ // Execute the module function
20+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21+
22+
/******/ // Flag the module as loaded
23+
/******/ module.loaded = true;
24+
25+
/******/ // Return the exports of the module
26+
/******/ return module.exports;
27+
/******/ }
28+
29+
30+
/******/ // expose the modules object (__webpack_modules__)
31+
/******/ __webpack_require__.m = modules;
32+
33+
/******/ // expose the module cache
34+
/******/ __webpack_require__.c = installedModules;
35+
36+
/******/ // __webpack_public_path__
37+
/******/ __webpack_require__.p = "";
38+
39+
/******/ // Load entry module and return exports
40+
/******/ return __webpack_require__(0);
41+
/******/ })
42+
/************************************************************************/
43+
/******/ ([
44+
/* 0 */
45+
/***/ function(module, exports, __webpack_require__) {
46+
47+
var __extends = (this && this.__extends) || function (d, b) {
48+
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
49+
function __() { this.constructor = d; }
50+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51+
};
52+
var React = __webpack_require__(1);
53+
var MyComponent = (function (_super) {
54+
__extends(MyComponent, _super);
55+
function MyComponent() {
56+
_super.apply(this, arguments);
57+
}
58+
MyComponent.prototype.render = function () {
59+
return React.createElement("div", null, this.props.content);
60+
};
61+
return MyComponent;
62+
})(React.Component);
63+
React.render(React.createElement(MyComponent, {content: "Hello World"}), document.body);
64+
65+
66+
/***/ },
67+
/* 1 */
68+
/***/ function(module, exports) {
69+
70+
module.exports = react;
71+
72+
/***/ }
73+
/******/ ]);
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Asset Size Chunks Chunk Names
2+
bundle.js 2.21 kB 0 [emitted] main
3+
chunk {0} bundle.js (main) 738 bytes [rendered]
4+
[0] ./.test/jsx-1.8/app.tsx 696 bytes {0} [built]
5+
[1] external "react" 42 bytes {0} [not cacheable]

0 commit comments

Comments
 (0)