Skip to content

Commit a14ab29

Browse files
committed
fix: add missing files for replacing new version
also make the copyright follow current year
1 parent 008b2cf commit a14ab29

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Gruntfile.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ module.exports = function(grunt) {
533533
// Replace text to update the version string
534534
replace: {
535535
version: {
536-
src: ['bower.json', 'package.js', 'pug/**/*.html'],
536+
src: ['bower.json', 'package.js', 'pug/**/*.html', 'pug/_navbar.pug', 'js/global.js'],
537537
overwrite: true,
538538
replacements: [
539539
{
@@ -572,7 +572,9 @@ module.exports = function(grunt) {
572572
banner:
573573
'/*!\n * Materialize v' +
574574
grunt.option('newver') +
575-
' (https://materializecss.github.io/materialize)\n * Copyright 2014-2021 Materialize\n * MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)\n */',
575+
' (https://materializecss.github.io/materialize)\n * Copyright 2014-' +
576+
new Date().getFullYear() +
577+
' Materialize\n * MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)\n */',
576578
linebreak: true
577579
},
578580
files: {

pug/_navbar.pug

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ header
1414
a#logo-container.brand-logo(href='/materialize/')
1515
object#front-page-logo(type='image/svg+xml', data='res/materialize.svg') Your browser does not support SVG
1616
li.version
17-
a.dropdown-trigger(href='#' data-target='version-dropdown') 1.1.0
17+
a.dropdown-trigger(href='#' data-target='version-dropdown') 1.2.0
1818
<svg class="caret" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg>
1919
ul#version-dropdown.dropdown-content
2020
li
21-
a 1.1.0
21+
a 1.2.0
2222
li
2323
a(href='https://materializecss.com/' target='_blank' rel='noopener noreferrer') 1.0.0
2424
li

0 commit comments

Comments
 (0)