/**
 * The factory class of asset modifiers.
 */
export default class AssetFacade {

    /**
     * @param {Asset} asset The asset to modify
     */
    constructor(asset) {

        this.setAssetModel(asset)

    }

    setAssetModel(asset) {
        this.assetModel = asset
    }

    getAssetModel() {
        return this.assetModel
    }

    /**
     * Adds the asset paths.
     * @param {Array<string|string[]>} paths The paths
     */
    asset(...paths) {

        this.getAssetModel().addAssetPaths(...paths)

        return this

    }

    /**
     * Sets the asset options.
     * @param {object} opts The options to pass to the vinyl-fs
     */
    assetOptions(opts) {

        this.getAssetModel().setAssetOpts(opts)

        return this

    }

    /**
     * Sets the watch paths and opts.
     * @param {Array<string|string[]>} watchPaths The paths to watch
     */
    watch(...watchPaths) {

        this.getAssetModel().addWatchPaths(...watchPaths)

        return this

    }

    /**
     * Sets the watch options.
     * @param {object} options The watch options
     */
    watchOptions(options) {

        this.getAssetModel().setWatchOpts(options)

        return this

    }

    /**
     * Sets the base path.
     * @param {string} base The base path
     */
    base(base) {

        this.getAssetModel().setAssetOpts({base})

        return this

    }

    /**
     * Adds the trasform of transform stream.
     * @param {Transform} transform The transform to pass to the vinyl stream
     */
    pipe(transform) {

        this.getAssetModel().addPipe(transform)

        return this

    }

}

@@ -8,41 +8,55 @@
 The 
-factory class of asset modifiers.
+interface which exposes as %22asset%22 in bulbofile
 %0A */
@@ -177,25 +177,24 @@
 or(asset) %7B%0A
-%0A
         this
@@ -194,20 +194,17 @@
    this.
-setA
+a
 ssetMode
@@ -208,16 +208,16 @@
 odel
-(
+ = 
 asset
-)%0A
 %0A   
@@ -228,69 +228,71 @@
     
-setAssetModel(asset) %7B%0A        this.
+/**%0A     * Gets the 
 asset
-M
+ m
 odel
- = a
+.%0A     * @return %7BA
 sset
-%0A
+%7D%0A 
     
-%7D%0A
+*/
 %0A   
@@ -462,33 +462,32 @@
 set(...paths) %7B%0A
-%0A
         this.get
@@ -536,33 +536,32 @@
     return this%0A
-%0A
     %7D%0A%0A    /**%0A 
@@ -683,25 +683,24 @@
 ons(opts) %7B%0A
-%0A
         this
@@ -748,33 +748,32 @@
     return this%0A
-%0A
     %7D%0A%0A    /**%0A 
@@ -909,25 +909,24 @@
 tchPaths) %7B%0A
-%0A
         this
@@ -984,33 +984,32 @@
     return this%0A
-%0A
     %7D%0A%0A    /**%0A 
@@ -1119,25 +1119,24 @@
 (options) %7B%0A
-%0A
         this
@@ -1187,33 +1187,32 @@
     return this%0A
-%0A
     %7D%0A%0A    /**%0A 
@@ -1300,25 +1300,24 @@
 ase(base) %7B%0A
-%0A
         this
@@ -1371,25 +1371,24 @@
 return this%0A
-%0A
     %7D%0A%0A    /
@@ -1544,17 +1544,16 @@
 form) %7B%0A
-%0A
         
@@ -1613,18 +1613,16 @@
 rn this%0A
-%0A
     %7D%0A
-%0A
 %7D%0A

Clean up asset-facade