Skip to content

Commit a46b0d2

Browse files
committed
Remove example/build directory
1 parent f548f9c commit a46b0d2

13 files changed

+162
-150
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ compiled
99
.awcache
1010
.rpt2_cache
1111
docs
12+
13+
example/build
14+
.env

example/build/asset-manifest.json

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
2-
"main.css": "static/css/main.65027555.css",
3-
"main.css.map": "static/css/main.65027555.css.map",
4-
"main.js": "static/js/main.366dd24c.js",
5-
"main.js.map": "static/js/main.366dd24c.js.map"
2+
"main.css": "./static/css/main.da3333f7.chunk.css",
3+
"main.js": "./static/js/main.4da9f75f.chunk.js",
4+
"main.js.map": "./static/js/main.4da9f75f.chunk.js.map",
5+
"static/js/1.aa7f4760.chunk.js": "./static/js/1.aa7f4760.chunk.js",
6+
"static/js/1.aa7f4760.chunk.js.map": "./static/js/1.aa7f4760.chunk.js.map",
7+
"runtime~main.js": "./static/js/runtime~main.4a686d48.js",
8+
"runtime~main.js.map": "./static/js/runtime~main.4a686d48.js.map",
9+
"static/css/main.da3333f7.chunk.css.map": "./static/css/main.da3333f7.chunk.css.map",
10+
"index.html": "./index.html",
11+
"precache-manifest.b0cad9af3b9668b9161fce633715c097.js": "./precache-manifest.b0cad9af3b9668b9161fce633715c097.js",
12+
"service-worker.js": "./service-worker.js"
613
}

example/build/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/favicon.ico"><title>React App</title><link href="/static/css/main.65027555.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.366dd24c.js"></script></body></html>
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico"><title>React App</title><link href="./static/css/main.da3333f7.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(l){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],f=0,i=[];f<n.length;f++)t=n[f],p[t]&&i.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(l[r]=o[r]);for(s&&s(e);i.length;)i.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var t={},p={2:0},c=[];function f(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return l[e].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=l,f.c=t,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(r,e){if(1&e&&(r=f(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)f.d(t,n,function(e){return r[e]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="./";var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="./static/js/1.aa7f4760.chunk.js"></script><script src="./static/js/main.4da9f75f.chunk.js"></script></body></html>

example/build/service-worker.js

+35-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,35 @@
1-
"use strict";var precacheConfig=[["/index.html","85de9bddeac1c315cec510d0cb21f539"],["/static/css/main.65027555.css","41e5e45b9b5d9ecaa09b72c11eed3386"],["/static/js/main.366dd24c.js","40ed02d6c12029a4beeaf48567535369"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var n=new URL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(t){return t.redirected?("body"in t?Promise.resolve(t.body):t.blob()).then(function(e){return new Response(e,{headers:t.headers,status:t.status,statusText:t.statusText})}):Promise.resolve(t)},createCacheKey=function(e,t,n,r){var a=new URL(e);return r&&a.pathname.match(r)||(a.search+=(a.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var n=new URL(t).pathname;return e.some(function(e){return n.match(e)})},stripIgnoredUrlParameters=function(e,n){var t=new URL(e);return t.hash="",t.search=t.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(t){return n.every(function(e){return!e.test(t[0])})}).map(function(e){return e.join("=")}).join("&"),t.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],n=e[1],r=new URL(t,self.location),a=createCacheKey(r,hashParamName,n,/\.\w{8}\./);return[r.toString(),a]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(r){return setOfCachedUrls(r).then(function(n){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(t){if(!n.has(t)){var e=new Request(t,{credentials:"same-origin"});return fetch(e).then(function(e){if(!e.ok)throw new Error("Request for "+t+" returned a response with status "+e.status);return cleanResponse(e).then(function(e){return r.put(t,e)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var n=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(t){return t.keys().then(function(e){return Promise.all(e.map(function(e){if(!n.has(e.url))return t.delete(e)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(t){if("GET"===t.request.method){var e,n=stripIgnoredUrlParameters(t.request.url,ignoreUrlParametersMatching),r="index.html";(e=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,r),e=urlsToCacheKeys.has(n));var a="/index.html";!e&&"navigate"===t.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],t.request.url)&&(n=new URL(a,self.location).toString(),e=urlsToCacheKeys.has(n)),e&&t.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(n)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(e){return console.warn('Couldn\'t serve response for "%s" from cache: %O',t.request.url,e),fetch(t.request)}))}});
1+
/**
2+
* Welcome to your Workbox-powered service worker!
3+
*
4+
* You'll need to register this file in your web app and you should
5+
* disable HTTP caching for this file too.
6+
* See https://goo.gl/nhQhGp
7+
*
8+
* The rest of the code is auto-generated. Please don't update this file
9+
* directly; instead, make changes to your Workbox build configuration
10+
* and re-run your build process.
11+
* See https://goo.gl/2aRDsh
12+
*/
13+
14+
importScripts("./workbox-v3.6.3/workbox-sw.js");
15+
workbox.setConfig({modulePathPrefix: "./workbox-v3.6.3"});
16+
17+
importScripts(
18+
"./precache-manifest.b0cad9af3b9668b9161fce633715c097.js"
19+
);
20+
21+
workbox.clientsClaim();
22+
23+
/**
24+
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
25+
* requests for URLs in the manifest.
26+
* See https://goo.gl/S9QRab
27+
*/
28+
self.__precacheManifest = [].concat(self.__precacheManifest || []);
29+
workbox.precaching.suppressWarnings();
30+
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
31+
32+
workbox.routing.registerNavigationRoute("./index.html", {
33+
34+
blacklist: [/^\/_/,/\/[^/]+\.[^/]+$/],
35+
});

example/build/static/css/main.65027555.css

-2
This file was deleted.

example/build/static/css/main.65027555.css.map

-1
This file was deleted.

example/build/static/js/main.366dd24c.js

-2
This file was deleted.

example/build/static/js/main.366dd24c.js.map

-1
This file was deleted.

example/build/static/js/main.8433151d.js

-2
This file was deleted.

example/build/static/js/main.8433151d.js.map

-1
This file was deleted.

package.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,11 @@
2020
},
2121
"scripts": {
2222
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
23-
"prebuild": "rimraf dist",
24-
"build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
23+
"build": "tsc --module commonjs && rollup -c rollup.config.ts ",
2524
"start": "rollup -c rollup.config.ts -w",
2625
"test": "jest --coverage",
2726
"test:watch": "jest --coverage --watch",
28-
"test:prod": "npm run lint && npm run test -- --no-cache",
29-
"deploy-docs": "ts-node tools/gh-pages-publish",
3027
"emoji-build": "ts-node tools/emoji-script",
31-
"report-coverage": "cat ./coverage/lcov.info | coveralls",
32-
"commit": "git-cz",
3328
"semantic-release": "semantic-release",
3429
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
3530
"precommit": "lint-staged",
@@ -97,7 +92,7 @@
9792
"cz-conventional-changelog": "^2.1.0",
9893
"emoji-datasource-apple": "4.1.0",
9994
"emoji-datasource-google": "4.1.0",
100-
"gh-pages": "^2.0.1",
95+
"gh-pages": "^2.1.1",
10196
"husky": "^1.0.1",
10297
"jest": "^23.6.0",
10398
"jest-config": "^23.6.0",

tools/semantic-release-prepare.ts

-54
This file was deleted.

0 commit comments

Comments
 (0)