add package task

This commit is contained in:
Tim Lancina
2015-12-14 15:05:17 -06:00
parent ab5bb336b0
commit eed026a45a
3 changed files with 32 additions and 1 deletions

View File

@ -396,11 +396,20 @@ gulp.task('src.link', function(done) {
gulp.task('src', function(done){ gulp.task('src', function(done){
runSequence( runSequence(
'clean', 'clean',
['bundle', 'sass', 'copy.scss', 'copy.web-animations'], ['bundle', 'sass', 'fonts', 'copy.scss', 'copy.web-animations'],
'transpile.typecheck',
done done
); );
}) })
gulp.task('package', ['src'], function(){
return gulp.src([
'scripts/npm/.npmignore',
'scripts/npm/package.json'
])
.pipe(gulp.dest('dist'));
});
require('./scripts/docs/gulp-tasks')(gulp, flags) require('./scripts/docs/gulp-tasks')(gulp, flags)
//////////////////////////////////////////////////// ////////////////////////////////////////////////////

2
scripts/npm/.npmignore Normal file
View File

@ -0,0 +1,2 @@
e2e/
demos/

20
scripts/npm/package.json Normal file
View File

@ -0,0 +1,20 @@
{
"name": "ionic-framework",
"version": "2.0.0-alpha.43",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/driftyco/ionic2.git"
},
"main": "tooling/index.js",
"dependencies": {
"colors": "^1.1.2",
"inquirer": "0.11.0",
"lodash": "3.10.1",
"q": "1.4.1",
"shelljs": "0.5.3"
},
"peerDependencies": {
"angular2": "2.0.0-alpha.53"
}
}