mirror of
https://github.com/wahyd4/Libr-mobile.git
synced 2026-08-09 04:45:57 +10:00
update readme
This commit is contained in:
@@ -16,7 +16,7 @@ Libr-图书社交、附近热门图书、根据兴趣推荐图书、导入豆瓣
|
||||
- 进行项目文件夹,bower install
|
||||
- npm install
|
||||
- gulp dist (默认将连接librme.com,如需连接其他服务器,需自行至<https://github.com/wahyd4/libr>下载代码)
|
||||
- cordova emualte ios 或者 cordova emulate android 即可完成
|
||||
- cordova emualte ios 或者 cordova emulate android 即可完成 或者 gulp emulate (将在ios模拟器上运行项目)
|
||||
|
||||
### 技术栈
|
||||
|
||||
|
||||
+13
-13
@@ -19,13 +19,13 @@ var paths = {
|
||||
dev: ['env/dev/**.coffee'],
|
||||
local: ['env/local/**.coffee'],
|
||||
prod: ['env/prod/**.coffee'],
|
||||
cordova:{
|
||||
js:['js/**/*.js'],
|
||||
dist:['dist/**'],
|
||||
img:['img/**'],
|
||||
templates:['templates/**'],
|
||||
assets:['assets/**'],
|
||||
index:['index.html']
|
||||
cordova: {
|
||||
js: ['js/**/*.js'],
|
||||
dist: ['dist/**'],
|
||||
img: ['img/**'],
|
||||
templates: ['templates/**'],
|
||||
assets: ['assets/**'],
|
||||
index: ['index.html']
|
||||
}
|
||||
};
|
||||
|
||||
@@ -79,10 +79,10 @@ gulp.task('server', function () {
|
||||
|
||||
gulp.task('emulate-ios', function () {
|
||||
gulp.src('')
|
||||
.pipe(exec('cordova emulate ios'),options);
|
||||
.pipe(exec('cordova emulate ios'), options);
|
||||
});
|
||||
|
||||
gulp.task('bower', function() {
|
||||
gulp.task('bower', function () {
|
||||
bower('./bower_components')
|
||||
.pipe(gulp.dest('assets'))
|
||||
});
|
||||
@@ -99,7 +99,7 @@ gulp.task('coffee', function () {
|
||||
// .pipe(gulp.dest('dist/js-app/'));
|
||||
});
|
||||
|
||||
gulp.task('copy',function(){
|
||||
gulp.task('copy', function () {
|
||||
gulp.src(paths.cordova.js)
|
||||
.pipe(gulp.dest('./www/js'));
|
||||
|
||||
@@ -118,10 +118,10 @@ gulp.task('copy',function(){
|
||||
.pipe(gulp.dest('./www/assets'));
|
||||
})
|
||||
|
||||
gulp.task('default', ['bower','scripts', 'css', 'watch', 'fonts', 'server']);
|
||||
gulp.task('default', ['bower', 'scripts', 'css', 'watch', 'fonts', 'server', 'copy']);
|
||||
|
||||
gulp.task('dist', ['bower','uglify-scripts', 'css', 'fonts','copy']);
|
||||
gulp.task('dist', ['bower', 'uglify-scripts', 'css', 'fonts', 'copy']);
|
||||
|
||||
gulp.task('debug', ['scripts', 'css', 'fonts', 'watch']);
|
||||
|
||||
gulp.task('emulate',['copy','emulate-ios'])
|
||||
gulp.task('emulate', ['copy', 'emulate-ios']);
|
||||
|
||||
Reference in New Issue
Block a user