mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(build): changes to build site
changes to build site
This commit is contained in:
@ -60,7 +60,7 @@
|
||||
"cpr": "2.0.0",
|
||||
"del": "2.2.2",
|
||||
"dgeni": "0.4.2",
|
||||
"dgeni-packages": "0.16.0",
|
||||
"dgeni-packages": "^0.10.18",
|
||||
"event-stream": "3.3.4",
|
||||
"file-loader": "0.9.0",
|
||||
"glob": "7.0.6",
|
||||
|
@ -115,8 +115,6 @@ function buildDemos(done: Function) {
|
||||
return compileTests();
|
||||
}).then(() => {
|
||||
return rollupTests();
|
||||
}).then(() => {
|
||||
return generatePolyfills();
|
||||
}).then(() => {
|
||||
done();
|
||||
}).catch(err => {
|
||||
@ -136,7 +134,7 @@ function cleanDemos(done: Function) {
|
||||
], done);
|
||||
}
|
||||
|
||||
task('demos.build', ['demos.sass', 'demos.fonts'], (done: Function) => {
|
||||
task('demos.build', ['demos.sass', 'demos.fonts', 'demos.polyfills'], (done: Function) => {
|
||||
buildDemos(done);
|
||||
});
|
||||
|
||||
@ -154,3 +152,11 @@ task('demos.sass', () => {
|
||||
task('demos.fonts', () => {
|
||||
return copyFonts(`${DEMOS_ROOT}/fonts`);
|
||||
});
|
||||
|
||||
task('demos.polyfills', (done: Function) => {
|
||||
generatePolyfills().then(() => {
|
||||
done();
|
||||
}).catch(err => {
|
||||
done(err);
|
||||
});
|
||||
});
|
||||
|
@ -31,7 +31,7 @@ task('docs', () => {
|
||||
|
||||
task('docs.copyDemos', [], (done: Function) => {
|
||||
const config = require('../../config.json');
|
||||
const outputDir = join(config.docsDest, 'dist', 'demos');
|
||||
const outputDir = join(config.docsDest, 'demos');
|
||||
let promises = [];
|
||||
promises.push(copyDemoCss(join(outputDir, 'css')));
|
||||
promises.push(copyDemoFonts(join(outputDir, 'fonts')));
|
||||
|
Reference in New Issue
Block a user