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

This commit is contained in:
techknowlogick 2019-01-19 14:24:21 -05:00 коммит произвёл GitHub
Родитель adc11bc6ba
Коммит 67e85f8142
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 1657 добавлений и 3032 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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>
```

Просмотреть файл

@ -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 сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -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

Разница между файлами не показана из-за своего большого размера Загрузить разницу