178 lines
7.2 KiB
JSON
178 lines
7.2 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "fbjs@^0.8.16",
|
|
"scope": null,
|
|
"escapedName": "fbjs",
|
|
"name": "fbjs",
|
|
"rawSpec": "^0.8.16",
|
|
"spec": ">=0.8.16 <0.9.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/prop-types"
|
|
]
|
|
],
|
|
"_from": "fbjs@>=0.8.16 <0.9.0",
|
|
"_id": "fbjs@0.8.16",
|
|
"_inCache": true,
|
|
"_location": "/fbjs",
|
|
"_nodeVersion": "4.8.4",
|
|
"_npmOperationalInternal": {
|
|
"host": "s3://npm-registry-packages",
|
|
"tmp": "tmp/fbjs-0.8.16.tgz_1506381457981_0.8424494136124849"
|
|
},
|
|
"_npmUser": {
|
|
"name": "zpao",
|
|
"email": "paul@oshannessy.com"
|
|
},
|
|
"_npmVersion": "2.15.11",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "fbjs@^0.8.16",
|
|
"scope": null,
|
|
"escapedName": "fbjs",
|
|
"name": "fbjs",
|
|
"rawSpec": "^0.8.16",
|
|
"spec": ">=0.8.16 <0.9.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/prop-types",
|
|
"/react"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.16.tgz",
|
|
"_shasum": "5e67432f550dc41b572bf55847b8aca64e5337db",
|
|
"_shrinkwrap": null,
|
|
"_spec": "fbjs@^0.8.16",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/prop-types",
|
|
"browserify": {
|
|
"transform": [
|
|
"loose-envify"
|
|
]
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/facebook/fbjs/issues"
|
|
},
|
|
"dependencies": {
|
|
"core-js": "^1.0.0",
|
|
"isomorphic-fetch": "^2.1.1",
|
|
"loose-envify": "^1.0.0",
|
|
"object-assign": "^4.1.0",
|
|
"promise": "^7.1.1",
|
|
"setimmediate": "^1.0.5",
|
|
"ua-parser-js": "^0.7.9"
|
|
},
|
|
"description": "A collection of utility libraries used by other Facebook JS projects",
|
|
"devDependencies": {
|
|
"babel-eslint": "^6.0.3",
|
|
"babel-preset-fbjs": "file:babel-preset",
|
|
"del": "^2.2.0",
|
|
"eslint": "^2.8.0",
|
|
"fbjs-scripts": "file:scripts",
|
|
"flow-bin": "^0.38.0",
|
|
"gulp": "^3.9.1",
|
|
"gulp-babel": "^6.1.2",
|
|
"gulp-flatten": "^0.2.0",
|
|
"gulp-rename": "^1.2.2",
|
|
"immutable": "^3.7.6",
|
|
"jest-cli": "^0.9.2",
|
|
"merge-stream": "^1.0.0",
|
|
"run-sequence": "^1.1.5"
|
|
},
|
|
"devEngines": {
|
|
"node": ">=4.x",
|
|
"npm": ">=2.x"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "5e67432f550dc41b572bf55847b8aca64e5337db",
|
|
"tarball": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.16.tgz"
|
|
},
|
|
"files": [
|
|
"LICENSE",
|
|
"README.md",
|
|
"flow/",
|
|
"index.js",
|
|
"lib/",
|
|
"module-map.json"
|
|
],
|
|
"gitHead": "0a02fac537bf5e55fd8cd908af650454523d6b8c",
|
|
"homepage": "https://github.com/facebook/fbjs#readme",
|
|
"jest": {
|
|
"modulePathIgnorePatterns": [
|
|
"/lib/",
|
|
"/node_modules/"
|
|
],
|
|
"persistModuleRegistryBetweenSpecs": true,
|
|
"preprocessorIgnorePatterns": [
|
|
"/node_modules/"
|
|
],
|
|
"rootDir": "",
|
|
"scriptPreprocessor": "node_modules/fbjs-scripts/jest/preprocessor.js",
|
|
"setupEnvScriptFile": "node_modules/fbjs-scripts/jest/environment.js",
|
|
"testPathDirs": [
|
|
"<rootDir>/src"
|
|
],
|
|
"unmockedModulePathPatterns": [
|
|
"<rootDir>/node_modules/",
|
|
"<rootDir>/src/(?!(__forks__/fetch.js$|fetch/))"
|
|
]
|
|
},
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "sophiebits",
|
|
"email": "npm2@sophiebits.com"
|
|
},
|
|
{
|
|
"name": "wincent",
|
|
"email": "greg@hurrell.net"
|
|
},
|
|
{
|
|
"name": "davidaurelio",
|
|
"email": "dev@david-aurelio.com"
|
|
},
|
|
{
|
|
"name": "brianvaughn",
|
|
"email": "briandavidvaughn@gmail.com"
|
|
},
|
|
{
|
|
"name": "josephsavona",
|
|
"email": "joesavona@fb.com"
|
|
},
|
|
{
|
|
"name": "yungsters",
|
|
"email": "yungsters@gmail.com"
|
|
},
|
|
{
|
|
"name": "fb",
|
|
"email": "opensource+npm@fb.com"
|
|
},
|
|
{
|
|
"name": "zpao",
|
|
"email": "paul@oshannessy.com"
|
|
}
|
|
],
|
|
"name": "fbjs",
|
|
"optionalDependencies": {},
|
|
"readme": "# FBJS\n\n## Purpose\n\nTo make it easier for Facebook to share and consume our own JavaScript. Primarily this will allow us to ship code without worrying too much about where it lives, keeping with the spirit of `@providesModule` but working in the broader JavaScript ecosystem.\n\n**Note:** If you are consuming the code here and you are not also a Facebook project, be prepared for a bad time. APIs may appear or disappear and we may not follow semver strictly, though we will do our best to. This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. In order for us to move fast and ship projects like React and Relay, we've made the decision to not support everybody. We probably won't take your feature requests unless they align with our needs. There will be overlap in functionality here and in other open source projects.\n\n## Usage\n\nAny `@providesModule` modules that are used by your project should be added to `src/`. They will be built and added to `module-map.json`. This file will contain a map from `@providesModule` name to what will be published as `fbjs`. The `module-map.json` file can then be consumed in your own project, along with the [rewrite-modules](https://github.com/facebook/fbjs/blob/master/babel-preset/plugins/rewrite-modules.js) Babel plugin (which we'll publish with this), to rewrite requires in your own project. Then, just make sure `fbjs` is a dependency in your `package.json` and your package will consume the shared code.\n\n```js\n// Before transform\nconst emptyFunction = require('emptyFunction');\n// After transform\nconst emptyFunction = require('fbjs/lib/emptyFunction');\n```\n\nSee React for an example of this. *Coming soon!*\n\n## Building\n\nIt's as easy as just running gulp. This assumes you've also done `npm install -g gulp`.\n\n```sh\ngulp\n```\n\nAlternatively `npm run build` will also work.\n\n### Layout\n\nRight now these packages represent a subset of packages that we use internally at Facebook. Mostly these are support libraries used when shipping larger libraries, like React and Relay, or products. Each of these packages is in its own directory under `src/`.\n\n### Process\n\nSince we use `@providesModule`, we need to rewrite requires to be relative. Thanks to `@providesModule` requiring global uniqueness, we can do this easily. Eventually we'll try to make this part of the process go away by making more projects use CommonJS.\n\n\n## TODO\n\n- Flow: Ideally we'd ship our original files with type annotations, however that's not doable right now. We have a couple options:\n - Make sure our transpilation step converts inline type annotations to the comment format.\n - Make our build process also build Flow interface files which we can ship to npm.\n- Split into multiple packages. This will be better for more concise versioning, otherwise we'll likely just be shipping lots of major versions.\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/facebook/fbjs.git"
|
|
},
|
|
"scripts": {
|
|
"build": "gulp build",
|
|
"lint": "eslint .",
|
|
"postbuild": "node scripts/node/check-lib-requires.js lib",
|
|
"prepublish": "npm run build",
|
|
"pretest": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json",
|
|
"test": "NODE_ENV=test jest",
|
|
"test-babel-presets": "cd babel-preset && npm install && npm test",
|
|
"typecheck": "flow check src"
|
|
},
|
|
"version": "0.8.16"
|
|
}
|