mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
copy typescript source files to dist in publish task
This commit is contained in:
13
gulpfile.js
13
gulpfile.js
@ -79,7 +79,6 @@ gulp.task('watch', function(done) {
|
|||||||
'serve',
|
'serve',
|
||||||
function() {
|
function() {
|
||||||
watch([
|
watch([
|
||||||
'ionic/**/*.js',
|
|
||||||
'ionic/**/*.ts',
|
'ionic/**/*.ts',
|
||||||
'!ionic/components/*/test/**/*',
|
'!ionic/components/*/test/**/*',
|
||||||
'!ionic/util/test/*'
|
'!ionic/util/test/*'
|
||||||
@ -146,7 +145,6 @@ gulp.task('clean', function(done) {
|
|||||||
function transpile(moduleType) {
|
function transpile(moduleType) {
|
||||||
var stream = gulp.src([
|
var stream = gulp.src([
|
||||||
'ionic/**/*.ts',
|
'ionic/**/*.ts',
|
||||||
'ionic/**/*.js',
|
|
||||||
'!ionic/components/*/test/**/*',
|
'!ionic/components/*/test/**/*',
|
||||||
'!ionic/util/test/*'
|
'!ionic/util/test/*'
|
||||||
])
|
])
|
||||||
@ -321,10 +319,19 @@ gulp.task('docs', function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('copy.ts', function() {
|
||||||
|
return gulp.src([
|
||||||
|
'ionic/**/*.ts',
|
||||||
|
'!ionic/components/*/test/**/*',
|
||||||
|
'!ionic/util/test/*'
|
||||||
|
])
|
||||||
|
.pipe(gulp.dest('dist/src/typescript'));
|
||||||
|
})
|
||||||
|
|
||||||
gulp.task('publish', function(done) {
|
gulp.task('publish', function(done) {
|
||||||
runSequence(
|
runSequence(
|
||||||
'clean',
|
'clean',
|
||||||
['bundle', 'sass', 'fonts'],
|
['bundle', 'sass', 'fonts', 'copy.ts'],
|
||||||
'transpile.common',
|
'transpile.common',
|
||||||
function() {
|
function() {
|
||||||
var packageJSONContents = '{\n "name": "ionic2",\n "version": "2.0.0-alpha.1",\n "license": "Apache-2.0",\n "repository": {\n "type": "git",\n "url": "https://github.com/driftyco/ionic2.git"\n }\n}\n';
|
var packageJSONContents = '{\n "name": "ionic2",\n "version": "2.0.0-alpha.1",\n "license": "Apache-2.0",\n "repository": {\n "type": "git",\n "url": "https://github.com/driftyco/ionic2.git"\n }\n}\n';
|
||||||
|
Reference in New Issue
Block a user