bower-requirejs
Advanced tools
Comparing version 0.1.0 to 0.8.1
{ | ||
"name": "bower-requirejs", | ||
"version": "0.1.0", | ||
"version": "0.8.1", | ||
"description": "Automagically wire-up installed Bower components into your RequireJS config", | ||
@@ -16,4 +16,4 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/yeoman/grunt-bower-requirejs", | ||
"bugs": "https://github.com/yeoman/grunt-bower-requirejs/issues", | ||
"homepage": "https://github.com/yeoman/bower-requirejs", | ||
"bugs": "https://github.com/yeoman/bower-requirejs/issues", | ||
"license": "BSD", | ||
@@ -32,6 +32,16 @@ "author": { | ||
], | ||
"main": "Gruntfile.js", | ||
"contributors": [ | ||
{ | ||
"name": "Merrick Christensen", | ||
"email": "merrick.christensen@gmail.com", | ||
"url": "http://merrickchristensen.com" | ||
} | ||
], | ||
"main": "lib", | ||
"bin": { | ||
"bower-requirejs": "bin/bower-requirejs.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/yeoman/grunt-bower-requirejs.git" | ||
"url": "git://github.com/yeoman/bower-requirejs.git" | ||
}, | ||
@@ -43,3 +53,10 @@ "scripts": { | ||
"requirejs": "~2.1.5", | ||
"slash": "~0.1.0" | ||
"slash": "~0.1.0", | ||
"nopt": "~2.1.2", | ||
"lodash": "~1.3.1", | ||
"chalk": "~0.2.1", | ||
"glob": "~3.2.6", | ||
"file-utils": "~0.1.2", | ||
"sudo-block": "~0.2.1", | ||
"update-notifier": "~0.1.7" | ||
}, | ||
@@ -54,6 +71,8 @@ "devDependencies": { | ||
"bower": "~1.x", | ||
"durable-json-lint": "0.0.1" | ||
"durable-json-lint": "0.0.1", | ||
"mocha": "~1.12.1", | ||
"grunt-simple-mocha": "~0.4.0", | ||
"should": "~1.2.2" | ||
}, | ||
"peerDependencies": { | ||
"grunt": "~0.4.0", | ||
"bower": "~1.x" | ||
@@ -65,4 +84,5 @@ }, | ||
"files": [ | ||
"tasks/bower-requirejs.js" | ||
"bin", | ||
"lib" | ||
] | ||
} |
@@ -1,2 +0,2 @@ | ||
# grunt-bower-requirejs [![Build Status](https://secure.travis-ci.org/yeoman/grunt-bower-requirejs.png?branch=master)](http://travis-ci.org/yeoman/grunt-bower-requirejs) | ||
# bower-requirejs [![Build Status](https://secure.travis-ci.org/yeoman/bower-requirejs.png?branch=master)](http://travis-ci.org/yeoman/bower-requirejs) | ||
@@ -6,71 +6,22 @@ Automagically wire-up installed Bower components into your RequireJS config | ||
## Getting Started | ||
## Install | ||
If you haven't used [grunt][] before, be sure to check out the [Getting Started][] guide, as it explains how to create a Gruntfile as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command: | ||
- Install with [npm](https://npmjs.org/package/grunt-bower-requirejs): `npm install --save bower-requirejs` | ||
```shell | ||
npm install grunt-bower-requirejs --save-dev | ||
``` | ||
## Example usage | ||
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript: | ||
```js | ||
grunt.loadNpmTasks('grunt-bower-requirejs'); | ||
``` | ||
./node_modules/.bin/bower-requirejs -c path/to/config -e underscore -e jquery | ||
``` | ||
[grunt]: http://gruntjs.com | ||
[Getting Started]: http://gruntjs.com/getting-started | ||
## Options | ||
## Example usage | ||
```js | ||
grunt.initConfig({ | ||
bower: { | ||
target: { | ||
rjsConfig: 'app/config.js' | ||
} | ||
} | ||
}); | ||
grunt.loadNpmTasks('grunt-bower-requirejs'); | ||
grunt.registerTask('default', ['bower']); | ||
``` | ||
-h, --help # Print options and usage' | ||
-v, --version # Print the version number' | ||
-c, --config # Path to your requirejs config file' | ||
-e, --excludes # Name of a dependency to be excluded from the process' | ||
-b, --baseurl # Path which all dependencies will be relative to' | ||
``` | ||
## Documentation | ||
When the `bower` task is run it merges the paths of installed Bower components into the `paths` property of your RequireJS config. | ||
You trigger this task from another task in your Gruntfile or through the CLI: `grunt bower` | ||
### rjsConfig | ||
**Required** | ||
Type: `String` | ||
Specify a relative path to your RequireJS config. | ||
Make sure to specify the `baseUrl` property in your RequireJS config if you want to use relative paths. | ||
### Options | ||
#### exclude | ||
Default: `[]` | ||
Type: `Array` | ||
Specify components to be excluded from being added to the RequireJS config. | ||
#### baseUrl | ||
Default: `null` | ||
Type: `String` | ||
Generate paths relative to a specific directory. This option is for anyone **not** using `data-main` who wishes to set their own base. | ||
## Things to remember | ||
@@ -80,8 +31,8 @@ | ||
You need to already have a config.js file at the location specified by `rjsConfig`. At a minimum, the file should look like this: | ||
You need to already have a `config.js` file at the location specified by the `--config` option. At a minimum, the file should look like this: | ||
``` js | ||
requirejs.config({ | ||
baseUrl: './', | ||
paths: {} | ||
baseUrl: './', | ||
paths: {} | ||
}); | ||
@@ -94,6 +45,6 @@ ``` | ||
requirejs.config({ | ||
baseUrl: './', | ||
paths: { | ||
myComponent: 'js/myComponent.js' | ||
} | ||
baseUrl: './', | ||
paths: { | ||
myComponent: 'js/myComponent.js' | ||
} | ||
}); | ||
@@ -100,0 +51,0 @@ ``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
15200
6
408
10
11
60
2
2
+ Addedchalk@~0.2.1
+ Addedfile-utils@~0.1.2
+ Addedglob@~3.2.6
+ Addedlodash@~1.3.1
+ Addednopt@~2.1.2
+ Addedsudo-block@~0.2.1
+ Addedupdate-notifier@~0.1.7
+ Addedajv@6.12.6(transitive)
+ Addedansi-styles@0.1.20.2.01.0.0(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.0(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedchalk@0.1.10.2.10.4.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedconfigstore@0.3.2(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfile-utils@0.1.5(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedgraceful-fs@3.0.12(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhas-color@0.1.7(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisbinaryfile@0.1.9(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedlodash@1.3.12.1.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addednatives@1.1.6(transitive)
+ Addednopt@2.1.2(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedobject-assign@2.1.1(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.9.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@2.3.2(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedstrip-ansi@0.1.1(transitive)
+ Addedsudo-block@0.2.1(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedupdate-notifier@0.1.10(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addeduser-home@1.1.1(transitive)
+ Addeduuid@2.0.33.4.0(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedxdg-basedir@1.0.1(transitive)
- Removedargparse@0.1.16(transitive)
- Removedasync@0.1.22(transitive)
- Removedcoffee-script@1.3.3(transitive)
- Removedcolors@0.6.2(transitive)
- Removeddateformat@1.0.2-1.2.3(transitive)
- Removedesprima@1.0.4(transitive)
- Removedeventemitter2@0.4.14(transitive)
- Removedexit@0.1.2(transitive)
- Removedgetobject@0.1.0(transitive)
- Removedglob@3.1.21(transitive)
- Removedgraceful-fs@1.2.3(transitive)
- Removedgrunt@0.4.5(transitive)
- Removedgrunt-legacy-log@0.1.3(transitive)
- Removedgrunt-legacy-log-utils@0.1.1(transitive)
- Removedgrunt-legacy-util@0.2.0(transitive)
- Removedhooker@0.2.3(transitive)
- Removedinherits@1.0.2(transitive)
- Removedjs-yaml@2.0.5(transitive)
- Removedlodash@0.9.2(transitive)
- Removednopt@1.0.10(transitive)
- Removedunderscore@1.7.0(transitive)
- Removedunderscore.string@2.2.12.3.32.4.0(transitive)
- Removedwhich@1.0.9(transitive)