-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
59 lines (59 loc) · 3.6 KB
/
package.json
File metadata and controls
59 lines (59 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"name": "polyglot-tech-blog",
"version": "1.2.0",
"description": "11ty starter template with i18n, syntax highlight, light and dark themes, SASS support and Dark Mode.",
"keywords": [
"11ty",
"SASS",
"SCSS",
"eleventy",
"i18n",
"localization",
"multilingual",
"polyglot"
],
"author": "Florent Tassy",
"license": "Apache-2.0",
"homepage": "https://polyglot-tech-blog.netlify.app",
"repository": {
"type": "git",
"url": "https://gitlab.com/florent_tassy/polyglot-tech-blog"
},
"scripts": {
"watch:sass": "sass --watch src/sass src/css",
"watch:eleventy": "eleventy --serve",
"build:sass": "sass src/sass src/css",
"build:eleventy": "eleventy",
"dev": "npm-run-all build:sass --parallel watch:*",
"build": "npm-run-all build:sass --parallel build:*",
"set:dev:baseUrl": "node -e \"const fs = require('fs'); const host = require('./prod.js'); const data = 'src/_data/data.json'; let content = fs.readFileSync(data, 'utf8'); fs.writeFileSync(data, content.replace(host.baseUrl, 'http://localhost:8080'));\"",
"set:dev:pathPrefix": "node -e \"const fs = require('fs'); const host = require('./prod.js'); const config = './.eleventy.js'; let content = fs.readFileSync(config, 'utf8'); fs.writeFileSync(config, content.replace('pathPrefix: \\\"'+host.pathPrefix+'\\\"', 'pathPrefix: \\\"\\\"'));\"",
"set:prod:baseUrl": "node -e \"const fs = require('fs'); const host = require('./prod.js'); const data = 'src/_data/data.json'; let content = fs.readFileSync(data, 'utf8'); fs.writeFileSync(data, content.replace('http://localhost:8080', host.baseUrl));\"",
"set:prod:pathPrefix": "node -e \"const fs = require('fs'); const host = require('./prod.js'); const config = './.eleventy.js'; let content = fs.readFileSync(config, 'utf8'); fs.writeFileSync(config, content.replace('pathPrefix: \\\"\\\"', 'pathPrefix: \\\"'+host.pathPrefix+'\\\"'));\"",
"prenetlify:build": "cp -f netlify.js prod.js && npm run clean && npm run set:prod:baseUrl && npm run set:prod:pathPrefix",
"netlify:build": "npm run build",
"postnetlify:build": "npm run set:dev:baseUrl && npm run set:dev:pathPrefix && rm -f prod.js",
"premanual:build": "npm run clean && npm run set:prod:baseUrl && npm run set:prod:pathPrefix",
"manual:build": "npm run build",
"postmanual:build": "npm run set:dev:baseUrl && npm run set:dev:pathPrefix",
"debug:unix": "DEBUG=Eleventy* && npx @11ty/eleventy && npm run dev",
"check:dependencies": "npx auditjs ossi && npm outdated && npm audit",
"check:markup:unix": "java -jar node_modules/vnu-jar/build/dist/vnu.jar --skip-non-html ./public",
"check:css:unix": "java -jar node_modules/vnu-jar/build/dist/vnu.jar --skip-non-css ./public",
"check:markup:win": "java -jar node_modules\\vnu-jar\\build\\dist\\vnu.jar --skip-non-html .\\public",
"check:css:win": "java -jar node_modules\\vnu-jar\\build\\dist\\vnu.jar --skip-non-css .\\public",
"clean": "node -e \"const fs = require('fs'); fs.rm('public',{recursive: true}, () => fs.mkdir('public', () => console.log('\"public\" cleaned...')))\""
},
"devDependencies": {
"@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-plugin-rss": "^1.2.0",
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
"auditjs": "^4.0.45",
"chota": "^0.9.2",
"clean-css": "^5.3.3",
"html-minifier": "^4.0.0",
"npm-run-all": "^4.1.5",
"sass": "^1.79.3",
"vnu-jar": "^23.4.11"
}
}