Skip to content

Commit

Permalink
chore: Add CI and build
Browse files Browse the repository at this point in the history
  • Loading branch information
angelnext committed Nov 19, 2023
1 parent 940e696 commit 0e15ffd
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 195 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/npm-publish.yml

This file was deleted.

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

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ rubiks()
.log("You can also use modifiers, that modify all logs of this instance");
```

you can also easily create your own levels
you can also easily create your own levels...

```js
import { rubiks } from "rubiks";
Expand All @@ -29,7 +29,7 @@ rubiks()
.log("hello!", customLevel)
```

or your own modifiers
or your own modifiers...

```js
import { rubiks } from "rubiks";
Expand Down
9 changes: 0 additions & 9 deletions lib/index.d.ts

This file was deleted.

37 changes: 0 additions & 37 deletions lib/levels.d.ts

This file was deleted.

46 changes: 0 additions & 46 deletions lib/modifiers.d.ts

This file was deleted.

74 changes: 0 additions & 74 deletions lib/rubiks.d.ts

This file was deleted.

29 changes: 29 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "rubiks",
"version": "0.3.0",
"version": "0.4.0",
"type": "module",
"description": "Rubiks is a 0 dependency extendable logging library for modern applications.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"keywords": ["logger", "colors", "chalk", "extendable"],
"author": "Ángel González Vázquez <contact@angelnext.dev>",
"publishConfig": {
"access": "public"
"scripts": {
"build": "tsc"
},
"files": ["lib"],
"repository": {
Expand All @@ -19,5 +19,8 @@
"bugs": {
"url": "https://github.com/rubiksjs/rubiks/issues"
},
"license": "MIT"
"license": "MIT",
"devDependencies": {
"typescript": "^5.2.2"
}
}
9 changes: 9 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"compilerOptions": {
"rootDir": "lib",
"declaration": true,
"emitDeclarationOnly": true,
"allowJs": true
}
}

0 comments on commit 0e15ffd

Please sign in to comment.