Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
remove unneeded pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Robinson committed Jan 8, 2021
1 parent ca31343 commit 5e4ff4d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 82 deletions.
92 changes: 35 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"dev:postcss": "postcss src/assets/css/tailwind.css -o dist/assets/css/style.css --watch",
"postcss": "postcss src/assets/css/tailwind.css -o out.css --watch",
"dev": "run-p clean dev:* --print-label",
"build:eleventy": "cross-env ELEVENTY_ENV=production eleventy",
"build:postcss": "cross-env NODE_ENV=production postcss src/assets/css/tailwind.css -o dist/assets/css/style.css",
"build": "run-s clean build:* --print-label",
"build:eleventy": "eleventy",
"build:postcss": " postcss src/assets/css/tailwind.css -o dist/assets/css/style.css",
"build": "NODE_ENV=production ELEVENTY_ENV=production run-s clean build:* --print-label",
"local": "run-s build build:* && http-server ./dist -p 8081 --print-label"
},
"dependencies": {
Expand All @@ -38,16 +38,13 @@
"@11ty/eleventy-plugin-rss": "^1.0.9",
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.4",
"@tailwindcss/typography": "^0.3.1",
"autoprefixer": "^10.1.0",
"autoprefixer": "^10.2.1",
"clean-css": "^4.2.3",
"cross-env": "^7.0.3",
"cssnano": "^4.1.10",
"dotenv": "^8.2.0",
"http-server": "^0.12.3",
"npm-run-all": "^4.1.5",
"postcss-cli": "^8.3.1",
"rimraf": "^3.0.2",
"slugify": "^1.4.6",
"tailwindcss": "^2.0.2"
},
"devDependencies": {}
Expand Down
1 change: 0 additions & 1 deletion src/_data/build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require('dotenv').config()
const { DateTime } = require('luxon')


Expand Down
2 changes: 1 addition & 1 deletion src/posts/posts.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"layout": "layouts/post.njk",
"permalink": "/{{ title | slugify }}/index.html",
"permalink": "/{{ title | slug }}/index.html",
"tags": ["post"],
"author": "{{ meta.author }}"
}
16 changes: 0 additions & 16 deletions utils/filters.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const CleanCSS = require('clean-css')
const { DateTime } = require('luxon')
const slugify = require('slugify')


module.exports = {
Expand Down Expand Up @@ -32,20 +31,5 @@ module.exports = {
return new CleanCSS({}).minify(code).styles
},


/**
* Universal slug filter strips unsafe chars from URLs
*/
slugify: (string) => {
return slugify(string, {
lower: true,
replacement: '-',
remove: /[*+~.·,()'"`´%!?¿:@]/g,
})
},





}

0 comments on commit 5e4ff4d

Please sign in to comment.