1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 09:54:24 +04:00

build improvements, jekyll.data.package.json

This commit is contained in:
codecalm
2020-10-27 21:35:02 +01:00
parent b7715d9b2e
commit 4adaec8363
7 changed files with 10 additions and 25 deletions

View File

@@ -8,7 +8,6 @@ keep_files:
- dist - dist
- static - static
version: 1.0.0-alpha.7
title: Tabler title: Tabler
description: Premium and Open Source dashboard template with responsive and high quality UI. description: Premium and Open Source dashboard template with responsive and high quality UI.
homepage: https://tabler.io homepage: https://tabler.io

View File

@@ -323,22 +323,7 @@ gulp.task('add-banner', () => {
.pipe(gulp.dest(`${distDir}`)) .pipe(gulp.dest(`${distDir}`))
}); });
/** gulp.task('start', gulp.series('clean', 'sass', 'js', 'build-jekyll', gulp.parallel('watch-jekyll', 'watch', 'browser-sync')));
* 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}`;
return gulp.src(['./_config.yml', './package.json']) gulp.task('build', gulp.series('build-on', 'clean', 'sass', 'js', 'copy-images', 'copy-libs', 'add-banner'));
.pipe(replace(/version: .*/, `version: ${newVersion}`)) gulp.task('build-demo', gulp.series('build-on', 'build-jekyll', 'copy-static', 'copy-dist'));
.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'));

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "tabler", "name": "tabler",
"version": "1.0.0-alpha.7", "version": "1.0.0-alpha.8",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,13 +1,13 @@
{ {
"name": "tabler", "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.", "description": "Premium and Open Source dashboard template with responsive and high quality UI.",
"scripts": { "scripts": {
"start": "gulp start", "start": "gulp start",
"build": "gulp build", "build": "gulp build",
"svg-optimize": "svgo -f svg/brand --pretty", "svg-optimize": "svgo -f svg/brand --pretty",
"unused-files": "node build/unused-files.js", "unused-files": "node build/unused-files.js",
"release": "release-it --no-npm.publish" "release": "release-it"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -95,7 +95,7 @@
}, },
"release-it": { "release-it": {
"hooks": { "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}." "after:release": "echo Successfully released ${name} v${latestVersion} to ${repo.repository}."
}, },
"git": { "git": {

View File

@@ -1 +1 @@
alert('ok'); alert('ok2');

View File

@@ -0,0 +1 @@
../../../package.json

View File

@@ -1,6 +1,6 @@
<!-- <!--
* Tabler - {{ site.description }} * Tabler - {{ site.description }}
* @version {{ site.version }} * @version {{ site.data.package.version }}
* @link {{ site.homepage }} * @link {{ site.homepage }}
* Copyright 2018-{{ 'now' | date: "%Y" }} The Tabler Authors * Copyright 2018-{{ 'now' | date: "%Y" }} The Tabler Authors
* Copyright 2018-{{ 'now' | date: "%Y" }} codecalm.net Paweł Kuna * Copyright 2018-{{ 'now' | date: "%Y" }} codecalm.net Paweł Kuna