Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: noblox/noblox.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.6.2
Choose a base ref
...
head repository: noblox/noblox.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 316 changed files with 22,245 additions and 6,476 deletions.
19 changes: 0 additions & 19 deletions .eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions .github/FUNDING.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/doc-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish docs

on:
push:
branches:
- master

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

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

- name: Install yarn
run: npm install -g yarn

- name: Build docs
run: |
yarn install
yarn docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./docs
cname: noblox.js.org
77 changes: 61 additions & 16 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,75 @@
name: Test & Publish

on:
release:
types: [created]
pull_request:
branches:
- master

push:
branches:
- master

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- name: Checkout code
uses: actions/checkout@v2

- name: Set up node
uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
node-version: 20

- name: Install yarn
run: npm install -g yarn

- name: Install dependencies
run: yarn install

- name: Lint lib/
run: yarn lint

publish-npm:
needs: build
needs: test
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- name: Checkout code with ADMIN_TOKEN
if: github.event.pull_request.head.repo.full_name == github.repository
uses: actions/checkout@v2
with:
token: ${{ secrets.ADMIN_TOKEN }}

- name: Checkout code
if: github.event.pull_request.head.repo.full_name != github.repository
uses: actions/checkout@v2

- name: Prepare repository
run: git fetch --unshallow --tags

- name: Set up node
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
node-version: 20

- name: Install yarn
run: npm install -g yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: yarn-deps-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-deps-${{ hashFiles('yarn.lock') }}
- name: Create Release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
token: ${{ secrets.ADMIN_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: |
npx auto shipit
32 changes: 32 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run tests

on:
workflow_dispatch


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

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

- name: Install yarn
run: npm install -g yarn

- name: Install dependencies
run: yarn install

- name: Lint lib/
run: yarn lint
- name: Run tests
env:
COOKIE: ${{ secrets.COOKIE }}
COOKIE_2: ${{ secrets.COOKIE_2 }}
run: yarn test

8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -55,9 +55,13 @@ jspm_packages/
# Yarn Integrity file
.yarn-integrity

# Docs
docs/*

# dotenv environment variables file
.env

\.vscode/

.idea/

.idea/

13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ 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 me@suufi.xyz. All
reported by contacting the project team at noblox@mit.edu. 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.
Loading