Skip to content

Commit

Permalink
feat: core functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
themojilla authored and themojilla committed Sep 19, 2021
1 parent 97eb103 commit f50750b
Show file tree
Hide file tree
Showing 11 changed files with 3,178 additions and 58 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
.vscode
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
17 changes: 17 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"git": {
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits"
}
}
}
49 changes: 0 additions & 49 deletions fromNow.test.js

This file was deleted.

13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
43 changes: 43 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "rago",
"version": "0.0.0",
"author": "themojilla <the.mojilla@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/themojilla/rago"
},
"repository": "https://github.com/themojilla/rago",
"scripts": {
"dev": "vite",
"build": "vite build && tsc --emitDeclarationOnly",
"prepare": "husky install",
"release": "release-it"
},
"main": "dist/rago.umd.js",
"unpkg": "dist/rago.iife.js",
"jsdelivr": "dist/rago.iife.js",
"module": "./dist/rago.es.js",
"exports": {
".": {
"import": "./dist/rago.es.js",
"require": "./dist/rago.umd.js"
}
},
"files": [
"dist"
],
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@release-it/conventional-changelog": "^3.3.0",
"@types/node": "^16.9.1",
"husky": "^7.0.2",
"release-it": "*",
"typescript": "^4.3.2",
"vite": "^2.5.4"
},
"keywords": [
"fromNow",
"relative-time"
]
}

0 comments on commit f50750b

Please sign in to comment.