style Dashboard

This commit is contained in:
Lieu Le
2019-09-13 11:27:52 +07:00
parent 558fb07261
commit 07322c9084
17151 changed files with 1686347 additions and 103 deletions

32
node_modules/in-publish/.npmignore generated vendored Executable file
View File

@@ -0,0 +1,32 @@
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules
# Users Environment Variables
.lock-wscript
# Editr files
*~
.#*

14
node_modules/in-publish/LICENSE generated vendored Executable file
View File

@@ -0,0 +1,14 @@
Copyright (c) 2015, Rebecca Turner <me@re-becca.org>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

50
node_modules/in-publish/README.md generated vendored Executable file
View File

@@ -0,0 +1,50 @@
in-publish
==========
Detect if we were run as a result of `npm publish`. This is intended to allow you to
easily have prepublish lifecycle scripts that don't run when you run `npm install`.
```
$ npm install --save in-publish
in-publish@1.0.0 node_modules/in-publish
```
Then edit your package.json to have:
```json
"scripts": {
"prepublish": "in-publish && thing-I-dont-want-on-dev-install || not-in-publish"
}
```
Now when you run:
```
$ npm install
```
Then `thing-I-dont-want-on-dev-install` won't be run, but...
```
$ npm publish
```
And `thing-I-dont-want-on-dev-install` will be run.
It's worth noting that the `prepublish` lifecycle is _ALSO_ called when you build a tarball, so:
```
$ npm pack
```
Will call your `prepublish` lifecycle, but with the examplea above,
`thing-I-dont-want-on-dev-install` won't be run.
If you want this, you can use another helper included here:
```json
"scripts": {
"prepublish": "not-in-install && thing-I-dont-want-on-dev-install || in-install"
}
```
The above will run your `thing-I-dont-want-on-dev-install` on `publish` and
on `pack` but not on `install`.

40
node_modules/in-publish/README.md~ generated vendored Executable file
View File

@@ -0,0 +1,40 @@
in-publish
==========
Detect if we were run as a result of `npm publish`. This is intended to allow you to
easily have prepublish lifecycle scripts that don't run when you run `npm install`.
```
$ npm install --save in-publish
in-publish@1.0.0 node_modules/in-publish
```
Then edit your package.json to have:
```json
"scripts": {
"prepublish": "in-publish && thing-I-dont-want-on-dev-install || in-install"
}
```
Now when you run:
```
$ npm install
```
Then `thing-I-dont-want-on-dev-install` won't be run, but...
```
$ npm publish
```
And `thing-I-dont-want-on-dev-install` will be run.
Caveat Emptor
=============
This detects that its running as a part of publish command in a terrible,
terrible way. NPM dumps out its config object blindly into the environment
prior to running commands. This includes the command line it was invoked
with. This module determines if its being run as a result of publish by
looking at that env var. This is not a part of the documented npm interface
and so it is not guarenteed to be stable.

4
node_modules/in-publish/in-install.js generated vendored Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env node
'use strict'
var inInstall = require('./index.js').inInstall
process.exit(inInstall() ? 0 : 1)

4
node_modules/in-publish/in-publish.js generated vendored Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env node
'use strict'
var inPublish = require('./index.js').inPublish
process.exit(inPublish() ? 0 : 1)

28
node_modules/in-publish/index.js generated vendored Executable file
View File

@@ -0,0 +1,28 @@
'use strict'
function inCommand (cmd) {
try {
var npm_config_argv = JSON.parse(process.env['npm_config_argv'])
} catch (e) {
return false
}
if (typeof npm_config_argv !== 'object') process.exit(1)
if (!npm_config_argv.cooked) process.exit(1)
if (!npm_config_argv.cooked instanceof Array) process.exit(1)
var V
while ((V = npm_config_argv.cooked.shift()) !== undefined) {
if (/^-/.test(V)) continue
if (cmd.test(V)) return true
return false
}
return false
}
exports.inPublish = function () {
return inCommand(/^pu(b(l(i(sh?)?)?)?)?$/)
}
exports.inInstall = function () {
return inCommand(/^i(n(s(t(a(ll?)?)?)?)?)?$/)
}

4
node_modules/in-publish/not-in-install.js generated vendored Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env node
'use strict'
var inInstall = require('./index.js').inInstall
process.exit(inInstall() ? 1 : 0)

4
node_modules/in-publish/not-in-publish.js generated vendored Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env node
'use strict'
var inPublish = require('./index.js').inPublish
process.exit(inPublish() ? 1 : 0)

54
node_modules/in-publish/package.json generated vendored Executable file
View File

@@ -0,0 +1,54 @@
{
"_args": [
[
"in-publish@2.0.0",
"/Applications/XAMPP/xamppfiles/htdocs/wordpress/latehome"
]
],
"_development": true,
"_from": "in-publish@2.0.0",
"_id": "in-publish@2.0.0",
"_inBundle": false,
"_integrity": "sha1-4g/146KvwmkDILbcVSaCqcf631E=",
"_location": "/in-publish",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "in-publish@2.0.0",
"name": "in-publish",
"escapedName": "in-publish",
"rawSpec": "2.0.0",
"saveSpec": null,
"fetchSpec": "2.0.0"
},
"_requiredBy": [
"/node-sass"
],
"_resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz",
"_spec": "2.0.0",
"_where": "/Applications/XAMPP/xamppfiles/htdocs/wordpress/latehome",
"author": {
"name": "Rebecca Turner",
"email": "me@re-becca.org"
},
"bin": {
"in-publish": "in-publish.js",
"in-install": "in-install.js",
"not-in-publish": "not-in-publish.js",
"not-in-install": "not-in-install.js"
},
"bugs": {
"url": "https://github.com/iarna/in-publish/issues"
},
"description": "Detect if we were run as a result of `npm publish`",
"homepage": "https://github.com/iarna/in-publish",
"license": "ISC",
"main": "index.js",
"name": "in-publish",
"repository": {
"type": "git",
"url": "git+https://github.com/iarna/in-publish.git"
},
"version": "2.0.0"
}

10
node_modules/in-publish/test/package.json generated vendored Executable file
View File

@@ -0,0 +1,10 @@
{
"name": "test",
"version": "1.0.0",
"devDependencies": {
"in-publish": "file:///Users/rebecca/code/in-publish"
},
"scripts": {
"prepublish": "in-publish && exit 1 || not-in-publish"
}
}