From d8a4fcfb419c177639b2f942762206a406db12ce Mon Sep 17 00:00:00 2001 From: Matthias Loibl Date: Tue, 6 Dec 2016 22:02:52 +0100 Subject: [PATCH] npm init & start building scss to css with gulp --- .gitignore | 2 ++ gulpfile.js | 8 ++++++++ package.json | 21 +++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 gulpfile.js create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..066ebdf --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/node_modules/ +/static/styles/ diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..edc76c6 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,8 @@ +var gulp = require('gulp'); +var sass = require('gulp-sass'); + +gulp.task('default', function () { + return gulp.src('./src/main.scss') + .pipe(sass().on('error', sass.logError)) + .pipe(gulp.dest('./static/styles')); +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..d7b58d2 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "gitea-theme", + "description": "This is a Hugo theme that gets used within all of our websites like our blog, documentation and also the redirects.", + "repository": { + "type": "git", + "url": "git+https://github.com/go-gitea/theme.git" + }, + "author": "The Gitea Authors", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/go-gitea/theme/issues" + }, + "homepage": "https://github.com/go-gitea/theme#readme", + "dependencies": { + "bootstrap": "^4.0.0-alpha.5" + }, + "devDependencies": { + "gulp": "^3.9.1", + "gulp-sass": "^2.3.2" + } +}