Commit c22df3f3 authored by Fox Danger Piacenti's avatar Fox Danger Piacenti
Browse files

feat: Form handling

parent 35ad4771
Loading
Loading
Loading
Loading
Loading
+2 −0
Changes for .gitlab-ci.yml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ eslint:
  image: node:17-alpine
  script:
    - apk add make
    - apk add inotify-tools
    - make install_prereqs
    - make quality

@@ -17,6 +18,7 @@ tests-node17:
  image: node:17-alpine
  script:
    - apk add make
    - apk add inotify-tools
    - make install_prereqs
    - make test

.gitmodules

0 → 100644
+3 −0
Changes for .gitmodules: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
[submodule "providence-demo"]
	path = providence-demo
	url = https://gitlab.com/opencraft/dev/providence-demo.git

.nvmrc

0 → 100644
+1 −0
Changes for .nvmrc: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
v16.15.0
+15 −5
Changes for Makefile: 15 added lines, 5 removed lines.
Original line number Diff line number Diff line
.DEFAULT_GOAL := oneshot

install_prereqs:
	npm install -D
	which inotifywait || (echo "Please install inotify-tools/inotifywait using whichever means your OS requires." && exit 1)
	curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
	. ~/.nvm/nvm.sh && npm install -D
	git submodule init
	cd providence-demo && . ~/.nvm/nvm.sh && npm install

build:  # Build the NPM package.
	rm -rvf dist
	cp -a src dist
	cp tsconfig.json dist/
	sed -i -e '/"rootDir"/d' dist/tsconfig.json
	cd dist && npx tsc && cd ..
	cd dist && . ~/.nvm/nvm.sh && npx tsc && cd ..
	rm -rvf dist/__mocks__
	find dist -depth -regex '.*/specs[/]?.*' -delete
	cp package.json README.md LICENSE dist/

tarball: build
	cd dist && . ~/.nvm/nvm.sh && npm pack

demo_loop:
	bash -l ./force-recompile.sh

oneshot: install_prereqs build

quality:
	npm run lint
	. ~/.nvm/nvm.sh && npm run lint

test:
	npm run test
	. ~/.nvm/nvm.sh && npm run test

publish: install_prereqs build qa
	cd dist && npm publish --access public
	cd dist && . ~/.nvm/nvm.sh && npm publish --access public

qa: quality test
+1 −1
Changes for docs/configuration.rst: 1 added line, 1 removed line.
Original line number Diff line number Diff line
Configuration
=============

Providence's configuration options allow you to customize some of its automation. Each state management plugin comes with its own default settings for Providence that handle translating its functionality. In most cases, you'll not want to change anything more than the :js:attr:`netCall <GlobalOptions.netCall>` option. However, you can extend Providence's controllers, or even implement support for your favorite state management backend if the included ones don't hande your needs.
Providence's configuration options allow you to customize some of its automation. Each state management plugin comes with its own default settings for Providence that handle translating its functionality. Providence tries as much as possible to configure with sane defaults, but you will likely have to override at least a few settings, such as the :js:attr:`netCall <ProvidenceClient.netCall>` setting in the :js:class:`client <ProvidenceClient>`.

.. js:autoclass:: GlobalOptions
    :members:
Loading