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,4 @@
node_modules
.DS_Store
npm-debug.log
coverage
@@ -0,0 +1,8 @@
language: node_js
node_js:
- "4"
- "iojs-v3"
- "iojs-v2"
- "iojs-v1"
- "0.12"
- "0.10"
+15
View File
@@ -0,0 +1,15 @@
The ISC License
Copyright (c) 2015 Elan Shanker
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,43 @@
glob-parent [![Build Status](https://travis-ci.org/es128/glob-parent.svg)](https://travis-ci.org/es128/glob-parent) [![Coverage Status](https://img.shields.io/coveralls/es128/glob-parent.svg)](https://coveralls.io/r/es128/glob-parent?branch=master)
======
Javascript module to extract the non-magic parent path from a glob string.
[![NPM](https://nodei.co/npm/glob-parent.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/glob-parent/)
[![NPM](https://nodei.co/npm-dl/glob-parent.png?height=3&months=9)](https://nodei.co/npm-dl/glob-parent/)
Usage
-----
```sh
npm install glob-parent --save
```
```js
var globParent = require('glob-parent');
globParent('path/to/*.js'); // 'path/to'
globParent('/root/path/to/*.js'); // '/root/path/to'
globParent('/*.js'); // '/'
globParent('*.js'); // '.'
globParent('**/*.js'); // '.'
globParent('path/{to,from}'); // 'path'
globParent('path/!(to|from)'); // 'path'
globParent('path/?(to|from)'); // 'path'
globParent('path/+(to|from)'); // 'path'
globParent('path/*(to|from)'); // 'path'
globParent('path/@(to|from)'); // 'path'
globParent('path/**/*'); // 'path'
// if provided a non-glob path, returns the nearest dir
globParent('path/foo/bar.js'); // 'path/foo'
globParent('path/foo/'); // 'path/foo'
globParent('path/foo'); // 'path' (see issue #3 for details)
```
Change Log
----------
[See release notes page on GitHub](https://github.com/es128/glob-parent/releases)
License
-------
[ISC](https://raw.github.com/es128/glob-parent/master/LICENSE)
@@ -0,0 +1,10 @@
'use strict';
var path = require('path');
var isglob = require('is-glob');
module.exports = function globParent(str) {
str += 'a'; // preserves full path in case of trailing path separator
do {str = path.dirname(str)} while (isglob(str));
return str;
};
@@ -0,0 +1,94 @@
{
"_args": [
[
{
"raw": "glob-parent@^2.0.0",
"scope": null,
"escapedName": "glob-parent",
"name": "glob-parent",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"/mnt/Data/bach/Sites/clameurs.org/sites/all/themes/figureslibres/inifig/node_modules/glob-base"
]
],
"_from": "glob-parent@>=2.0.0 <3.0.0",
"_id": "glob-parent@2.0.0",
"_inCache": true,
"_location": "/glob-parent",
"_nodeVersion": "3.0.0",
"_npmUser": {
"name": "es128",
"email": "elan.shanker+npm@gmail.com"
},
"_npmVersion": "2.13.3",
"_phantomChildren": {},
"_requested": {
"raw": "glob-parent@^2.0.0",
"scope": null,
"escapedName": "glob-parent",
"name": "glob-parent",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"_requiredBy": [
"/chokidar",
"/glob-base"
],
"_resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz",
"_shasum": "81383d72db054fcccf5336daa902f182f6edbb28",
"_shrinkwrap": null,
"_spec": "glob-parent@^2.0.0",
"_where": "/mnt/Data/bach/Sites/clameurs.org/sites/all/themes/figureslibres/inifig/node_modules/glob-base",
"author": {
"name": "Elan Shanker"
},
"bugs": {
"url": "https://github.com/es128/glob-parent/issues"
},
"dependencies": {
"is-glob": "^2.0.0"
},
"description": "Strips glob magic from a string to provide the parent path",
"devDependencies": {
"coveralls": "^2.11.2",
"istanbul": "^0.3.5",
"mocha": "^2.1.0"
},
"directories": {},
"dist": {
"shasum": "81383d72db054fcccf5336daa902f182f6edbb28",
"tarball": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz"
},
"gitHead": "a956910c7ccb5eafd1b3fe900ceb6335cc5b6d3d",
"homepage": "https://github.com/es128/glob-parent",
"keywords": [
"glob",
"parent",
"strip",
"path",
"directory",
"base"
],
"license": "ISC",
"main": "index.js",
"maintainers": [
{
"name": "es128",
"email": "elan.shanker+npm@gmail.com"
}
],
"name": "glob-parent",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/es128/glob-parent.git"
},
"scripts": {
"test": "istanbul cover _mocha && cat ./coverage/lcov.info | coveralls"
},
"version": "2.0.0"
}
+28
View File
@@ -0,0 +1,28 @@
'use strict';
var gp = require('./');
var assert = require('assert');
describe('glob-parent', function() {
it('should strip glob magic to return parent path', function() {
assert.equal(gp('path/to/*.js'), 'path/to');
assert.equal(gp('/root/path/to/*.js'), '/root/path/to');
assert.equal(gp('/*.js'), '/');
assert.equal(gp('*.js'), '.');
assert.equal(gp('**/*.js'), '.');
assert.equal(gp('path/{to,from}'), 'path');
assert.equal(gp('path/!(to|from)'), 'path');
assert.equal(gp('path/?(to|from)'), 'path');
assert.equal(gp('path/+(to|from)'), 'path');
assert.equal(gp('path/*(to|from)'), 'path');
assert.equal(gp('path/@(to|from)'), 'path');
assert.equal(gp('path/**/*'), 'path');
assert.equal(gp('path/**/subdir/foo.*'), 'path');
});
it('should return parent dirname from non-glob paths', function() {
assert.equal(gp('path/foo/bar.js'), 'path/foo');
assert.equal(gp('path/foo/'), 'path/foo');
assert.equal(gp('path/foo'), 'path');
});
});