diff --git a/examples/playground/index.html b/examples/playground/index.html new file mode 100644 index 000000000..e3cd6231f --- /dev/null +++ b/examples/playground/index.html @@ -0,0 +1,85 @@ + + + + + + + Loading... + + + + + + + + + + + + + + + + + + + + + + +
+
+
+

+ Loading.. +

+ +

transloadit-js-client

+

+ With this file we can easily test the built js client locally (via npm run preview) + and online. +

+ +
+ Loading.. +
+ +
+
+
+ + + + + + + + + + + + + + + diff --git a/examples/playground/package.json b/examples/playground/package.json new file mode 100644 index 000000000..0ccca07f9 --- /dev/null +++ b/examples/playground/package.json @@ -0,0 +1,12 @@ +{ + "name": "playground", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "watch": "../../node_modules/.bin/watchify src/js/app.js -o static/js/app.js", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC" +} diff --git a/examples/playground/src/js/app.js b/examples/playground/src/js/app.js new file mode 100644 index 000000000..e69de29bb diff --git a/build/css/normalize.css b/examples/playground/static/css/normalize.css similarity index 100% rename from build/css/normalize.css rename to examples/playground/static/css/normalize.css diff --git a/build/css/skeleton.css b/examples/playground/static/css/skeleton.css similarity index 100% rename from build/css/skeleton.css rename to examples/playground/static/css/skeleton.css diff --git a/examples/playground/static/css/style.css b/examples/playground/static/css/style.css new file mode 100644 index 000000000..e69de29bb diff --git a/build/images/favicon.png b/examples/playground/static/images/favicon.png similarity index 100% rename from build/images/favicon.png rename to examples/playground/static/images/favicon.png diff --git a/examples/playground/static/js/app.js b/examples/playground/static/js/app.js new file mode 100644 index 000000000..50d0216d8 --- /dev/null +++ b/examples/playground/static/js/app.js @@ -0,0 +1,3 @@ +(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o