Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.

Commit 890c91f

Browse files
authored
Merge pull request #65 from myitcv/first_cut_jsx
First cut of JSX-like support
2 parents 63772bd + 420063c commit 890c91f

File tree

604 files changed

+162495
-143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

604 files changed

+162495
-143
lines changed

.bin_deps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
myitcv.io/react/cmd/cssGen
22
myitcv.io/react/cmd/reactGen
3+
myitcv.io/react/cmd/reactVet
34
myitcv.io/react/cmd/stateGen

.vendor.txt

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
./_vendor/src/golang.org/x/sys 9a7256cb28ed514b4e1e5f68959914c4c28a92e0 https://go.googlesource.com/sys
2-
./_vendor/src/golang.org/x/crypto 3cb07270c9455e8ad27956a70891c962d121a228 https://go.googlesource.com/crypto
3-
./_vendor/src/golang.org/x/tools 620ecdb8d7943e20dc030b61bfe898d1b000bdea https://go.googlesource.com/tools
4-
./_vendor/src/github.com/gopherjs/gopherjs 9659c814f1d54d63f9c623449a7111d3864c1361 git@github.com:gopherjs/gopherjs
5-
./_vendor/src/github.com/kisielk/gotool 0de1eaf82fa3f583ce21fde859f1e7e0c5e9b220 git@github.com:kisielk/gotool
6-
./_vendor/src/github.com/fsnotify/fsnotify 7d7316ed6e1ed2de075aab8dfc76de5d158d66e1 git@github.com:fsnotify/fsnotify
7-
./_vendor/src/github.com/spf13/cobra 16c014f1a19d865b765b420e74508f80eb831ada git@github.com:spf13/cobra
8-
./_vendor/src/github.com/spf13/pflag 9ff6c6923cfffbcd502984b8e0c80539a94968b7 git@github.com:spf13/pflag
9-
./_vendor/src/github.com/kardianos/osext 9d302b58e975387d0b4d9be876622c86cefe64be git@github.com:kardianos/osext
10-
./_vendor/src/github.com/neelance/astrewrite 99348263ae862cc230986ce88deaddbf7edcc034 git@github.com:neelance/astrewrite
11-
./_vendor/src/github.com/neelance/sourcemap 8c68805598ab8d5637b1a72b5f7d381ea0f39c31 git@github.com:neelance/sourcemap
12-
./_vendor/src/myitcv.io/highlightjs e0ea663591fbdbce10ca2658c680ba7be2391ff8 git@github.com:myitcv/highlightjs
13-
./_vendor/src/myitcv.io/gogenerate bd69a94c96953d20e106734856b69d71c8fa122b git@github.com:myitcv/gogenerate
14-
./_vendor/src/myitcv.io/remarkable 6e8b85d04c0c2559fec23559cf88780db6d93083 git@github.com:myitcv/remarkable
15-
./_vendor/src/myitcv.io/sorter ed1d278951e48d5c8e355c266faec8666d40b2b3 git@github.com:myitcv/sorter
16-
./_vendor/src/myitcv.io/immutable 74c4e0dc47c184000811bee5bb1bb293c5b2b674 git@github.com:myitcv/immutable
17-
./_vendor/src/honnef.co/go/js/xhr 00e3346113aed89b501ead4e863c7c3d04fa0c5b git@github.com:dominikh/go-js-xhr
18-
./_vendor/src/honnef.co/go/js/util 96b8dd9d16214b6cd9d8c8e84b3a375da4688108 git@github.com:dominikh/go-js-util
19-
./_vendor/src/honnef.co/go/js/dom 0a64a2db1425c1881d4ec762370250c65f44b85b git@github.com:dominikh/go-js-dom
1+
./_vendor/src/golang.org/x/net da118f7b8e5954f39d0d2130ab35d4bf0e3cb344 https://go.googlesource.com/net
2+
./_vendor/src/golang.org/x/sys 9a7256cb28ed514b4e1e5f68959914c4c28a92e0 https://go.googlesource.com/sys
3+
./_vendor/src/golang.org/x/crypto 3cb07270c9455e8ad27956a70891c962d121a228 https://go.googlesource.com/crypto
4+
./_vendor/src/golang.org/x/tools 620ecdb8d7943e20dc030b61bfe898d1b000bdea https://go.googlesource.com/tools
5+
./_vendor/src/github.com/gopherjs/gopherjs 9659c814f1d54d63f9c623449a7111d3864c1361 git@github.com:gopherjs/gopherjs
6+
./_vendor/src/github.com/kisielk/gotool 0de1eaf82fa3f583ce21fde859f1e7e0c5e9b220 git@github.com:kisielk/gotool
7+
./_vendor/src/github.com/fsnotify/fsnotify 7d7316ed6e1ed2de075aab8dfc76de5d158d66e1 git@github.com:fsnotify/fsnotify
8+
./_vendor/src/github.com/spf13/cobra 16c014f1a19d865b765b420e74508f80eb831ada git@github.com:spf13/cobra
9+
./_vendor/src/github.com/spf13/pflag 9ff6c6923cfffbcd502984b8e0c80539a94968b7 git@github.com:spf13/pflag
10+
./_vendor/src/github.com/kardianos/osext 9d302b58e975387d0b4d9be876622c86cefe64be git@github.com:kardianos/osext
11+
./_vendor/src/github.com/neelance/astrewrite 99348263ae862cc230986ce88deaddbf7edcc034 git@github.com:neelance/astrewrite
12+
./_vendor/src/github.com/neelance/sourcemap 8c68805598ab8d5637b1a72b5f7d381ea0f39c31 git@github.com:neelance/sourcemap
13+
./_vendor/src/github.com/shurcooL/sanitized_anchor_name 79c90efaf01eddc01945af5bc1797859189b830b git@github.com:shurcooL/sanitized_anchor_name
14+
./_vendor/src/github.com/russross/blackfriday b253417e1cb644d645a0a3bb1fa5034c8030127c git@github.com:russross/blackfriday
15+
./_vendor/src/myitcv.io/highlightjs e0ea663591fbdbce10ca2658c680ba7be2391ff8 git@github.com:myitcv/highlightjs
16+
./_vendor/src/myitcv.io/gogenerate bd69a94c96953d20e106734856b69d71c8fa122b git@github.com:myitcv/gogenerate
17+
./_vendor/src/myitcv.io/remarkable 6e8b85d04c0c2559fec23559cf88780db6d93083 git@github.com:myitcv/remarkable
18+
./_vendor/src/myitcv.io/sorter ed1d278951e48d5c8e355c266faec8666d40b2b3 git@github.com:myitcv/sorter
19+
./_vendor/src/myitcv.io/immutable 74c4e0dc47c184000811bee5bb1bb293c5b2b674 git@github.com:myitcv/immutable
20+
./_vendor/src/honnef.co/go/js/xhr 00e3346113aed89b501ead4e863c7c3d04fa0c5b git@github.com:dominikh/go-js-xhr
21+
./_vendor/src/honnef.co/go/js/util 96b8dd9d16214b6cd9d8c8e84b3a375da4688108 git@github.com:dominikh/go-js-util
22+
./_vendor/src/honnef.co/go/js/dom 0a64a2db1425c1881d4ec762370250c65f44b85b git@github.com:dominikh/go-js-dom

_scripts/run_tests.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,16 @@ then
4848
exit 1
4949
fi
5050

51-
go test ./...
52-
51+
# we need to install first so the go/types-based reactVet tests
52+
# can import the myitcv.io/react/jsx package
5353
go install ./...
5454

55+
go test ./...
56+
5557
go vet ./...
5658

59+
reactVet ./...
60+
5761
immutableVet ./...
5862

5963
# we need to explicitly test the generated test files
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.out
2+
*.swp
3+
*.8
4+
*.6
5+
_obj
6+
_test*
7+
markdown
8+
tags
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
sudo: false
2+
language: go
3+
go:
4+
- 1.5.4
5+
- 1.6.2
6+
- tip
7+
matrix:
8+
include:
9+
- go: 1.2.2
10+
script:
11+
- go get -t -v ./...
12+
- go test -v -race ./...
13+
- go: 1.3.3
14+
script:
15+
- go get -t -v ./...
16+
- go test -v -race ./...
17+
- go: 1.4.3
18+
script:
19+
- go get -t -v ./...
20+
- go test -v -race ./...
21+
allow_failures:
22+
- go: tip
23+
fast_finish: true
24+
install:
25+
- # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
26+
script:
27+
- go get -t -v ./...
28+
- diff -u <(echo -n) <(gofmt -d -s .)
29+
- go tool vet .
30+
- go test -v -race ./...
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Blackfriday is distributed under the Simplified BSD License:
2+
3+
> Copyright © 2011 Russ Ross
4+
> All rights reserved.
5+
>
6+
> Redistribution and use in source and binary forms, with or without
7+
> modification, are permitted provided that the following conditions
8+
> are met:
9+
>
10+
> 1. Redistributions of source code must retain the above copyright
11+
> notice, this list of conditions and the following disclaimer.
12+
>
13+
> 2. Redistributions in binary form must reproduce the above
14+
> copyright notice, this list of conditions and the following
15+
> disclaimer in the documentation and/or other materials provided with
16+
> the distribution.
17+
>
18+
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19+
> "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20+
> LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21+
> FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22+
> COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23+
> INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24+
> BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25+
> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27+
> LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28+
> ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29+
> POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)