Skip to content

Commit edebadb

Browse files
committed
build: upgrade material to latest version of angular-cli (#293)
And remove the unnecessary parts.
1 parent f2cab2e commit edebadb

File tree

5 files changed

+43
-62
lines changed

5 files changed

+43
-62
lines changed

angular-cli-build.js

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
'use strict';
2+
const fs = require('fs');
3+
const path = require('path');
4+
5+
// Import the require hook. Enables us to require TS files natively.
6+
require('ts-node/register');
7+
8+
9+
const Angular2App = require('angular-cli/lib/broccoli/angular2-app');
10+
const Funnel = require('broccoli-funnel');
11+
const MergeTree = require('broccoli-merge-trees');
12+
const autoPrefixerTree = require('broccoli-autoprefixer');
13+
14+
15+
module.exports = function(defaults) {
16+
var angularAppTree = new Angular2App(defaults, {
17+
sourceDir: 'src/',
18+
sassCompiler: {
19+
includePaths: [
20+
'src/core/style'
21+
]
22+
},
23+
vendorNpmFiles: []
24+
});
25+
26+
const ngTree = angularAppTree.toTree();
27+
const cssAutoprefixed = autoPrefixerTree(new Funnel(ngTree, {
28+
include: [ '**/*.css' ]
29+
}));
30+
31+
return new MergeTree([
32+
new Funnel('src', { include: ['**/*.scss']}),
33+
angularAppTree.toTree(),
34+
cssAutoprefixed
35+
], { overwrite: true });
36+
};

e2e/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"declaration": true,
44
"emitDecoratorMetadata": true,
55
"experimentalDecorators": true,
6+
"inlineSources": true,
67
"mapRoot": "",
78
"module": "commonjs",
89
"moduleResolution": "node",
@@ -11,10 +12,10 @@
1112
"outDir": "../dist/e2e/",
1213
"rootDir": ".",
1314
"sourceMap": true,
14-
"sourceRoot": "/",
1515
"target": "es5"
1616
},
1717
"files": [
18+
"index.e2e.ts",
1819
"e2e.d.ts"
1920
]
2021
}

ember-cli-build.js

-55
This file was deleted.

package.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,9 @@
3535
},
3636
"devDependencies": {
3737
"add-stream": "^1.0.0",
38-
"angular-cli": "^0.0.28",
39-
"angular-cli-github-pages": "^0.2.0",
38+
"angular-cli": "^0.0.31",
4039
"broccoli-autoprefixer": "^4.1.0",
41-
"broccoli-caching-writer": "^2.2.1",
4240
"broccoli-funnel": "^1.0.1",
43-
"broccoli-merge-trees": "^1.1.1",
44-
"broccoli-sass": "^0.7.0",
45-
"broccoli-source": "^1.1.0",
4641
"browserstacktunnel-wrapper": "^1.4.2",
4742
"conventional-changelog": "^1.1.0",
4843
"ember-cli-inject-live-reload": "^1.3.0",
@@ -59,7 +54,9 @@
5954
"karma-firefox-launcher": "^0.1.7",
6055
"karma-jasmine": "^0.3.6",
6156
"karma-sauce-launcher": "^0.2.14",
57+
"node-sass": "^3.4.2",
6258
"protractor": "^3.1.1",
59+
"sass": "^0.5.0",
6360
"strip-ansi": "^3.0.0",
6461
"symlink-or-copy": "^1.0.1",
6562
"ts-node": "^0.5.5",

src/core/style/_elevation.scss

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "variables";
2+
13
/**
24
* A collection of mixins and CSS classes that can be used to apply elevation to a material
35
* element.

0 commit comments

Comments
 (0)