Skip to content

Commit

Permalink
meta: setup monorepo (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb authored Jun 27, 2024
1 parent 28b77dd commit 3d45f30
Show file tree
Hide file tree
Showing 76 changed files with 82 additions and 293 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
registry-url: https://registry.npmjs.org

- run: pnpm install
- run: pnpm publish --no-git-checks
- run: cd workspace/mauss && pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
node_modules
.DS_Store

*.js
*.d.ts
*.map
214 changes: 0 additions & 214 deletions CHANGELOG.md

This file was deleted.

14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,6 @@ Natively, JavaScript already have some aspects to it and provides a wide set of

Using modules provided by mauss, you can write shorter and simpler code with minimal chaining, and without degrading the performance of your application. A good understanding of software design principles and a discipline in the application of functional and declarative paradigms are still needed to achieve the most benefits. It does not nullify bad practices completely, but it does make it harder to do so...

## API Documentation

| Module | Import |
| ------------------------- | ----------------- |
| [`core`](/src/core) | `'mauss'` |
| [`api`](/src/api) | `'mauss/api'` |
| [`bits`](/src/bits) | `'mauss/bits'` |
| [`guards`](/src/guards) | `'mauss/guards'` |
| [`math`](/src/math) | `'mauss/math'` |
| [`std`](/src/std) | `'mauss/std'` |
| [`utils`](/src/utils) | `'mauss/utils'` |
| [`web`](/src/web) | `'mauss/web'` |
| [`typings`](/src/typings) | `'mauss/typings'` |

---

<h3 align="center"><pre>Mauss | <a href="LICENSE">MIT License</a></pre></h3>
62 changes: 5 additions & 57 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,68 +1,16 @@
{
"name": "mauss",
"version": "0.7.2",
"description": "fast and efficient type-safe SDK",
"repository": "github:alchemauss/mauss",
"author": "Ignatius Bagus",
"license": "MIT",
"private": true,
"type": "module",
"scripts": {
"clean": "git add * && git clean -dfx -e node_modules",
"format": "prettier -w . --plugin=prettier-plugin-sort-package-json",
"check": "pnpm check:code && pnpm check:style",
"check:code": "pnpm build:files --noEmit",
"check:style": "prettier -c . --plugin=prettier-plugin-sort-package-json",
"test": "pnpm test:unit",
"test:unit": "uvu -r tsm src \"(spec\\.ts)\"",
"build:types": "tsm scripts/compile-types.ts",
"build:files": "tsc --project src",
"prepublishOnly": "pnpm build:types && pnpm build:files"
"check": "pnpm --filter \"./workspace/*\" check",
"format": "pnpm --filter \"./workspace/*\" format",
"test": "pnpm --filter \"./workspace/*\" test"
},
"typings": "./index.d.ts",
"exports": {
".": "./src/core/index.js",
"./api": "./src/api/index.js",
"./bits": "./src/bits/index.js",
"./compare": "./src/compare/index.js",
"./csv": "./src/csv/index.js",
"./date": "./src/date/index.js",
"./guards": "./src/guards/index.js",
"./math": "./src/math/index.js",
"./random": "./src/random/index.js",
"./std": "./src/std/index.js",
"./web": "./src/web/index.js",
"./typings": "./src/typings/index.d.ts",
"./package.json": "./package.json",
"./prettier.json": "./prettier.json",
"./tsconfig.json": "./tsconfig.json"
},
"files": [
"src/**/*.js",
"index.d.ts",
"index.d.ts.map",
"prettier.json",
"tsconfig.json"
],
"packageManager": "[email protected]",
"prettier": "./prettier.json",
"keywords": [
"zero-dependency",
"strongly-typed",
"type-safe",
"fast",
"efficient",
"functional",
"declarative",
"modular",
"reusable",
"standard",
"typings",
"opinionated",
"settings"
],
"prettier": "./workspace/mauss/prettier.json",
"devDependencies": {
"@types/node": "^20.14.9",
"dts-buddy": "^0.5.0",
"prettier": "^3.3.2",
"prettier-plugin-sort-package-json": "^0.2.0",
"tsm": "^2.3.0",
Expand Down
9 changes: 6 additions & 3 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- 'workspace/*'
3 changes: 3 additions & 0 deletions workspace/mauss/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.js
*.d.ts
*.map
Loading

0 comments on commit 3d45f30

Please sign in to comment.