aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author2021-09-23 18:56:13 +0530
committer2021-09-23 19:01:51 +0530
commit67995edb049ee3df591a70911d61630c3bdc6442 (patch)
treef556b262c649fe577a4e5b3f2588dcda97d90266
parentinitial commit (diff)
downloadsudomsg-67995edb049ee3df591a70911d61630c3bdc6442.tar
sudomsg-67995edb049ee3df591a70911d61630c3bdc6442.tar.gz
sudomsg-67995edb049ee3df591a70911d61630c3bdc6442.tar.bz2
sudomsg-67995edb049ee3df591a70911d61630c3bdc6442.tar.lz
sudomsg-67995edb049ee3df591a70911d61630c3bdc6442.tar.xz
sudomsg-67995edb049ee3df591a70911d61630c3bdc6442.tar.zst
sudomsg-67995edb049ee3df591a70911d61630c3bdc6442.zip
make it ready to deploy
-rw-r--r--.gitignore105
-rw-r--r--eleventy.config.js13
-rw-r--r--package.json9
-rw-r--r--src/css.11ty.js1
4 files changed, 6 insertions, 122 deletions
diff --git a/.gitignore b/.gitignore
index 6704566..3d2acc9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,104 +1,3 @@
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-lerna-debug.log*
-
-# Diagnostic reports (https://nodejs.org/api/report.html)
-report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
-
-# Runtime data
-pids
-*.pid
-*.seed
-*.pid.lock
-
-# Directory for instrumented libs generated by jscoverage/JSCover
-lib-cov
-
-# Coverage directory used by tools like istanbul
-coverage
-*.lcov
-
-# nyc test coverage
-.nyc_output
-
-# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
-.grunt
-
-# Bower dependency directory (https://bower.io/)
-bower_components
-
-# node-waf configuration
-.lock-wscript
-
-# Compiled binary addons (https://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directories
-node_modules/
-jspm_packages/
-
-# TypeScript v1 declaration files
-typings/
-
-# TypeScript cache
-*.tsbuildinfo
-
-# Optional npm cache directory
-.npm
-
-# Optional eslint cache
-.eslintcache
-
-# Microbundle cache
-.rpt2_cache/
-.rts2_cache_cjs/
-.rts2_cache_es/
-.rts2_cache_umd/
-
-# Optional REPL history
-.node_repl_history
-
-# Output of 'npm pack'
-*.tgz
-
-# Yarn Integrity file
-.yarn-integrity
-
-# dotenv environment variables file
-.env
-.env.test
-
-# parcel-bundler cache (https://parceljs.org/)
-.cache
-
-# Next.js build output
-.next
-
-# Nuxt.js build / generate output
-.nuxt
dist
-
-# Gatsby files
-.cache/
-# Comment in the public line in if your project uses Gatsby and *not* Next.js
-# https://nextjs.org/blog/next-9-1#public-directory-support
-# public
-
-# vuepress build output
-.vuepress/dist
-
-# Serverless directories
-.serverless/
-
-# FuseBox cache
-.fusebox/
-
-# DynamoDB Local files
-.dynamodb/
-
-# TernJS port file
-.tern-port
+node_modules
+static \ No newline at end of file
diff --git a/eleventy.config.js b/eleventy.config.js
index b2e2a5b..9adfcf0 100644
--- a/eleventy.config.js
+++ b/eleventy.config.js
@@ -8,19 +8,6 @@ module.exports = eleventyConfig => {
typographer: true
}).use(require('markdown-it-attrs')))
- eleventyConfig.addTransform('htmlmin', (content, outputPath) => {
- if (outputPath && outputPath.endsWith('.html')) {
- const minified = require("html-minifier").minify(content, {
- useShortDoctype: true,
- removeComments: true,
- collapseWhitespace: true
- })
- return minified
- }
-
- return content
- })
-
const { DateTime } = require('luxon')
eleventyConfig.addFilter('datefmt', date => {
return DateTime.fromJSDate(date, { zone: 'utc' }).toFormat("dd LLL yyyy");
diff --git a/package.json b/package.json
index f97db49..8e14638 100644
--- a/package.json
+++ b/package.json
@@ -1,13 +1,13 @@
{
"name": "sudomsg",
"version": "1.0.0",
- "description": "Website",
+ "description": "Sudomsg Website",
"scripts": {
"build": "eleventy",
- "serve": "http-server dist/ -g",
+ "serve": "http-server dist/ -g"
},
"keywords": [],
- "author": "",
+ "author": "Marc Pervaz Boocha",
"license": "ISC",
"devDependencies": {
"@11ty/eleventy": "^0.12.1",
@@ -24,7 +24,6 @@
},
"browserslist": [
"defaults",
- "not IE 11",
- "maintained node versions"
+ "not IE 11"
]
}
diff --git a/src/css.11ty.js b/src/css.11ty.js
index a3ef254..3a5b9df 100644
--- a/src/css.11ty.js
+++ b/src/css.11ty.js
@@ -27,7 +27,6 @@ module.exports = class {
return await postcss([
require('postcss-import'),
require('autoprefixer'),
- require('cssnano')
])
.process(await fs.readFileSync(inputfile), {
from: inputfile