mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
add package task
This commit is contained in:
11
gulpfile.js
11
gulpfile.js
@ -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
2
scripts/npm/.npmignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
e2e/
|
||||||
|
demos/
|
20
scripts/npm/package.json
Normal file
20
scripts/npm/package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user