Revert "update: add button to toggle theme in demo-app" (#3271)

This commit is contained in:
mmalerba
2017-02-23 13:32:46 -08:00
committed by GitHub
parent a4da08b065
commit ca56ebbf6b
15 changed files with 61 additions and 100 deletions
-4
View File
@@ -17,10 +17,6 @@ export const SASS_AUTOPREFIXER_OPTIONS = {
cascade: false,
};
export const SASS_PREPROCESSOR_OPTIONS = {
includePaths: [DIST_ROOT]
};
export const HTML_MINIFIER_OPTIONS = {
collapseWhitespace: true,
removeComments: true,
+2 -5
View File
@@ -2,10 +2,7 @@ import * as child_process from 'child_process';
import * as fs from 'fs';
import * as gulp from 'gulp';
import * as path from 'path';
import {
NPM_VENDOR_FILES, PROJECT_ROOT, DIST_ROOT, SASS_AUTOPREFIXER_OPTIONS,
SASS_PREPROCESSOR_OPTIONS
} from './constants';
import {NPM_VENDOR_FILES, PROJECT_ROOT, DIST_ROOT, SASS_AUTOPREFIXER_OPTIONS} from './constants';
/** Those imports lack typings. */
@@ -47,7 +44,7 @@ export function sassBuildTask(dest: string, root: string) {
return () => {
return gulp.src(_globify(root, '**/*.scss'))
.pipe(gulpSourcemaps.init())
.pipe(gulpSass(SASS_PREPROCESSOR_OPTIONS).on('error', gulpSass.logError))
.pipe(gulpSass().on('error', gulpSass.logError))
.pipe(gulpAutoprefixer(SASS_AUTOPREFIXER_OPTIONS))
.pipe(gulpSourcemaps.write('.'))
.pipe(gulp.dest(dest));
+1 -1
View File
@@ -12,7 +12,7 @@ task('aot:copy', [':build:devapp:scss', ':build:devapp:assets']);
*/
task('aot:prepare', sequenceTask(
'clean',
['build:components:release', 'aot:copy', ':build:components:ngc'])
['aot:copy', 'build:components:release', ':build:components:ngc'])
);
/** Builds the demo-app with the Angular compiler to verify that all components work. */
+1 -1
View File
@@ -20,7 +20,7 @@ task(':watch:devapp', () => {
task(':build:devapp:vendor', vendorTask());
task(':build:devapp:ts', tsBuildTask(appDir));
task(':build:devapp:scss', [':build:components:scss'], sassBuildTask(outDir, appDir));
task(':build:devapp:scss', sassBuildTask(outDir, appDir));
task(':build:devapp:assets', copyTask(appDir, outDir));
task('build:devapp', buildAppTask('devapp'));