mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 01:44:25 +04:00
build improvements, jekyll.data.package.json
This commit is contained in:
@@ -8,7 +8,6 @@ keep_files:
|
||||
- dist
|
||||
- static
|
||||
|
||||
version: 1.0.0-alpha.7
|
||||
title: Tabler
|
||||
description: Premium and Open Source dashboard template with responsive and high quality UI.
|
||||
homepage: https://tabler.io
|
||||
|
||||
21
gulpfile.js
21
gulpfile.js
@@ -323,22 +323,7 @@ gulp.task('add-banner', () => {
|
||||
.pipe(gulp.dest(`${distDir}`))
|
||||
});
|
||||
|
||||
/**
|
||||
* Update version of Tabler in jekyll _config.yml and package.json
|
||||
*/
|
||||
gulp.task('update-version', () => {
|
||||
const oldVersion = argv['latest-version'] || `${pkg.version}`,
|
||||
newVersion = argv['new-version'] || `${pkg.version}`;
|
||||
gulp.task('start', gulp.series('clean', 'sass', 'js', 'build-jekyll', gulp.parallel('watch-jekyll', 'watch', 'browser-sync')));
|
||||
|
||||
return gulp.src(['./_config.yml', './package.json'])
|
||||
.pipe(replace(/version: .*/, `version: ${newVersion}`))
|
||||
.pipe(replace('"version": "' + oldVersion + '"', `"version": "${newVersion}"`))
|
||||
.pipe(replace('"version_short": "' + oldVersion + '"', `"version_short": "${newVersion}"`))
|
||||
.pipe(gulp.dest('.'));
|
||||
});
|
||||
|
||||
gulp.task('start', gulp.series('clean', 'sass', 'build-jekyll', /*'js',*/ gulp.parallel('watch-jekyll', 'watch', 'browser-sync')));
|
||||
|
||||
gulp.task('prepare-demo', gulp.series('build-jekyll', 'copy-static', 'copy-dist'));
|
||||
|
||||
gulp.task('build', gulp.series('build-on', 'update-version', 'clean', 'sass'/*, 'js'*/, 'copy-images', 'copy-libs', 'add-banner', 'prepare-demo'));
|
||||
gulp.task('build', gulp.series('build-on', 'clean', 'sass', 'js', 'copy-images', 'copy-libs', 'add-banner'));
|
||||
gulp.task('build-demo', gulp.series('build-on', 'build-jekyll', 'copy-static', 'copy-dist'));
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tabler",
|
||||
"version": "1.0.0-alpha.7",
|
||||
"version": "1.0.0-alpha.8",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "tabler",
|
||||
"version": "1.0.0-alpha.7",
|
||||
"version": "1.0.0-alpha.11",
|
||||
"description": "Premium and Open Source dashboard template with responsive and high quality UI.",
|
||||
"scripts": {
|
||||
"start": "gulp start",
|
||||
"build": "gulp build",
|
||||
"svg-optimize": "svgo -f svg/brand --pretty",
|
||||
"unused-files": "node build/unused-files.js",
|
||||
"release": "release-it --no-npm.publish"
|
||||
"release": "release-it"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -95,7 +95,7 @@
|
||||
},
|
||||
"release-it": {
|
||||
"hooks": {
|
||||
"after:bump": "gulp build --latest-version ${latestVersion} --new-version ${version}",
|
||||
"after:bump": "gulp build --latest-version ${latestVersion} --new-version ${version} && gulp build-demo",
|
||||
"after:release": "echo Successfully released ${name} v${latestVersion} to ${repo.repository}."
|
||||
},
|
||||
"git": {
|
||||
|
||||
@@ -1 +1 @@
|
||||
alert('ok');
|
||||
alert('ok2');
|
||||
1
src/pages/_data/package.json
Symbolic link
1
src/pages/_data/package.json
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../package.json
|
||||
@@ -1,6 +1,6 @@
|
||||
<!--
|
||||
* Tabler - {{ site.description }}
|
||||
* @version {{ site.version }}
|
||||
* @version {{ site.data.package.version }}
|
||||
* @link {{ site.homepage }}
|
||||
* Copyright 2018-{{ 'now' | date: "%Y" }} The Tabler Authors
|
||||
* Copyright 2018-{{ 'now' | date: "%Y" }} codecalm.net Paweł Kuna
|
||||
|
||||
Reference in New Issue
Block a user