mirror of https://gitea.com/gitea/theme.git
My tiny changes
This commit is contained in:
parent
2a1c23d3a7
commit
731cc07aa4
20
.drone.yml
20
.drone.yml
|
@ -3,22 +3,24 @@ workspace:
|
|||
|
||||
pipeline:
|
||||
build:
|
||||
image: node
|
||||
image: library/node:latest
|
||||
commands:
|
||||
- make install
|
||||
- make build
|
||||
- make release
|
||||
- npm install -q
|
||||
- npm run clean
|
||||
- npm run build
|
||||
- npm run release
|
||||
|
||||
release:
|
||||
image: plugins/s3
|
||||
path_style: true
|
||||
source: master.tar.gz
|
||||
target: /theme/
|
||||
strip_prefix: dist/
|
||||
source: dist/master.tar.gz
|
||||
target: /theme
|
||||
when:
|
||||
event: [ push ]
|
||||
branch: [ master ]
|
||||
|
||||
downstream:
|
||||
trigger:
|
||||
image: plugins/downstream
|
||||
server: https://drone.gitea.io
|
||||
repositories:
|
||||
|
@ -27,8 +29,8 @@ pipeline:
|
|||
- go-gitea/docs
|
||||
- go-gitea/redirects
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
||||
event: [ push ]
|
||||
branch: [ master ]
|
||||
|
||||
gitter:
|
||||
image: plugins/gitter
|
||||
|
|
|
@ -1 +1 @@
|
|||
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIHBhdGg6IHNyYwoKcGlwZWxpbmU6CiAgYnVpbGQ6CiAgICBpbWFnZTogbm9kZQogICAgY29tbWFuZHM6CiAgICAgIC0gbWFrZSBpbnN0YWxsCiAgICAgIC0gbWFrZSBidWlsZAogICAgICAtIG1ha2UgcmVsZWFzZQoKICByZWxlYXNlOgogICAgaW1hZ2U6IHBsdWdpbnMvczMKICAgIHBhdGhfc3R5bGU6IHRydWUKICAgIHNvdXJjZTogbWFzdGVyLnRhci5negogICAgdGFyZ2V0OiAvdGhlbWUvCiAgICB3aGVuOgogICAgICBldmVudDogWyBwdXNoIF0KICAgICAgYnJhbmNoOiBbIG1hc3RlciBdCgogIGRvd25zdHJlYW06CiAgICBpbWFnZTogcGx1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1naXRlYS9kb2NzCiAgICAgIC0gZ28tZ2l0ZWEvcmVkaXJlY3RzCiAgICB3aGVuOgogICAgICBldmVudDogWyBwdXNoIF0KICAgICAgYnJhbmNoOiBbIG1hc3RlciBdCgogIGdpdHRlcjoKICAgIGltYWdlOiBwbHVnaW5zL2dpdHRlcgo.N2Jze2NItEHFkItBvnoEO6Iw15Ar3kWd2QyJj5wByHo
|
|
@ -1,3 +1,3 @@
|
|||
/master.tar.gz
|
||||
/node_modules/
|
||||
/dist/
|
||||
/static/styles/
|
||||
|
|
30
Makefile
30
Makefile
|
@ -1,30 +0,0 @@
|
|||
STYLES := static/styles
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(STYLES) master.tar.gz
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
npm install -q
|
||||
npm install -q -g gulp-cli
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
gulp
|
||||
|
||||
.PHONY: release
|
||||
release:
|
||||
tar -cvzf master.tar.gz \
|
||||
archetypes/ \
|
||||
i18n/ \
|
||||
layouts/ \
|
||||
static/ \
|
||||
DCO \
|
||||
LICENSE \
|
||||
MAINTAINERS \
|
||||
README.md \
|
||||
theme.toml
|
33
gulpfile.js
33
gulpfile.js
|
@ -1,8 +1,30 @@
|
|||
var gulp = require('gulp');
|
||||
var sass = require('gulp-sass');
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
var tar = require('gulp-tar');
|
||||
var gzip = require('gulp-gzip');
|
||||
var clean = require('gulp-clean');
|
||||
|
||||
gulp.task('default', ['sass']);
|
||||
var sources = [
|
||||
'archetypes',
|
||||
'i18n',
|
||||
'layouts',
|
||||
'static',
|
||||
'DCO',
|
||||
'LICENSE',
|
||||
'README.md',
|
||||
'theme.toml'
|
||||
];
|
||||
|
||||
gulp.task('default', ['build']);
|
||||
gulp.task('build', ['sass']);
|
||||
|
||||
gulp.task('release', function () {
|
||||
return gulp.src(sources)
|
||||
.pipe(tar('master.tar'))
|
||||
.pipe(gzip())
|
||||
.pipe(gulp.dest('dist'))
|
||||
});
|
||||
|
||||
gulp.task('sass', function () {
|
||||
return gulp.src('./src/main.scss')
|
||||
|
@ -12,6 +34,11 @@ gulp.task('sass', function () {
|
|||
.pipe(gulp.dest('./static/styles'));
|
||||
});
|
||||
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('./src/*.scss', ['sass']);
|
||||
gulp.task('clean', function () {
|
||||
return gulp.src(['dist', 'static/styles'])
|
||||
.pipe(clean());
|
||||
});
|
||||
|
||||
gulp.task('watch', function () {
|
||||
return gulp.watch('./src/*.scss', ['sass']);
|
||||
});
|
||||
|
|
28
package.json
28
package.json
|
@ -1,22 +1,36 @@
|
|||
{
|
||||
"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.",
|
||||
"version": "0.0.0",
|
||||
"description": "A Hugo theme that gets used within all of our websites.",
|
||||
"homepage": "https://github.com/go-gitea/theme#readme",
|
||||
"license": "Apache-2.0",
|
||||
"author": {
|
||||
"name": "The Gitea Authors",
|
||||
"email": "team@gitea.io"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/go-gitea/theme.git"
|
||||
"url": "https://github.com/go-gitea/theme.git"
|
||||
},
|
||||
"author": "The Gitea Authors",
|
||||
"license": "Apache-2.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/go-gitea/theme/issues"
|
||||
"url": "https://github.com/go-gitea/theme/issues",
|
||||
"email": "team@gitea.io"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "gulp clean",
|
||||
"build": "gulp build",
|
||||
"release": "gulp release",
|
||||
"watch": "gulp watch"
|
||||
},
|
||||
"homepage": "https://github.com/go-gitea/theme#readme",
|
||||
"dependencies": {
|
||||
"bootstrap": "^4.0.0-alpha.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-clean": "^0.3.2",
|
||||
"gulp-gzip": "^1.4.0",
|
||||
"gulp-sass": "^2.3.2",
|
||||
"gulp-sourcemaps": "^1.9.1"
|
||||
"gulp-sourcemaps": "^1.9.1",
|
||||
"gulp-tar": "^1.9.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue