Skip to content

build: upgrade material to latest version of angular-cli #293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions angular-cli-build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
'use strict';
const fs = require('fs');
const path = require('path');

// Import the require hook. Enables us to require TS files natively.
require('ts-node/register');


const Angular2App = require('angular-cli/lib/broccoli/angular2-app');
const Funnel = require('broccoli-funnel');
const MergeTree = require('broccoli-merge-trees');
const autoPrefixerTree = require('broccoli-autoprefixer');


module.exports = function(defaults) {
var angularAppTree = new Angular2App(defaults, {
sourceDir: 'src/',
sassCompiler: {
includePaths: [
'src/core/style'
]
},
vendorNpmFiles: []
});

const ngTree = angularAppTree.toTree();
const cssAutoprefixed = autoPrefixerTree(new Funnel(ngTree, {
include: [ '**/*.css' ]
}));

return new MergeTree([
new Funnel('src', { include: ['**/*.scss']}),
angularAppTree.toTree(),
cssAutoprefixed
], { overwrite: true });
};
3 changes: 2 additions & 1 deletion e2e/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"inlineSources": true,
"mapRoot": "",
"module": "commonjs",
"moduleResolution": "node",
Expand All @@ -11,10 +12,10 @@
"outDir": "../dist/e2e/",
"rootDir": ".",
"sourceMap": true,
"sourceRoot": "/",
"target": "es5"
},
"files": [
"index.e2e.ts",
"e2e.d.ts"
]
}
55 changes: 0 additions & 55 deletions ember-cli-build.js

This file was deleted.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@
},
"devDependencies": {
"add-stream": "^1.0.0",
"angular-cli": "^0.0.28",
"angular-cli-github-pages": "^0.2.0",
"angular-cli": "^0.0.31",
"broccoli-autoprefixer": "^4.1.0",
"broccoli-caching-writer": "^2.2.1",
"broccoli-funnel": "^1.0.1",
"broccoli-merge-trees": "^1.1.1",
"broccoli-sass": "^0.7.0",
"broccoli-source": "^1.1.0",
"browserstacktunnel-wrapper": "^1.4.2",
"conventional-changelog": "^1.1.0",
"ember-cli-inject-live-reload": "^1.3.0",
Expand All @@ -57,7 +52,9 @@
"karma-firefox-launcher": "^0.1.7",
"karma-jasmine": "^0.3.6",
"karma-sauce-launcher": "^0.2.14",
"node-sass": "^3.4.2",
"protractor": "^3.1.1",
"sass": "^0.5.0",
"strip-ansi": "^3.0.0",
"symlink-or-copy": "^1.0.1",
"ts-node": "^0.5.5",
Expand Down
2 changes: 2 additions & 0 deletions src/core/style/_elevation.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "variables";

/**
* A collection of mixins and CSS classes that can be used to apply elevation to a material
* element.
Expand Down