dwmkerr / crosswords-js

Tiny, lightweight crossword control for the web.
https://dwmkerr.github.io/crosswords-js/
MIT License
71 stars 27 forks source link

Remove webpack and unused packages; improve docs; work on github actions #51

Closed pvspain closed 6 months ago

pvspain commented 8 months ago

Summary

Details

modified: .eslintrc.yml

Remove webpack ref

modified: .github/workflows/main.yml

Deploy demo site from dev/
Switch to github official actions for
uploading artifacts and deploying to Pages
Add new Node LTS version (20.x)

modified: .github/workflows/pull-request.yml

Remove hardcoded ubuntu version
Add new Node LTS version (20.x)

modified: .gitignore

Ignore rebase artifacts

new file: bin/demo-macos.sh

Bootstrap MacOS tools and packages, run dev/demo, then cleanup.
Repoint repo refs to dwmkerr

modified: cspell.json

more words

modified: README.md

Quickstart reference changed to package pulled from hub (npmjs.com)
Move documentation section to top of file
De-nest sections under Quickstart
Re-do "Setting up your dev environment"
    - add section on triangular workflow
    - specific bootstrap instructions for Linux/MacOS/Windows
Re-do "Quality assurance"
    - Change pre-commit heredoc to action "qa:install"
    - Reference production assets building under "Manual checks"

renamed: bin/bootstrap-linux.sh -> bin/bootstrap-posixish.sh

Combine instructions for Linux/MacOS

new file: bin/install-githook.sh

Add script to install QA hooks - used by action "qa:install"

modified: bin/update-package.sh

Add "npm ci" step

modified: dist/crosswords.css

modified: dist/crosswords.js

new file: dist/crosswords.umd.cjs

Rebuilt via 'npm build'

modified: package-lock.json

Rebuilt via 'npm ci'

modified: package.json

Switch from yaml -> js-yaml
Removed webpack
Removed unused packages (determined by 'npx depcheck')
Change build action - vite replaces lessc call
Change action - dev:prod -> dev:preview
Add action qa:install to install git hook
Drop action start:angular - broken; moving to separate repo

modified: src/cell-map.mjs

modified: src/crossword-controller.mjs

Update location of newCellElement() in comments

modified: src/crossword-model.mjs

Change from yaml -> js-yaml

renamed: dev/crosswords.js -> src/crosswords.js

Add ../style/crosswords.less import to get
vite to transpile src/crosswords.less -> dist/crosswords.css

modified: dev/index.js

Fxup script location

modified: test/crossword-model.specs.mjs

Add bletchley to tested crosswords
Refactor test on return value from newCrosswordModel()
- null on failure, and model object otherwise

new file: vite.config.js

Setup config for package 'build' action
Add 'rollupOptions' hack to rename css file generated
in src/crosswords.js

new file: .githook-pre-commit

Extract script from README.md
Add steps to build and stage distribution assets

modified: docs/crossword-styling.md

Add script location for usage of --row-count, --column-count
Add note for vite generation of CSS assets

modified: pull-request-config.sh

Add vars for merge rollback location - process now includes
fast-forward commits for simpler commit chains

modified: src/crossword-cluesview.mjs, src/crossword-gridview.mjs

Replace multiple addClass() calls with an addClasses() call

modified: src/crossword-model.mjs

Switch from yaml -> js-yaml

modified: style/crosswords.less

Resolve lint warnings - duplicate rules
Sort cell sections to match layering order in DOM
Amalgamate partial sections for same-names

modified: style/cwdimensions.less

Add code location for JS usage of --row-count, --column-count

modified: style/crosswords.less, dev/index.html, dev/index.js, dev/index.less

nfc

deleted: webpack.config.js, jsconfig.json, pull-request.config

Unused

deleted: makefile

Unused now. Using dev/ demo for dwmkerr.github.io

deleted: test/index.specs.mjs

TODO: replace with tests on  src/crosswords.js

deleted: src/index.mjs

src/crosswords.js contains package exports
pvspain commented 6 months ago

Hi @dwmkerr, can we merge this PR please? I'm hoping it will fix the demo site.

dwmkerr commented 6 months ago

Sure @pvspain any chance you can fix the conflicts and I'll then merge in?

pvspain commented 6 months ago

Sure @pvspain any chance you can fix the conflicts and I'll then merge in?

Fixed now. Thanks @dwmkerr

pvspain commented 6 months ago

All done Dave - seasons greetings BTW! There' a couple of other PRS waiting for review - resolutions for Issues

43 and #53.

Cheers, Paul.

On Thu, 21 Dec 2023, 04:31 Dave Kerr, @.***> wrote:

Sure @pvspain https://github.com/pvspain any chance you can fix the conflicts and I'll then merge in?

— Reply to this email directly, view it on GitHub https://github.com/dwmkerr/crosswords-js/pull/51#issuecomment-1864868698, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFO4S2TOHMPMSSMJLX3EQLYKMOGDAVCNFSM6AAAAAA6PL2EXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRUHA3DQNRZHA . You are receiving this because you were mentioned.Message ID: @.***>

dwmkerr commented 6 months ago

Amazing, thanks PauL!