https://github.com/etcdigital/ptah
Build tool for typescript
https://github.com/etcdigital/ptah
cjs esm javascript nodejs rollup typescript umd
Last synced: 11 months ago
JSON representation
Build tool for typescript
- Host: GitHub
- URL: https://github.com/etcdigital/ptah
- Owner: etcdigital
- Created: 2021-02-03T19:42:55.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T05:04:28.000Z (about 2 years ago)
- Last Synced: 2025-02-04T15:23:17.731Z (11 months ago)
- Topics: cjs, esm, javascript, nodejs, rollup, typescript, umd
- Language: JavaScript
- Homepage:
- Size: 561 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Ptah
A build tool created on top of Roolup. For TypeScript and React Typescript to .JS
## How to use
Install the package: `npm i ptah -D` or `yarn add ptah -D`
1. Add conguration in your package.json
```json
{
"exports": {
".": {
"import": "./dist/index.module.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.module.js",
"source": "src/index.ts",
"types": "./dist/@types/index.d.ts",
"files": [
"dist"
],
}
```
> NOTE: Change `"src/index.tsx"` for tsx.
1. Execute: `ptah` on terminal.
## Recomendations
Add two scripts on package.json:
```json
{
"scripts": {
"build": "ptah",
"dev": "ptah-dev"
}
}
```
## Watch Mode
Use `yarn dev` (aka. `ptah-dev`) to watch changes and build for every change.
## [The name](https://en.wikipedia.org/wiki/Ptah)
Ptah /ˈtɑː/[1] (Ancient Egyptian: ptḥ, reconstructed [piˈtaħ]; Ancient Greek: Φθά; Coptic: ⲡⲧⲁϩ)[2] is an ancient Egyptian deity, the god of craftsmen and architects.
...and it's also is **path**, misspelled 🙃