Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ function slugify(s) {

module.exports = function(eleventyConfig) {
const src = process.env.SLATEDIR || 'source';
eleventyConfig.addPassthroughCopy(src+"/slate/css/*.css");
eleventyConfig.addPassthroughCopy(src+"/slate/js");
eleventyConfig.addPassthroughCopy(src+"/slate/img");
eleventyConfig.addPassthroughCopy(src+"/slate/fonts");
eleventyConfig.addWatchTarget(src+"/slate/css");
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.setLibrary("md",
markdownIt({
Expand All @@ -26,6 +26,5 @@ module.exports = function(eleventyConfig) {
typographer: true
}).use(markdownItAnchor, {
slugify: slugify
})
);
}));
};
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ node_modules/
npm-debug.log
_site/
source/slate/js/lib/*.min.js
source/slate/css/*.css
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint.ejs": "npx ejs-lint source/_includes/slate.ejs",
"make": "npx eleventy --input=source/*.md",
"test": "npx mocha",
"build.sass": "npx sass --update --style compressed --no-source-map ./source/slate/css",
"build.sass": "sass --update --style compressed --no-source-map ./source/slate/css:./_site/slate/css",
"build.sass.local": "cross-var npx sass --update --style compressed --no-source-map $SLATEDIR/slate/css:$SLATEDIR/slate/css",
"build.sass.test": "cross-var npx sass --update --style expanded --no-source-map $SLATEDIR/slate/css:$SLATEDIR/slate/css",
"build.11ty": "npx eleventy --input=./source/*.md",
Expand All @@ -22,6 +22,9 @@
"debug": "DEBUG=Eleventy* npx eleventy --dryrun --input=source/*.md",
"serve": "npm run build.sass && npx eleventy --input=source/*.md --serve --port=4567",
"serve.local": "cross-var npm run build.sass.local && cross-var npx eleventy --input=$SLATEDIR/*.md --output=$SLATEDIR/_site --serve --port=4567"
"watch:sass": "npm run build.sass -- --watch",
"watch:eleventy": "eleventy --input=source --serve --port=4567",
"start": "npm-run-all --parallel watch:*"
},
"keywords": [
"slate",
Expand Down Expand Up @@ -50,7 +53,8 @@
"shelljs": "^0.8.4"
},
"devDependencies": {
"mocha": "^9.0.1"
"mocha": "^9.0.1",
"npm-run-all": "^4.1.5"
},
"repository": {
"type": "git",
Expand Down