diff options
Diffstat (limited to 'web/src/vendor/react-router/scripts')
-rwxr-xr-x | web/src/vendor/react-router/scripts/build | 4 | ||||
-rwxr-xr-x | web/src/vendor/react-router/scripts/build-examples | 18 | ||||
-rwxr-xr-x | web/src/vendor/react-router/scripts/preview-release | 2 | ||||
-rwxr-xr-x | web/src/vendor/react-router/scripts/release | 3 | ||||
-rwxr-xr-x | web/src/vendor/react-router/scripts/test | 2 |
5 files changed, 29 insertions, 0 deletions
diff --git a/web/src/vendor/react-router/scripts/build b/web/src/vendor/react-router/scripts/build new file mode 100755 index 00000000..6ab34e2b --- /dev/null +++ b/web/src/vendor/react-router/scripts/build @@ -0,0 +1,4 @@ +#!/bin/sh +mkdir -p dist +NODE_ENV=production node_modules/.bin/browserify modules/index.js -t browserify-shim -t envify --detect-globals false -s ReactRouter > dist/react-router.js +node_modules/.bin/uglifyjs dist/react-router.js --compress warnings=false > dist/react-router.min.js diff --git a/web/src/vendor/react-router/scripts/build-examples b/web/src/vendor/react-router/scripts/build-examples new file mode 100755 index 00000000..122b5471 --- /dev/null +++ b/web/src/vendor/react-router/scripts/build-examples @@ -0,0 +1,18 @@ +#!/bin/sh +BROWSERIFY="node_modules/.bin/browserify --debug --detect-globals false" +BUNDLE_EXAMPLE="$BROWSERIFY -t reactify -x react -x react/lib/ReactCSSTransitionGroup -x when -x react-router" + +NODE_ENV=development $BROWSERIFY -t envify -r react -r react/lib/ReactCSSTransitionGroup -r when -r ./modules:react-router > examples/global-bundle.js + +$BUNDLE_EXAMPLE examples/animations/app.js > examples/animations/app-bundle.js +$BUNDLE_EXAMPLE examples/auth-flow/app.js > examples/auth-flow/app-bundle.js +$BUNDLE_EXAMPLE examples/data-flow/app.js > examples/data-flow/app-bundle.js +$BUNDLE_EXAMPLE examples/dynamic-segments/app.js > examples/dynamic-segments/app-bundle.js +$BUNDLE_EXAMPLE examples/master-detail/app.js > examples/master-detail/app-bundle.js +# $BUNDLE_EXAMPLE examples/partial-app-loading/app.js > examples/partial-app-loading/app-bundle.js +# $BUNDLE_EXAMPLE examples/partial-app-loading/dashboard.js > examples/partial-app-loading/dashboard-bundle.js +# $BUNDLE_EXAMPLE examples/partial-app-loading/inbox.js > examples/partial-app-loading/inbox-bundle.js +$BUNDLE_EXAMPLE examples/query-params/app.js > examples/query-params/app-bundle.js +$BUNDLE_EXAMPLE examples/shared-root/app.js > examples/shared-root/app-bundle.js +$BUNDLE_EXAMPLE examples/simple-master-detail/app.js > examples/simple-master-detail/app-bundle.js +$BUNDLE_EXAMPLE examples/transitions/app.js > examples/transitions/app-bundle.js diff --git a/web/src/vendor/react-router/scripts/preview-release b/web/src/vendor/react-router/scripts/preview-release new file mode 100755 index 00000000..40ac20e2 --- /dev/null +++ b/web/src/vendor/react-router/scripts/preview-release @@ -0,0 +1,2 @@ +#!/bin/sh +node_modules/rf-release/node_modules/.bin/changelog -t preview -s diff --git a/web/src/vendor/react-router/scripts/release b/web/src/vendor/react-router/scripts/release new file mode 100755 index 00000000..b839eb36 --- /dev/null +++ b/web/src/vendor/react-router/scripts/release @@ -0,0 +1,3 @@ +#!/bin/sh +scripts/build +node_modules/.bin/release diff --git a/web/src/vendor/react-router/scripts/test b/web/src/vendor/react-router/scripts/test new file mode 100755 index 00000000..61133350 --- /dev/null +++ b/web/src/vendor/react-router/scripts/test @@ -0,0 +1,2 @@ +#!/bin/sh +NODE_ENV=test node_modules/.bin/karma start "$@" |