Skip to content

Commit

Permalink
[broccoli-eyeglass] Add a task to build examples with the current code.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed Feb 16, 2019
1 parent 84139ba commit 5e0b959
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 795 deletions.
1 change: 1 addition & 0 deletions packages/broccoli-eyeglass/.eslintignore
@@ -1,3 +1,4 @@
test
lib
src/types
examples
1 change: 1 addition & 0 deletions packages/broccoli-eyeglass/.gitignore
Expand Up @@ -2,3 +2,4 @@ node_modules
.DS_Store
tmp
lib
examples/*/dist
7 changes: 3 additions & 4 deletions packages/broccoli-eyeglass/examples/example-1/Brocfile.js
@@ -1,9 +1,8 @@
var BroccoliEyeglass = require("broccoli-eyeglass");

var options = {
cssDir: "css" /* This is the only required option */,
};

var outputTree = new BroccoliEyeglass(["src"], options);
var outputTree = new BroccoliEyeglass("src", {
cssDir: "css" /* This is the only required option */,
});

module.exports = outputTree;
6 changes: 2 additions & 4 deletions packages/broccoli-eyeglass/examples/example-2/Brocfile.js
@@ -1,11 +1,9 @@
var BroccoliEyeglass = require("broccoli-eyeglass");

var options = {
var outputTree = new BroccoliEyeglass("src", {
cssDir: "stylesheets",
discover: false, // Don't automatically find & convert sass files in the trees
sourceFiles: ["master.scss"], // Array of files (or glob string) to compile
};

var outputTree = new BroccoliEyeglass(["src"], options);
});

module.exports = outputTree;
6 changes: 4 additions & 2 deletions packages/broccoli-eyeglass/package.json
@@ -1,7 +1,7 @@
{
"name": "broccoli-eyeglass",
"description": "Sass compiler for Broccoli with Eyeglass Integration",
"version": "4.4.4",
"version": "4.4.5",
"author": "Chris Eppstein <chris@eppsteins.net>",
"main": "lib/index.js",
"license": "Apache-2.0",
Expand All @@ -16,7 +16,8 @@
"lintfix": "eslint --ext ts --fix .",
"test": "mocha test/test_*.js",
"test:mocha": "mocha test/test_*.js",
"test:debug": "mocha debug test/test_*.js"
"test:debug": "mocha debug test/test_*.js",
"examples": "rm -rf examples/*/dist && cd examples/example-1 && broccoli build dist && cd ../example-2 && broccoli build dist"
},
"files": [
"lib",
Expand Down Expand Up @@ -74,6 +75,7 @@
"@types/rsvp": "^4.0.2",
"@typescript-eslint/eslint-plugin": "^1.2.0",
"@typescript-eslint/parser": "^1.2.0",
"broccoli-cli": "^1.0.0",
"broccoli-test-helper": "^2.0.0",
"chai": "^4.1.2",
"co": "^4.6.0",
Expand Down

0 comments on commit 5e0b959

Please sign in to comment.