added bower, gulp

This commit is contained in:
Bachir Soussi Chiadmi
2017-01-22 15:18:08 +01:00
parent 4c9b35f2d1
commit ac58a24f5c
12657 changed files with 1359874 additions and 579 deletions
@@ -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
*~
.#*
@@ -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.
@@ -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`.
@@ -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
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env node
'use strict'
var inInstall = require('./index.js').inInstall
process.exit(inInstall() ? 0 : 1)
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env node
'use strict'
var inPublish = require('./index.js').inPublish
process.exit(inPublish() ? 0 : 1)
@@ -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
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env node
'use strict'
var inInstall = require('./index.js').inInstall
process.exit(inInstall() ? 1 : 0)
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env node
'use strict'
var inPublish = require('./index.js').inPublish
process.exit(inPublish() ? 1 : 0)
@@ -0,0 +1,84 @@
{
"_args": [
[
{
"raw": "in-publish@^2.0.0",
"scope": null,
"escapedName": "in-publish",
"name": "in-publish",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"/mnt/Data/bach/Sites/clameurs.org/sites/all/themes/figureslibres/clameurs/node_modules/node-sass"
]
],
"_from": "in-publish@>=2.0.0 <3.0.0",
"_id": "in-publish@2.0.0",
"_inCache": true,
"_location": "/in-publish",
"_nodeVersion": "2.3.3",
"_npmUser": {
"name": "iarna",
"email": "me@re-becca.org"
},
"_npmVersion": "2.11.3",
"_phantomChildren": {},
"_requested": {
"raw": "in-publish@^2.0.0",
"scope": null,
"escapedName": "in-publish",
"name": "in-publish",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"_requiredBy": [
"/node-sass"
],
"_resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz",
"_shasum": "e20ff5e3a2afc2690320b6dc552682a9c7fadf51",
"_shrinkwrap": null,
"_spec": "in-publish@^2.0.0",
"_where": "/mnt/Data/bach/Sites/clameurs.org/sites/all/themes/figureslibres/clameurs/node_modules/node-sass",
"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"
},
"dependencies": {},
"description": "Detect if we were run as a result of `npm publish`",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "e20ff5e3a2afc2690320b6dc552682a9c7fadf51",
"tarball": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz"
},
"gitHead": "7602f2f81f8be988cae554d706bd4a3f1d563f1a",
"homepage": "https://github.com/iarna/in-publish",
"license": "ISC",
"main": "index.js",
"maintainers": [
{
"name": "iarna",
"email": "me@re-becca.org"
}
],
"name": "in-publish",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/iarna/in-publish.git"
},
"scripts": {},
"version": "2.0.0"
}
@@ -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"
}
}