Permalink
Browse files

去除 babel

  • Loading branch information...
1 parent f84730a commit ce13ed6107ed7de95cc852abae4f9e86171535ef @pinggod committed Jan 21, 2016
Showing with 17 additions and 44 deletions.
  1. +0 −3 .babelrc
  2. +0 −10 .editorconfig
  3. +0 −3 README.md
  4. +0 −26 gulpfile.babel.js
  5. +17 −0 gulpfile.js
  6. +0 −2 package.json
View
@@ -1,3 +0,0 @@
-{
- "presets": ["es2015"]
-}
View
@@ -1,10 +0,0 @@
-
-root = true
-
-[*]
-charset = utf-8
-end_of_line = lf
-indent_style = space
-indent_size = 4
-trim_trailing_whitespace = true
-insert_final_newnewline = true
View
@@ -41,6 +41,3 @@ git pull
Markdown 生成的标签暂时比较简单,所以提供了一些 HTML 标签来标识特殊样式,详见 [custrom-blocks](https://github.com/pinggod/hexo-theme-apollo/blob/master/doc/custom-blocks.md)。
-## License
-
-MIT
View
@@ -1,26 +0,0 @@
-import gulp from 'gulp';
-import sass from 'gulp-sass';
-import autoprefixer from 'gulp-autoprefixer';
-
-const path = {
- sass: './source/scss',
- css: './source/css'
-};
-
-const config = {
- sass: {
- outputStyle: 'compressed'
- }
-};
-
-gulp.task('sass', function() {
- return gulp.src(`${path.sass}/*.scss`)
- .pipe(sass(config.sass))
- .pipe(autoprefixer())
- .pipe(gulp.dest(path.css));
-});
-
-gulp.task('default', ['sass'], function() {
- gulp.watch(`.${path.sass}/_partial/*.scss`, ['sass']);
- gulp.watch(`.${path.sass}/*.scss`, ['sass']);
-});
View
@@ -0,0 +1,17 @@
+var gulp = require('gulp');
+var sass = require('gulp-sass');
+var autoprefixer = require('gulp-autoprefixer');
+
+// 一次性编译 Sass
+gulp.task('sass', function() {
+ return gulp.src('./source/scss/*.scss')
+ .pipe(sass({outputStyle: 'compressed'}))
+ .pipe(autoprefixer())
+ .pipe(gulp.dest('./source/css'));
+});
+
+// 实时编译
+gulp.task('default', ['sass'], function() {
+ gulp.watch('./source/scss/_partial/*.scss', ['sass']);
+ gulp.watch('./source/scss/*.scss', ['sass']);
+});
View
@@ -22,8 +22,6 @@
},
"homepage": "https://github.com/pinggod/hexo-theme-apollo#readme",
"devDependencies": {
- "babel-core": "^6.2.1",
- "babel-preset-es2015": "^6.1.18",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^3.0.2",
"gulp-sass": "^2.0.4",

0 comments on commit ce13ed6

Please sign in to comment.