Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Commit 67e85f8

Browse files
update deps to patch security & remove yarn usage (#65)
1 parent adc11bc commit 67e85f8

File tree

6 files changed

+1660
-3035
lines changed

6 files changed

+1660
-3035
lines changed

.drone.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ pipeline:
1313
image: webhippie/nodejs:latest
1414
pull: true
1515
commands:
16-
- yarn install
17-
- yarn run clean
18-
- yarn run build
19-
- yarn run release
16+
- npm install
17+
- npm run clean
18+
- npm run build
19+
- npm run release
2020

2121
release:
2222
image: plugins/s3:1

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,31 @@ it into your `themes/gitea` folder and enable the theme with the
1616

1717
## Development
1818

19-
We choose [yarn](https://yarnpkg.com) to fetch our dependencies and
19+
We choose [npm](https://npmjs.org) to fetch our dependencies and
2020
[gulp](http://gulpjs.com/) for the pipeline. We won't cover the installation of
21-
nodejs or yarn, for that you can find enough guides depending on your operating
21+
nodejs or npm, for that you can find enough guides depending on your operating
2222
system. First of all you have to install the required dependencies:
2323

2424
```
25-
yarn install -q
25+
npm install
2626
```
2727

2828
After you have successfully installed the required dependencies you should be
2929
able to use these commands to just clean and build generated sources of the
3030
theme:
3131

3232
```
33-
yarn run clean
34-
yarn run build
35-
yarn run release
33+
npm run clean
34+
npm run build
35+
npm run release
3636
```
3737

3838
If you want to do more development on the theme we suggest to use the `watch`
3939
task we have defined to get the changes directly built after saving changes to
4040
a file:
4141

4242
```
43-
yarn run watch
43+
npm run watch
4444
```
4545

4646
When you are done with your changes just create a pull request, after merging
@@ -63,5 +63,5 @@ for the full license text.
6363
## Copyright
6464

6565
```
66-
Copyright (c) 2018 The Gitea Authors <https://gitea.io>
66+
Copyright (c) 2019 The Gitea Authors <https://gitea.io>
6767
```

gulpfile.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,29 @@ var sources = [
1616
'theme.toml'
1717
];
1818

19-
gulp.task('default', ['build']);
20-
gulp.task('build', ['sass']);
21-
22-
gulp.task('release', function () {
23-
return gulp.src(sources)
24-
.pipe(tar('master.tar'))
25-
.pipe(gzip())
26-
.pipe(gulp.dest('dist'))
27-
});
28-
29-
gulp.task('sass', function () {
19+
var build = function () {
3020
return gulp.src('./src/main.scss')
3121
.pipe(sourcemaps.init())
3222
.pipe(sass().on('error', sass.logError))
3323
.pipe(sourcemaps.write('.'))
3424
.pipe(gulp.dest('./static/styles'));
35-
});
25+
}
3626

3727
gulp.task('clean', function () {
38-
return gulp.src(['dist', 'static/styles'])
28+
return gulp.src(['dist', 'static/styles'], { allowEmpty: true })
3929
.pipe(clean());
4030
});
4131

4232
gulp.task('watch', function () {
43-
return gulp.watch('./src/*.scss', ['sass']);
33+
return gulp.watch('./src/*.scss', build);
4434
});
35+
36+
gulp.task('release', function () {
37+
return gulp.src(sources)
38+
.pipe(tar('master.tar'))
39+
.pipe(gzip())
40+
.pipe(gulp.dest('dist'))
41+
});
42+
43+
gulp.task('build', build);
44+
gulp.task('default', build);

0 commit comments

Comments
 (0)