update deps to patch security & remove yarn usage (#65)

This commit is contained in:
techknowlogick 2019-01-19 14:24:21 -05:00 committed by GitHub
parent adc11bc6ba
commit 67e85f8142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1657 additions and 3032 deletions

View File

@ -13,10 +13,10 @@ pipeline:
image: webhippie/nodejs:latest
pull: true
commands:
- yarn install
- yarn run clean
- yarn run build
- yarn run release
- npm install
- npm run clean
- npm run build
- npm run release
release:
image: plugins/s3:1

View File

@ -16,13 +16,13 @@ it into your `themes/gitea` folder and enable the theme with the
## Development
We choose [yarn](https://yarnpkg.com) to fetch our dependencies and
We choose [npm](https://npmjs.org) to fetch our dependencies and
[gulp](http://gulpjs.com/) for the pipeline. We won't cover the installation of
nodejs or yarn, for that you can find enough guides depending on your operating
nodejs or npm, for that you can find enough guides depending on your operating
system. First of all you have to install the required dependencies:
```
yarn install -q
npm install
```
After you have successfully installed the required dependencies you should be
@ -30,9 +30,9 @@ able to use these commands to just clean and build generated sources of the
theme:
```
yarn run clean
yarn run build
yarn run release
npm run clean
npm run build
npm run release
```
If you want to do more development on the theme we suggest to use the `watch`
@ -40,7 +40,7 @@ task we have defined to get the changes directly built after saving changes to
a file:
```
yarn run watch
npm run watch
```
When you are done with your changes just create a pull request, after merging
@ -63,5 +63,5 @@ for the full license text.
## Copyright
```
Copyright (c) 2018 The Gitea Authors <https://gitea.io>
Copyright (c) 2019 The Gitea Authors <https://gitea.io>
```

View File

@ -16,8 +16,22 @@ var sources = [
'theme.toml'
];
gulp.task('default', ['build']);
gulp.task('build', ['sass']);
var build = function () {
return gulp.src('./src/main.scss')
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./static/styles'));
}
gulp.task('clean', function () {
return gulp.src(['dist', 'static/styles'], { allowEmpty: true })
.pipe(clean());
});
gulp.task('watch', function () {
return gulp.watch('./src/*.scss', build);
});
gulp.task('release', function () {
return gulp.src(sources)
@ -26,19 +40,5 @@ gulp.task('release', function () {
.pipe(gulp.dest('dist'))
});
gulp.task('sass', function () {
return gulp.src('./src/main.scss')
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./static/styles'));
});
gulp.task('clean', function () {
return gulp.src(['dist', 'static/styles'])
.pipe(clean());
});
gulp.task('watch', function () {
return gulp.watch('./src/*.scss', ['sass']);
});
gulp.task('build', build);
gulp.task('default', build);

2234
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,7 @@
"bulmaswatch": "^0.6.2"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp": "^4.0.0",
"gulp-clean": "^0.3.2",
"gulp-gzip": "^1.4.0",
"gulp-sass": "^3.1.0",

2393
yarn.lock

File diff suppressed because it is too large Load Diff