Skip to content

Commit 7221099

Browse files
committed
Fix local installation of gulp using gulpjs/gulp-cli#4.0
0 parents  commit 7221099

6 files changed

Lines changed: 119 additions & 0 deletions

File tree

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets":["es2015"]
3+
}

.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### JetBrains template
3+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
4+
5+
*.iml
6+
7+
## Directory-based project format:
8+
.idea/
9+
# if you remove the above rule, at least ignore the following:
10+
11+
# User-specific stuff:
12+
# .idea/workspace.xml
13+
# .idea/tasks.xml
14+
# .idea/dictionaries
15+
16+
# Sensitive or high-churn files:
17+
# .idea/dataSources.ids
18+
# .idea/dataSources.xml
19+
# .idea/sqlDataSources.xml
20+
# .idea/dynamic.xml
21+
# .idea/uiDesigner.xml
22+
23+
# Gradle:
24+
# .idea/gradle.xml
25+
# .idea/libraries
26+
27+
# Mongo Explorer plugin:
28+
# .idea/mongoSettings.xml
29+
30+
## File-based project format:
31+
*.ipr
32+
*.iws
33+
34+
## Plugin-specific files:
35+
36+
# IntelliJ
37+
/out/
38+
39+
# mpeltonen/sbt-idea plugin
40+
.idea_modules/
41+
42+
# JIRA plugin
43+
atlassian-ide-plugin.xml
44+
45+
# Crashlytics plugin (for Android Studio and IntelliJ)
46+
com_crashlytics_export_strings.xml
47+
crashlytics.properties
48+
crashlytics-build.properties
49+

build/1.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Created by Hernan Y.Ke on 2016/2/26.
3+
*/
4+
console.log();

gulpfile.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* Created by Hernan Y.Ke on 2016/2/26.
3+
*/
4+
var gulp = require('gulp'),
5+
$ = require('gulp-load-plugins')(),
6+
source = require('vinyl-source-stream'),
7+
browserify = require('browserify'),
8+
watchify = require('watchify'),
9+
babelify = require('babelify');
10+
11+
12+
gulp.task('server',()=>{
13+
return gulp.src("./srcserver/**/*.js")
14+
.pipe(gulp.dest("./build"));
15+
});
16+
17+
18+
gulp.task("watch:server",()=>{
19+
return gulp.watch("./srcserver/**/*.js",gulp.series("server"));
20+
})

package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "udreajsnextshi",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/rengokantai/udreajsnextshi.git"
12+
},
13+
"author": "",
14+
"license": "ISC",
15+
"bugs": {
16+
"url": "https://github.com/rengokantai/udreajsnextshi/issues"
17+
},
18+
"homepage": "https://github.com/rengokantai/udreajsnextshi#readme",
19+
"devDependencies": {
20+
"babel-preset-es2015": "^6.6.0",
21+
"babelify": "^7.2.0",
22+
"browserify": "^13.0.0",
23+
"gulp": "github:gulpjs/gulp-cli#4.0",
24+
"gulp-babel": "^6.1.2",
25+
"gulp-cached": "^1.1.0",
26+
"gulp-cli": "github:gulpjs/gulp-cli#4.0",
27+
"gulp-load-plugins": "^1.2.0",
28+
"nodemon": "^1.9.1",
29+
"vinyl-source-stream": "^1.1.0",
30+
"watchify": "^3.7.0"
31+
},
32+
"dependencies": {
33+
"colour": "^0.7.1",
34+
"jquery": "^2.2.1",
35+
"lodash": "^4.6.1",
36+
"moment": "^2.12.0",
37+
"rxjs": "^5.0.0-beta.2"
38+
}
39+
}

srcserver/1.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Created by Hernan Y.Ke on 2016/2/26.
3+
*/
4+
console.log();

0 commit comments

Comments
 (0)