# Form.io Grid

### Steps to test Grid

1. Run `yarn install && yarn build`
2. Start a server in the root of this project `live-server --port=8000` or `python3 -m http.server 8000`
3. Navigate to [http://localhost:8000](http://localhost:8000)
4. Test sorting, filtering on the DataTable
   ![image](https://github.com/formio/grid/assets/112976114/bf4c0a80-4f68-4683-a294-d61f5ef1ee92)

### Steps for Build Formio Grid

- On master
- update `Changelog.md`& `package.json` version
- From grid repo runn the following
  - `yarn install`
  - `npm-check -u`
    - `del` should be 6.1.1
  - `yarn build`
- Commit changes

```bash
git add -A
git commit -m "Updated build."
git push origin master
## Create tag
git tag $TAG
git push origin $TAG
## Publish to PKG
npm publish --registry=https://pkg.form.io --tag=rc
```

### Auto

- Run `yarn deploy:test`

### Manually

- Go to bucket and `cdn.test-form.io`
- Go to `grid/`
- Upload the min files in dist
  - formio.grid.min.css
  - formio.grid.min.js
- Under permissions update Predefined ACLS's to `Grant public-read acces`
- Then in cloudfront create an invalidation for `cdn.test-form.io`
