Skip to content

Commit

Permalink
Merge 1169e72 into da9e26d
Browse files Browse the repository at this point in the history
  • Loading branch information
andstor committed Apr 27, 2020
2 parents da9e26d + 1169e72 commit 0901f75
Show file tree
Hide file tree
Showing 63 changed files with 196,612 additions and 3,926 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ insert_final_newline = true
[*.yml]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
insert_final_newline = true
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build

on: ["push", "pull_request"]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v1

- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 12

- name: Test
run: |
npm ci
npm run build --if-present
npm run coverage || npm test
- name: Coverage file existence
id: check_files
uses: andstor/file-existence-action@v1
with:
files: ./coverage/lcov.info

- name: "Read coverage file contents"
if: steps.check_files.outputs.files_exists == 'true'
id: coverage_file
uses: andstor/file-reader-action@v1
with:
path: ./coverage/lcov.info

- name: Coveralls
if: steps.check_files.outputs.files_exists == 'true' &&
steps.coverage_file.outputs.contents != ''
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: GitHub Pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build Docs
uses: andstor/jsdoc-action@v1
with:
source_dir: ./src
recurse: true
output_dir: ./out
template_name: minami
front_page: README.md

- name: Include Examples
run: mv ./examples ./out/

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./out
37 changes: 37 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish package

on:
release:
types:
- published

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Test
uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run build --if-present
- run: npm test

publish-npm:
name: Publish to npm
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

37 changes: 36 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,39 @@ and this project adheres to [Semantic Versioning](https://semver.org).

## [Unreleased]

[Unreleased]: https://github.com/andstor/voxelizer/compare/v0.0.1...HEAD
## [1.0.0] - 2020-04-28
### Added
- Migration guide
- Examples for demonstrating and testing purposes
- Contributor Covenant Code of Conduct
- Several tests
- Raycasting voxelization algorithm raycasts from x, y and z direction ([#3](https://github.com/andstor/voxelizer/issues/3))
- Color voxelization support
- Modular architecture supporting various voxelization algorithm implementations
- Bundling with Webpack
- Automatic publishing to NPM on release
- Automatic JSDoc genreation with [jsdoc-action](https://github.com/andstor/jsdoc-action) and upload to GitHub Pages
- Automatic coverage generation and upload to Coveralls
- Automatic testing of the project
- Automatic building of the project

### Changed
- New logo!
- Package main entry exports named exports instead of one main class

### Removed
- Remove 3rd party file loader in favour of native three.js example loaders

## [0.1.3] - 2019-04-06

## [0.1.2] - 2019-04-04

## [0.1.1] - 2019-04-04

## 0.1.0 - 2019-04-04

[Unreleased]: https://github.com/andstor/voxelizer/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/andstor/three-voxel-loader/compare/v0.1.3...v1.0.0
[0.1.3]: https://github.com/andstor/three-voxel-loader/compare/v0.1.2...v0.1.3
[0.1.2]: https://github.com/andstor/three-voxel-loader/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/andstor/three-voxel-loader/compare/v0.1.0...v0.1.1
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at andr3.storhaug@gmail.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq

0 comments on commit 0901f75

Please sign in to comment.