@css-blocks/broccoli
Advanced tools
Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.0.0-alpha.7](https://github.com/linkedin/css-blocks/tree/master/packages/%40css-blocks/broccoli/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2020-02-23) | ||
### Bug Fixes | ||
* Don't cache the template entry points. ([df0a536](https://github.com/linkedin/css-blocks/tree/master/packages/%40css-blocks/broccoli/commit/df0a536dd646084ef3e8b5daa17247df93cc5e91)) | ||
# [1.0.0-alpha.6](https://github.com/linkedin/css-blocks/tree/master/packages/%40css-blocks/broccoli/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2020-02-19) | ||
@@ -8,0 +19,0 @@ |
@@ -75,7 +75,7 @@ "use strict"; | ||
// When no entry points are passed, we treat *every* template as an entry point. | ||
this.entries = this.entries.length ? this.entries : glob.sync("**/*.hbs", { cwd: input }); | ||
let entries = this.entries.length ? this.entries : glob.sync("**/*.hbs", { cwd: input }); | ||
// Oh hey look, we're analyzing. | ||
this.analyzer.reset(); | ||
this.transport.reset(); | ||
await this.analyzer.analyze(input, this.entries); | ||
await this.analyzer.analyze(input, entries); | ||
// Compile all Blocks and add them as sources to the Optimizer. | ||
@@ -122,2 +122,2 @@ // TODO: handle a sourcemap from compiling the block file via a preprocessor. | ||
exports.CSSBlocksAnalyze = CSSBlocksAnalyze; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQW5hbHl6ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9BbmFseXplLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQXlFO0FBRXpFLHdDQUF3QztBQUN4Qyx5QkFBeUI7QUFDekIsdUNBQXVDO0FBQ3ZDLDZCQUE2QjtBQUM3Qix1Q0FBdUM7QUFDdkMscUNBQTZEO0FBQzdELDZCQUE2Qjt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0cHV0LmNvbnRlbnQudG9TdHJpbmcoKTtcbiAgICBkZWJ1ZyhgQ29tcGlsYXRpb24gRmluaXNoZWQ6ICR7dGhpcy50cmFuc3BvcnQuaWR9YCk7XG4gIH1cbn1cbiJdfQ== |
{ | ||
"name": "@css-blocks/broccoli", | ||
"version": "1.0.0-alpha.6", | ||
"version": "1.0.0-alpha.7", | ||
"description": "CSS Blocks Broccoli Addon", | ||
@@ -61,3 +61,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "0beb9a7308a767a480506f54a2188cf06320b75f" | ||
"gitHead": "d6f37f55163ee35d46e799209441b42b370f02b3" | ||
} |
@@ -97,3 +97,3 @@ import { Analyzer, BlockCompiler, StyleMapping } from "@css-blocks/core"; | ||
// When no entry points are passed, we treat *every* template as an entry point. | ||
this.entries = this.entries.length ? this.entries : glob.sync("**/*.hbs", { cwd: input }); | ||
let entries = this.entries.length ? this.entries : glob.sync("**/*.hbs", { cwd: input }); | ||
@@ -103,3 +103,3 @@ // Oh hey look, we're analyzing. | ||
this.transport.reset(); | ||
await this.analyzer.analyze(input, this.entries); | ||
await this.analyzer.analyze(input, entries); | ||
@@ -106,0 +106,0 @@ // Compile all Blocks and add them as sources to the Optimizer. |
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
135620
42
1418