mirror of
https://github.com/PucelaBits/websegura.git
synced 2024-07-04 12:05:45 +02:00
simplify config by renaming output folder
This commit is contained in:
parent
320e5bc98f
commit
fddc0bedbe
|
@ -1,11 +1,4 @@
|
|||
module.exports = function (eleventyConfig) {
|
||||
eleventyConfig.addPassthroughCopy("web/assets");
|
||||
eleventyConfig.addPassthroughCopy("web/images");
|
||||
eleventyConfig.addPassthroughCopy({ output: "_data/results" });
|
||||
|
||||
return {
|
||||
dir: {
|
||||
data: "../_site/_data",
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
4
crawl.sh
4
crawl.sh
|
@ -8,9 +8,9 @@ for site in $SITES; do
|
|||
done
|
||||
|
||||
sleep 60
|
||||
rm output/*.json
|
||||
rm _data/results/*.json
|
||||
|
||||
for site in $SITES; do
|
||||
echo "Requesting $site scan results"
|
||||
curl -s -X GET "https://http-observatory.security.mozilla.org/api/v1/analyze?host=$site" > output/${site//./!}.json
|
||||
curl -s -X GET "https://http-observatory.security.mozilla.org/api/v1/analyze?host=$site" > _data/results/${site//./!}.json
|
||||
done
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "npm run build:dev -- --serve --watch",
|
||||
"build:dev": "npx @11ty/eleventy --input=web",
|
||||
"serve": "npm run build:dev -- --serve --watch",
|
||||
"build": "env NODE_ENV=production npm run build:dev"
|
||||
},
|
||||
"repository": {
|
||||
|
|
Loading…
Reference in New Issue
Block a user