diff options
Diffstat (limited to 'thirdparty/systemjs/test/tests/testpkg')
15 files changed, 52 insertions, 0 deletions
diff --git a/thirdparty/systemjs/test/tests/testpkg/depcache-test.js b/thirdparty/systemjs/test/tests/testpkg/depcache-test.js new file mode 100644 index 000000000..d88fb1bde --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/depcache-test.js @@ -0,0 +1 @@ +(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 new file mode 100644 index 000000000..cef6cd572 --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/dir/index.js @@ -0,0 +1,2 @@ +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 new file mode 100644 index 000000000..c6a24bda6 --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/dir/self-load.js @@ -0,0 +1,2 @@ +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 new file mode 100644 index 000000000..07bd1b14d --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/dir2/index.json @@ -0,0 +1,3 @@ +{ + "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 new file mode 100644 index 000000000..e36fe2f1b --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/env-module-browser.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..3b25aeee1 --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/env-module.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..2fc521784 --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/index.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..d93d44f21 --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/interpolate.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..278833a81 --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/json.js @@ -0,0 +1,4 @@ +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 new file mode 100644 index 000000000..0acdfb14b --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/json.json @@ -0,0 +1,3 @@ +{ + "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 new file mode 100644 index 000000000..af567b6bf --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/polate.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..1c5617d42 --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/self-load.js @@ -0,0 +1,2 @@ +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 new file mode 100644 index 000000000..c543a0725 --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/self.js @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..b2092752c --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/system.json @@ -0,0 +1,28 @@ +{ + "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 new file mode 100644 index 000000000..4edba8a31 --- /dev/null +++ b/thirdparty/systemjs/test/tests/testpkg/test.ts @@ -0,0 +1 @@ +module.exports = 'ts';
\ No newline at end of file |