asset-pipe-client
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
{ | ||
"name": "asset-pipe-client", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Trygve Lie", |
@@ -37,7 +37,6 @@ # asset-pipe-client | ||
const client = new Client({ | ||
files: ['path/to/myFrontendCode.js'] | ||
buildServerUri: 'http://127.0.0.1:7100', | ||
}); | ||
client.uploadFeed() | ||
client.uploadFeed(['path/to/myFrontendCode.js']) | ||
.then((content) => { | ||
@@ -90,4 +89,3 @@ // content contains filename of created the asset-feed | ||
* `files` - Same as `files` in the [Browserify constructor][browserify-opts] | ||
* `buildServerUri` - URI to the [asset-pipe-build-server][asset-pipe-build-server] | ||
* `options.buildServerUri` - URI to the [asset-pipe-build-server][asset-pipe-build-server] | ||
@@ -102,7 +100,8 @@ ### transform() | ||
### uploadFeed() | ||
### uploadFeed(files) | ||
Read the [CommonJS module][commonjs] entry point given at `options.files` in the constructor and uploads | ||
it as an asset feeds to the [asset-pipe-build-server][asset-pipe-build-server]. | ||
Read the [CommonJS module][commonjs] entry point and uploads it as an asset feeds to the [asset-pipe-build-server][asset-pipe-build-server]. | ||
* `files` - Array - List of CommonJS module entry points - Same as `files` in the [Browserify constructor][browserify-opts] | ||
Returns a promise. | ||
@@ -109,0 +108,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10928
176