chore(demos): update demos to work

* chore(demos): WIP refactor gulp demos task to use SystemJS

move build files into dist/demos and comment out the AoT demos task for
right now. This makes both `gulp demos` and `gulp demos.watch`work
again.

references #8411

* docs(demos): fix infinite scroll demo

* chore(demos): move old demos task to demos.prod

update the demos file with shared tasks, include the shared css

* docs(demos): fix API demos to use correct styles

* chore(demos): remove the main.ts files from each demo

* chore(demos): add prod template and constant

* chore(demos): remove tsconfig and package from demos

* chore(demos): update app.module path to ionic

* chore(demos): update app.module path to ionic

* chore(demos): update prod task for demos to work with AoT

also puts the demo build files into dist/ instead of the src directory

* docs(demos): update deploy and docs tasks for new build

* docs(scripts): update demos README

* chore(demos): fix path for prod build
This commit is contained in:
Brandy Carney
2016-12-13 13:56:22 -05:00
committed by Adam Bradley
parent 3701ee5e37
commit 1f83cde78b
182 changed files with 2946 additions and 3626 deletions

View File

@ -9,7 +9,7 @@ import * as mkdirp from 'mkdirp';
import { valid }from 'semver';
import { argv } from 'yargs';
import { DEMOS_ROOT } from '../constants';
import { DIST_DEMOS_ROOT } from '../constants';
task('docs', ['docs.dgeni', 'docs.demos', 'docs.sassVariables']);
@ -30,7 +30,7 @@ task('docs.dgeni', () => {
}
});
task('docs.demos', ['demos.build'], (done: Function) => {
task('docs.demos', ['demos.prod'], (done: Function) => {
const config = require('../../config.json');
const outputDir = join(config.docsDest, 'demos');
let promises = [];
@ -47,7 +47,7 @@ task('docs.demos', ['demos.build'], (done: Function) => {
function copyDemoCss(outputDir: string) {
return new Promise((resolve, reject) => {
const stream = src(`${DEMOS_ROOT}/css/*`).pipe(dest(outputDir));
const stream = src(`${DIST_DEMOS_ROOT}/css/*`).pipe(dest(outputDir));
stream.on('end', () => {
resolve();
});
@ -56,7 +56,7 @@ function copyDemoCss(outputDir: string) {
function copyDemoFonts(outputDir: string) {
return new Promise((resolve, reject) => {
const stream = src(`${DEMOS_ROOT}/fonts/*`).pipe(dest(outputDir));
const stream = src(`${DIST_DEMOS_ROOT}/fonts/*`).pipe(dest(outputDir));
stream.on('end', () => {
resolve();
});
@ -65,7 +65,7 @@ function copyDemoFonts(outputDir: string) {
function copyDemoPolyfills(outputDir: string) {
return new Promise((resolve, reject) => {
const stream = src(`${DEMOS_ROOT}/polyfills/*`).pipe(dest(outputDir));
const stream = src(`${DIST_DEMOS_ROOT}/polyfills/*`).pipe(dest(outputDir));
stream.on('end', () => {
resolve();
});
@ -75,8 +75,7 @@ function copyDemoPolyfills(outputDir: string) {
function copyDemoContent(outputDir: string) {
return new Promise((resolve, reject) => {
const stream = src([
`${DEMOS_ROOT}/src/**/*`,
`${DEMOS_ROOT}/src/scrollbar-fix.*`
`${DIST_DEMOS_ROOT}/**/*`
]).pipe(dest(outputDir));
stream.on('end', () => {
resolve();