diff --git a/.gitignore b/.gitignore index 211d9aac..094a564d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ bin/ *.swp src - Kopie +/node_modules diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 38e87c6c..f54ce1d4 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -15,9 +15,10 @@ The structure of PuzzleScript is the following: `./compile.js` uses [node](https://nodejs.org). So first off you have to install that. Then you need to install the packages that it uses: ``` -npm i web-resource-inliner ncp rimraf compress-images gifsicle@5.3.0 glob concat ycssmin terser html-minifier-terser gzipper +node install ``` +The specific packages and versions are now in `package.json`. Then you should be able to compile the site (outputted to the `./bin/` directory) with ``` diff --git a/compile.js b/compile.js index 80a02e09..0a6daf27 100644 --- a/compile.js +++ b/compile.js @@ -6,7 +6,7 @@ creates a highly compressed release build in bin of the contents of src packages used: -npm i rimraf compress-images web-resource-inliner ncp gifsicle@5.3.0 concat ycssmin terser gzipper html-minifier-terser glob +npm i rimraf compress-images web-resource-inliner ncp gifsicle@5.3.0 concat ycssmin terser gzipper html-minifier-terser glob@8 */ const fs = require("fs"); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..5e34f044 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "(increpare)PuzzleScript", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..054cd726 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "dependencies": { + "compress-images": "^2.0.5", + "concat": "^1.0.3", + "gifsicle": "^5.3.0", + "glob": "^8.1.0", + "gzipper": "^7.2.0", + "html-minifier-terser": "^7.2.0", + "ncp": "^2.0.0", + "rimraf": "^3.0.2", + "terser": "^5.17.1", + "web-resource-inliner": "^6.0.1", + "ycssmin": "^1.0.1" + } +}