mirror of
https://github.com/tycrek/degoogle.git
synced 2025-08-22 14:23:08 +02:00
Automate updating "Updated"; Updated is also now a badge
This commit is contained in:
@@ -3,12 +3,13 @@
|
|||||||
const os = require('os');
|
const os = require('os');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
|
const moment = require('moment');
|
||||||
const YAML = require('yaml');
|
const YAML = require('yaml');
|
||||||
|
|
||||||
// A hacky sort of "class" to contain methods for each section
|
// A hacky sort of "class" to contain methods for each section
|
||||||
const BUILD_SECTION = {
|
const BUILD_SECTION = {
|
||||||
// TODO: Make more of these YAML-based functions
|
// TODO: Make more of these YAML-based functions
|
||||||
header: () => readFile('md/_header.md'),
|
header: () => readFile('md/_header.md').replace('{{DATE}}', moment().format('MMMM Do YYYY @h:mm a').replace(/ /g, '%20')),
|
||||||
index: () => readFile('md/_index.md'),
|
index: () => readFile('md/_index.md'),
|
||||||
contributing: () => readFile('md/_contributing.md'),
|
contributing: () => readFile('md/_contributing.md'),
|
||||||
browserExtensions: () => generateBrowserExtensions(),
|
browserExtensions: () => generateBrowserExtensions(),
|
||||||
|
@@ -12,10 +12,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Cutting Google out of your life *(Updated: May 2020)*
|
# Cutting Google out of your life
|
||||||
|
|
||||||
### *I don't have anything to hide, but I don't have anything to show you either.*
|
### *I don't have anything to hide, but I don't have anything to show you either.*
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
5
package-lock.json
generated
5
package-lock.json
generated
@@ -34,6 +34,11 @@
|
|||||||
"universalify": "^1.0.0"
|
"universalify": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"moment": {
|
||||||
|
"version": "2.26.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/moment/-/moment-2.26.0.tgz",
|
||||||
|
"integrity": "sha512-oIixUO+OamkUkwjhAVE18rAMfRJNsNe/Stid/gwHSOfHrOtw9EhAY2AHvdKZ/k/MggcYELFCJz/Sn2pL8b8JMw=="
|
||||||
|
},
|
||||||
"universalify": {
|
"universalify": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz",
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
"homepage": "https://github.com/tycrek/degoogle#readme",
|
"homepage": "https://github.com/tycrek/degoogle#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs-extra": "^9.0.0",
|
"fs-extra": "^9.0.0",
|
||||||
|
"moment": "^2.26.0",
|
||||||
"yaml": "^1.10.0"
|
"yaml": "^1.10.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user