Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
djthorpe committed Apr 19, 2024
1 parent 337f469 commit 713d87a
Show file tree
Hide file tree
Showing 8 changed files with 1,757 additions and 120 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
node-version: 'latest'
registry-url: 'https://npm.pkg.github.com'
scope: '@djthorpe'
scope: '@mutablelogic'

- name: Generate Documentatin
run: |
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Docs
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'latest'
registry-url: 'https://npm.pkg.github.com'
scope: '@mutablelogic'
- name: Lint
run: |
npm ci
npm run lint
5 changes: 2 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@djthorpe'
scope: '@mutablelogic'
- run: npm install
- run: npm run all
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@djthorpe:registry=https://npm.pkg.github.com
@mutablelogic:registry=https://npm.pkg.github.com
22 changes: 22 additions & 0 deletions config/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { FlatCompat } from '@eslint/eslintrc';
import globals from 'globals';
import path from 'path';
import { fileURLToPath } from 'url';
import js from '@eslint/js';

// mimic CommonJS variables -- not needed if using CommonJS
const filename = fileURLToPath(import.meta.url);
const dirname = path.dirname(filename);
const compat = new FlatCompat({
baseDirectory: dirname,
});

export default [
js.configs.recommended,
{
languageOptions: {
globals: globals.browser,
},
},
...compat.extends('airbnb-base'),
];
Loading

0 comments on commit 713d87a

Please sign in to comment.