Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
increpare committed Dec 3, 2024
1 parent 9821f2b commit c5ce307
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 37 deletions.
4 changes: 2 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ The structure of PuzzleScript is the following:

## Getting compilation working

`./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:
`./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, with this command:

```
npm install
```

This will install the specific packages and versions as listed in `package.json`.
This will install the packages listed in `package.json`.

Then you should be able to compile the site (outputted to the `./bin/` directory) with

Expand Down
4 changes: 1 addition & 3 deletions compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,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 [email protected] concat ycssmin terser gzipper html-minifier-terser glob@8
(see DEVELOPMENT.md for information on how to use this script/how to set it up)
*/

const fs = require("fs");
Expand Down
35 changes: 3 additions & 32 deletions installing_on_windows_diary.txt
Original file line number Diff line number Diff line change
@@ -1,41 +1,12 @@
Ok keeping track of what I do to get puzzlescript building on windows.
Ok keeping track of what I do to get puzzlescript building on windows. (I haven't done this in a while from scratch, it might be out of date)

1 - sync to github repo
2 - try opening the folder in vs code
3 - realize that the build scripts rely on the folder being called src and there being a parallel bin directory
*4 - move everything to a src directory in the github structure (probably breaking things on mac)
*5 - edited the ..gitignore file to take this into account
6 - try to run the non-compiled version (src/editor.html). Oh I can just run it in edge. Also chrome. Also firefox. (Much easier than on mac, where you need a http server).


what external tools does my bash script need?

images/minimize needs pngcrush
https://www.npmjs.com/package/pngcrush

css/concat uses concat
https://www.npmjs.com/package/concat

closure.jar
https://www.npmjs.com/package/google-closure-compiler

yuicompressor-2.4.8.jar
https://www.npmjs.com/package/ycssmin

htmlcompressor-1.5.3.jar
https://www.npmjs.com/package/html-minifier-terser

gzipper needs perl, lol
gzipper
https://www.npmjs.com/package/tar

inliner
https://www.npmjs.com/package/inliner

directory cp = ncp

7 - install npm packages I'll probably need:
npm i tar html-minifier-terser ycssmin google-closure-compiler concat imagemin imagemin-pngcrush inliner ncp

7 - install packages
> npm install


0 comments on commit c5ce307

Please sign in to comment.