draft: refactor project so it sits on top of a standalone app

This commit is contained in:
2020-05-11 15:34:47 +02:00
parent a9ee5acc1c
commit f97e8455fc
13068 changed files with 1735502 additions and 866 deletions
+23
View File
@@ -0,0 +1,23 @@
Copyright (c) 2009-2020 Jeremy Ashkenas, DocumentCloud and Investigative
Reporters & Editors
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
+28
View File
@@ -0,0 +1,28 @@
__
/\ \ __
__ __ ___ \_\ \ __ _ __ ____ ___ ___ _ __ __ /\_\ ____
/\ \/\ \ /' _ `\ /'_ \ /'__`\/\ __\/ ,__\ / ___\ / __`\/\ __\/'__`\ \/\ \ /',__\
\ \ \_\ \/\ \/\ \/\ \ \ \/\ __/\ \ \//\__, `\/\ \__//\ \ \ \ \ \//\ __/ __ \ \ \/\__, `\
\ \____/\ \_\ \_\ \___,_\ \____\\ \_\\/\____/\ \____\ \____/\ \_\\ \____\/\_\ _\ \ \/\____/
\/___/ \/_/\/_/\/__,_ /\/____/ \/_/ \/___/ \/____/\/___/ \/_/ \/____/\/_//\ \_\ \/___/
\ \____/
\/___/
Underscore.js is a utility-belt library for JavaScript that provides
support for the usual functional suspects (each, map, reduce, filter...)
without extending any core JavaScript objects.
For Docs, License, Tests, and pre-packed downloads, see:
https://underscorejs.org
For support and questions, please use
[the gitter channel](https://gitter.im/jashkenas/underscore)
or [stackoverflow](https://stackoverflow.com/search?q=underscore.js)
Underscore is an open-sourced component of DocumentCloud:
https://github.com/documentcloud
Many thanks to our contributors:
https://github.com/jashkenas/underscore/contributors
This project adheres to a [code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
+12
View File
@@ -0,0 +1,12 @@
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
},
"plugins": [
"import"
],
"extends": [
"plugin:import/errors"
]
}
+2
View File
@@ -0,0 +1,2 @@
export { default } from './index-default.js';
export * from './index.js';
+9
View File
@@ -0,0 +1,9 @@
import * as allExports from './index.js';
import { mixin } from './index.js';
// Add all of the Underscore functions to the wrapper object.
var _ = mixin(allExports);
// Legacy Node.js API
_._ = _;
// Export the Underscore API.
export default _;
File diff suppressed because it is too large Load Diff
+99
View File
@@ -0,0 +1,99 @@
{
"_from": "underscore",
"_id": "underscore@1.10.2",
"_inBundle": false,
"_integrity": "sha512-N4P+Q/BuyuEKFJ43B9gYuOj4TQUHXX+j2FqguVOpjkssLUUrnJofCcBccJSCoeturDoZU6GorDTHSvUDlSQbTg==",
"_location": "/underscore",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "underscore",
"name": "underscore",
"escapedName": "underscore",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.10.2.tgz",
"_shasum": "73d6aa3668f3188e4adb0f1943bd12cfd7efaaaf",
"_spec": "underscore",
"_where": "O:\\zero\\zero.Web",
"author": {
"name": "Jeremy Ashkenas",
"email": "jeremy@documentcloud.org"
},
"bugs": {
"url": "https://github.com/jashkenas/underscore/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "JavaScript's functional programming helper library.",
"devDependencies": {
"coveralls": "^2.11.2",
"docco": "*",
"eslint": "^6.8.0",
"eslint-plugin-import": "^2.20.1",
"gzip-size-cli": "^1.0.0",
"husky": "^4.2.3",
"karma": "^0.13.13",
"karma-qunit": "~2.0.1",
"karma-sauce-launcher": "^1.2.0",
"nyc": "^2.1.3",
"pretty-bytes-cli": "^1.0.0",
"qunit": "^2.6.0",
"qunit-cli": "~0.2.0",
"rollup": "^0.59.4",
"uglify-js": "3.3.21"
},
"files": [
"underscore.js",
"underscore.js.map",
"underscore-min.js",
"underscore-min.js.map",
"modules/"
],
"homepage": "https://underscorejs.org",
"husky": {
"hooks": {
"pre-commit": "npm run bundle && git add underscore.js underscore.js.map",
"post-commit": "git reset underscore.js underscore.js.map"
}
},
"keywords": [
"util",
"functional",
"server",
"client",
"browser"
],
"license": "MIT",
"main": "underscore.js",
"module": "modules/index-all.js",
"name": "underscore",
"repository": {
"type": "git",
"url": "git://github.com/jashkenas/underscore.git"
},
"scripts": {
"build": "npm run bundle && npm run minify -- --source-map content=underscore.js.map --source-map-url \" \" -o underscore-min.js",
"bundle": "rollup --config && eslint underscore.js",
"bundle-treeshake": "cd test-treeshake && npx rollup@latest --config",
"coverage": "nyc npm run test-node && nyc report",
"coveralls": "nyc npm run test-node && nyc report --reporter=text-lcov | coveralls",
"doc": "cd docs && rollup -c && docco -o . underscore.js",
"lint": "eslint modules/*.js test/*.js",
"minify": "uglifyjs underscore.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
"prepare-tests": "npm run bundle && npm run bundle-treeshake",
"prepublishOnly": "npm run build && npm run doc",
"test": "npm run lint && npm run test-node",
"test-browser": "npm run prepare-tests && npm i karma-phantomjs-launcher && karma start",
"test-node": "npm run prepare-tests && qunit-cli test/*.js",
"weight": "npm run bundle && npm run minify | gzip-size | pretty-bytes"
},
"version": "1.10.2"
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1827
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long