mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
chore(docs): copy demos to ionic-site
This commit is contained in:
15
gulpfile.js
15
gulpfile.js
@ -308,7 +308,7 @@ gulp.task('karma-watch', function() {
|
||||
return karma.start({ configFile: __dirname + '/scripts/karma/karma-watch.conf.js' })
|
||||
});
|
||||
|
||||
gulp.task('docs', function() {
|
||||
gulp.task('docs', ['docs.demos'], function() {
|
||||
var Dgeni = require('dgeni');
|
||||
var semver = require('semver');
|
||||
|
||||
@ -326,6 +326,19 @@ gulp.task('docs', function() {
|
||||
}
|
||||
});
|
||||
|
||||
gulp.task('docs.demos', ['demos', 'bundle', 'sass', 'fonts'], function(){
|
||||
return gulp.src([
|
||||
'dist/**',
|
||||
'!dist/e2e',
|
||||
'!dist/e2e/**/*',
|
||||
'!dist/ionic-site',
|
||||
'!dist/ionic-site/**/*',
|
||||
'!dist/src',
|
||||
'!dist/src/**/*'
|
||||
])
|
||||
.pipe(gulp.dest('dist/ionic-site/docs/v2/dist'));
|
||||
})
|
||||
|
||||
gulp.task('copy.ts', function() {
|
||||
return gulp.src([
|
||||
'ionic/**/*.ts',
|
||||
|
Reference in New Issue
Block a user