Skip to content

Commit 9347bb8

Browse files
committed
replace custom scripts with Eleventy
1 parent 7064f06 commit 9347bb8

File tree

11 files changed

+1409
-1086
lines changed

11 files changed

+1409
-1086
lines changed

package.json

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
{
22
"title": "Spatial Model Editor website",
33
"name": "sme-website",
4-
"version": "1.0.0",
4+
"version": "2.0.0",
55
"scripts": {
6-
"build": "npm run clean && npm run build:pug && npm run build:scripts-scss && npm run build:assets",
7-
"build:assets": "node scripts/build-assets.js",
8-
"build:pug": "node scripts/build-pug.js",
9-
"build:scripts-scss": "node scripts/build-scripts-scss.js",
10-
"clean": "node scripts/clean.js",
11-
"start": "npm run build && node scripts/start.js"
6+
"build:webpack": "webpack --config webpack.config.js",
7+
"build:11ty": "npx @11ty/eleventy",
8+
"build": "npm run build:webpack && npm run build:11ty",
9+
"start": "concurrently \"webpack --watch\" \"npx @11ty/eleventy --serve\""
1210
},
1311
"repository": {
1412
"type": "git",
@@ -22,9 +20,9 @@
2220
"bootstrap-icons": "1.13.1"
2321
},
2422
"devDependencies": {
23+
"@11ty/eleventy": "3.0.0",
24+
"@11ty/eleventy-plugin-pug": "^1.0.0",
2525
"autoprefixer": "10.4.27",
26-
"browser-sync": "3.0.4",
27-
"chokidar": "5.0.0",
2826
"concurrently": "9.2.1",
2927
"css-loader": "7.1.4",
3028
"css-minimizer-webpack-plugin": "7.0.4",
@@ -36,11 +34,9 @@
3634
"sass": "1.97.3",
3735
"sass-loader": "16.0.7",
3836
"sharp": "0.34.5",
39-
"shelljs": "0.10.0",
4037
"style-loader": "4.0.0",
41-
"uglify-js": "3.19.3",
42-
"upath": "2.0.1",
4338
"webpack": "5.105.3",
39+
"webpack-cli": "6.0.1",
4440
"yaml": "2.8.2"
4541
}
4642
}

0 commit comments

Comments
 (0)