Update default React version to 16

This commit is contained in:
Juho Teperi 2017-08-03 14:36:47 +03:00
parent c65d1d80a0
commit 05af403f10
24 changed files with 7 additions and 2109 deletions

View File

@ -10,7 +10,6 @@ dependencies:
- ./prepare-tests.sh
cache_directories:
- test-environments/browser-node/node_modules
- test-environments/browser-node-react-16/node_modules
test:
override:
- ./run-tests.sh

View File

@ -8,9 +8,9 @@
;; If :npm-deps enabled, these are used only for externs.
;; Without direct react dependency, other packages,
;; like react-leaflet might have closer dependency to a other version.
[cljsjs/react "15.6.2-0"]
[cljsjs/react-dom "15.6.2-0"]
[cljsjs/react-dom-server "15.6.2-0"]
[cljsjs/react "16.1.1-0"]
[cljsjs/react-dom "16.1.1-0"]
[cljsjs/react-dom-server "16.1.1-0"]
[cljsjs/create-react-class "15.6.2-0"]]
:plugins [[lein-cljsbuild "1.1.7"]
@ -24,11 +24,7 @@
:exclude clojure.string
:source-paths ["src"]}
:profiles {:react-16 {:dependencies [[cljsjs/react "16.1.1-0"]
[cljsjs/react-dom "16.1.1-0"]
[cljsjs/react-dom-server "16.1.1-0"]]}
:dev {:dependencies [[figwheel "0.5.14"]
:profiles {:dev {:dependencies [[figwheel "0.5.14"]
[doo "0.1.8"]
[cljsjs/prop-types "15.6.0-0"]]
:source-paths ["demo" "examples/todomvc/src" "examples/simple/src" "examples/geometry/src"]

View File

@ -1 +0,0 @@
../../demo

View File

@ -1 +0,0 @@
../../examples

File diff suppressed because it is too large Load Diff

View File

@ -1,15 +0,0 @@
{
"private": true,
"dependencies": {
"@cljs-oss/module-deps": "1.1.1",
"create-react-class": "15.6.2",
"react": "16.1.1",
"react-dom": "16.1.1"
},
"devDependencies": {
"karma": "1.7.1",
"karma-chrome-launcher": "2.2.0",
"karma-cljs-test": "0.1.0",
"karma-junit-reporter": "1.2.0"
}
}

View File

@ -1 +0,0 @@
../../project.clj

View File

@ -1 +0,0 @@
../../site

View File

@ -1 +0,0 @@
../../src

View File

@ -1 +0,0 @@
../../test

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -ex
lein do clean, doo chrome-headless test once
test -f target/cljsbuild/test/out/node_modules/react/index.js

View File

@ -4,8 +4,8 @@
"@cljs-oss/module-deps": "1.1.1",
"create-react-class": "15.6.2",
"prop-types": "15.6.0",
"react": "15.6.2",
"react-dom": "15.6.2"
"react": "16.1.1",
"react-dom": "16.1.1"
},
"devDependencies": {
"karma": "1.7.1",

View File

@ -1,4 +1,4 @@
#!/bin/bash
set -ex
lein do clean, doo chrome-headless test once
test -f target/cljsbuild/test/out/node_modules/react/react.js
test -f target/cljsbuild/test/out/node_modules/react/index.js

View File

@ -1 +0,0 @@
../../demo

View File

@ -1 +0,0 @@
../../examples

View File

@ -1,3 +0,0 @@
#!/bin/bash
set -ex
lein with-profile react-16 figwheel

View File

@ -1 +0,0 @@
../browser-umd/node_modules

View File

@ -1 +0,0 @@
../browser-umd/package-lock.json

View File

@ -1 +0,0 @@
../browser-umd/package.json

View File

@ -1 +0,0 @@
../../project.clj

View File

@ -1 +0,0 @@
../../site

View File

@ -1 +0,0 @@
../../src

View File

@ -1 +0,0 @@
../../test

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -ex
lein with-profile dev,react-16 do clean, doo chrome-headless test once
test -f target/cljsbuild/test/out/cljsjs/react/development/react.inc.js