aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/systemjs/test/tests/testpkg
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-04-20 03:09:25 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-04-24 16:14:29 +0200
commit82f2b76e25a4a67e01ec67e5ebe39d14ad771ea8 (patch)
tree965f6eb89b84d65a62b49008fd972c004832ccd1 /thirdparty/systemjs/test/tests/testpkg
parente6e0cbc387c2a77b48e4065c229daa65bf1aa0fa (diff)
Reorganize module loading.
We now use webpack instead of SystemJS, effectively bundling modules into one file (plus commons chunks) for every entry point. This results in a much smaller extension size (almost half). Furthermore we use yarn/npm even for extension run-time dependencies. This relieves us from manually vendoring and building dependencies. It's also easier to understand for new developers familiar with node.
Diffstat (limited to 'thirdparty/systemjs/test/tests/testpkg')
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/depcache-test.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/dir/index.js2
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/dir/self-load.js2
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/dir2/index.json3
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/env-module-browser.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/env-module.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/index.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/interpolate.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/json.js4
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/json.json3
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/polate.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/self-load.js2
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/self.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/system.json28
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/test.ts1
15 files changed, 0 insertions, 52 deletions
diff --git a/thirdparty/systemjs/test/tests/testpkg/depcache-test.js b/thirdparty/systemjs/test/tests/testpkg/depcache-test.js
deleted file mode 100644
index d88fb1bde..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/depcache-test.js
+++ /dev/null
@@ -1 +0,0 @@
-(typeof window != 'undefined' ? window : global).depCacheTest = 'passed';
diff --git a/thirdparty/systemjs/test/tests/testpkg/dir/index.js b/thirdparty/systemjs/test/tests/testpkg/dir/index.js
deleted file mode 100644
index cef6cd572..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/dir/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./self-load.js');
-module.exports = 'dirindex'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/dir/self-load.js b/thirdparty/systemjs/test/tests/testpkg/dir/self-load.js
deleted file mode 100644
index c6a24bda6..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/dir/self-load.js
+++ /dev/null
@@ -1,2 +0,0 @@
-exports.a = require('..');
-exports.b = require('../'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/dir2/index.json b/thirdparty/systemjs/test/tests/testpkg/dir2/index.json
deleted file mode 100644
index 07bd1b14d..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/dir2/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "json": "index"
-} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/env-module-browser.js b/thirdparty/systemjs/test/tests/testpkg/env-module-browser.js
deleted file mode 100644
index e36fe2f1b..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/env-module-browser.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'browser'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/env-module.js b/thirdparty/systemjs/test/tests/testpkg/env-module.js
deleted file mode 100644
index 3b25aeee1..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/env-module.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'not browser'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/index.js b/thirdparty/systemjs/test/tests/testpkg/index.js
deleted file mode 100644
index 2fc521784..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/index.js
+++ /dev/null
@@ -1 +0,0 @@
-exports.prop = 'value'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/interpolate.js b/thirdparty/systemjs/test/tests/testpkg/interpolate.js
deleted file mode 100644
index d93d44f21..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/interpolate.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'interpolated!'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/json.js b/thirdparty/systemjs/test/tests/testpkg/json.js
deleted file mode 100644
index 278833a81..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/json.js
+++ /dev/null
@@ -1,4 +0,0 @@
-exports.translate = function(load) {
- load.metadata.format = 'cjs';
- return 'module.exports = ' + load.source;
-}; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/json.json b/thirdparty/systemjs/test/tests/testpkg/json.json
deleted file mode 100644
index 0acdfb14b..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/json.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "prop": "value"
-} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/polate.js b/thirdparty/systemjs/test/tests/testpkg/polate.js
deleted file mode 100644
index af567b6bf..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/polate.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'polate'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/self-load.js b/thirdparty/systemjs/test/tests/testpkg/self-load.js
deleted file mode 100644
index 1c5617d42..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/self-load.js
+++ /dev/null
@@ -1,2 +0,0 @@
-exports.a = require('.');
-exports.b = require('./'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/self.js b/thirdparty/systemjs/test/tests/testpkg/self.js
deleted file mode 100644
index c543a0725..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/self.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('testpkg/json'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/system.json b/thirdparty/systemjs/test/tests/testpkg/system.json
deleted file mode 100644
index b2092752c..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/system.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "README": "This is not encouraging a system.json, which is a bad idea.",
-
- "main": ["wrong-main"],
- "format": "cjs",
- "defaultExtension": "js",
- "meta": {
- "*.json": { "loader": "json" },
- "noext": { "alias": "./json.json" },
- "test.ts": true
- },
- "map": {
- "json": "./json.js",
- "./json": "./json.json",
- "./dir/": "./dir/index",
- "./dir2.js": "./dir2/index.json",
- "./dir/test": "global-test",
- "./env-module": {
- "browser": "./env-module-browser.js"
- },
- "p": "./polate.js",
- "./conditional1": "./interpolate.js",
- "./conditional2": "./inter#{p}.js"
- },
- "depCache": {
- "./dir2/index.json": ["../depcache-test"]
- }
-} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/test.ts b/thirdparty/systemjs/test/tests/testpkg/test.ts
deleted file mode 100644
index 4edba8a31..000000000
--- a/thirdparty/systemjs/test/tests/testpkg/test.ts
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'ts'; \ No newline at end of file