diff --git a/gulpfile.js b/gulpfile.js index dd7ffe1b31..0e08a7280b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -396,11 +396,20 @@ gulp.task('src.link', function(done) { gulp.task('src', function(done){ runSequence( 'clean', - ['bundle', 'sass', 'copy.scss', 'copy.web-animations'], + ['bundle', 'sass', 'fonts', 'copy.scss', 'copy.web-animations'], + 'transpile.typecheck', 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) //////////////////////////////////////////////////// diff --git a/scripts/npm/.npmignore b/scripts/npm/.npmignore new file mode 100644 index 0000000000..12c2309fb7 --- /dev/null +++ b/scripts/npm/.npmignore @@ -0,0 +1,2 @@ +e2e/ +demos/ \ No newline at end of file diff --git a/scripts/npm/package.json b/scripts/npm/package.json new file mode 100644 index 0000000000..68c2985cd9 --- /dev/null +++ b/scripts/npm/package.json @@ -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" + } +}