Update to remove Gulp and add readme

This commit is contained in:
William Moore 2024-05-14 14:24:13 -05:00
parent c08a5560a9
commit a69d5b42b8
4 changed files with 9 additions and 3864 deletions

View File

@ -1,2 +1,9 @@
# timepiece
# Timepiece
Timepiece is a web component formatting the date and time (in UTC) in a structured and semi-decimal way.
First, the date. It is simple. after the hourglass and before @ sign is the date. The value before the decimal is the year. The value after is the percent the current day is in the year.
Finally, the time. After the @ sign is the time expressed in a range from 0.00 to 1000.00 beats. A beat is defined as (3600 x the hour + 60 x the minute + the seconds) / 86.4. For the timepiece web component, fractional beats are allowed up to 1/100 of a beat.
And there you have it! William's Timepiece format.

View File

@ -1,23 +0,0 @@
const replace = require('gulp-replace');
const { src, dest } = require('gulp');
require('dotenv/config');
// or replace multiple strings
function replaceTemplate() {
src(['./dist/js/**/*.js'])
.pipe(replace(/TEASENSE_URI/g, process.env.TEASENSE_URI))
.pipe(replace(/RAINFALL_URI/g, process.env.RAINFALL_URI))
.pipe(replace(/OPENWEATHER_API_KEY/g, process.env.OPENWEATHER_API_KEY))
.pipe(replace(/SPLORK_URI/g, process.env.SPLORK_URI))
.pipe(replace(/RSS_ORIGIN/g, process.env.RSS_ORIGIN))
.pipe(replace(/RSS_API_HOST/g, process.env.RSS_API_HOST))
.pipe(replace(/RSS_API_KEY/g, process.env.RSS_API_KEY))
.pipe(dest('./dist/js'));
return src(['./dist/**/*.html'])
.pipe(replace(/FONTAWESOME_SCRIPT_URL/g, process.env.FONTAWESOME_SCRIPT_URL))
.pipe(dest('./dist/'));
};
exports.default = replaceTemplate;

3837
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"start": "npm run build && npm run deploy",
"build": "npx tsc && cp -R public dist && npx gulp && npx rollup -c",
"build": "npx tsc && cp -R public dist && npx rollup -c",
"deploy": "rm -rf ~/timepiece-build/*.html && rm -rf ~/timepiece-build/*.js && cp -R build/* ~/timepiece-build",
"clean": "rm -rf build && rm -rf dist",
"test": "echo \"Error: no test specified\" && exit 1"
@ -24,8 +24,6 @@
"@web/rollup-plugin-copy": "^0.4.0",
"@web/rollup-plugin-html": "^2.0.0",
"@web/rollup-plugin-polyfills-loader": "^2.0.0",
"gulp": "^4.0.2",
"gulp-replace": "^1.1.4",
"rollup": "^2.79.1",
"rollup-plugin-minify-html-literals": "^1.2.6",
"rollup-plugin-summary": "^2.0.0"