-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from ulkajs/ulka-next
0.6.0 - ulka-next
- Loading branch information
Showing
105 changed files
with
2,869 additions
and
3,588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
/node_modules | ||
/dist | ||
/.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es2021": true, | ||
"jest": true | ||
}, | ||
"extends": [ | ||
"google", | ||
"prettier/@typescript-eslint", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 12 | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"prettier" | ||
], | ||
"rules": { | ||
"require-jsdoc":"off", | ||
"valid-jsdoc": "off" | ||
} | ||
"env": { | ||
"commonjs": true, | ||
"es2021": true, | ||
"node": true, | ||
"jest": true | ||
}, | ||
"extends": ["google", "prettier"], | ||
"plugins": ["prettier"], | ||
"parserOptions": { | ||
"ecmaVersion": 12 | ||
}, | ||
"rules": { | ||
"prettier/prettier": ["error"], | ||
"no-console": "off", | ||
"no-undef": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,3 +105,5 @@ dist | |
|
||
# TernJS port file | ||
.tern-port | ||
|
||
example/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"hooks": { | ||
"pre-commit": "npm run lint-staged && cross-env FORCE_COLOR=1 npm run test" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
/tests | ||
/src | ||
/.github | ||
/coverage | ||
/example | ||
/examples | ||
.prettierrc | ||
.prettierignore | ||
.eslintignore | ||
.eslintrc.json | ||
jest.config.js | ||
.huskyrc.json | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
CHANGELOG.md |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
/node_modules | ||
/dist | ||
/.github |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,52 @@ | ||
<p align="center"> | ||
<img width="500" src="https://i.imgur.com/coa1q5T.png" alt="logo"> | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/ulka"> | ||
<img alt="NPM" src="https://img.shields.io/npm/v/ulka?&labelColor=black&color=darkred&logo=npm&label=npm" /> | ||
</a> | ||
<a href="https://github.com/acharyaroshanji/ulka"> | ||
<img alt="MIT" src="https://img.shields.io/npm/l/ulka?color=darkgreen&labelColor=black&&logo=github" /> | ||
</a> | ||
<a href="#"><img alt="CI" src="https://github.com/ulkajs/ulka/workflows/CI/badge.svg"></a> | ||
A simpler static site generator written in JavaScript to transform ulka and markdown files to html. | ||
</p> | ||
|
||
<p align="center"> | ||
Ulka is a free and open source static site generator that helps you create static sites from markdown and ulka files. | ||
<a href="https://www.npmjs.com/package/ulka"><img alt="NPM" src="https://img.shields.io/npm/v/ulka?&labelColor=black&color=darkred&logo=npm&label=npm" /></a> | ||
<a href="https://github.com/acharyaroshanji/ulka"><img alt="MIT" src="https://img.shields.io/npm/l/ulka?color=darkgreen&labelColor=black&&logo=github" /></a> | ||
<a href="https://github.com/prettier/prettier"><img alt="Prettuer" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?color=b3095d&labelColor=black&logo=prettier"></a> | ||
<a href="#"><img alt="CI" src="https://img.shields.io/github/workflow/status/ulkajs/ulka/CI?color=darkgreen&label=CI&logo=github&labelColor=black"></a> | ||
<a href="https://gatsbyjs.org/contributing/how-to-contribute/"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?labelColor=black&logo=github&color=darkgreen" alt="PRs welcome!" /></a> | ||
|
||
</p> | ||
<br /> | ||
|
||
## 🚀 Quick start | ||
## 🚀 Getting Started | ||
|
||
1. Create new ulka site | ||
|
||
``` | ||
npx ulka create <app-name> | ||
```bash | ||
npx ulka create <app-name> <template_url> -i npm | ||
|
||
## OR | ||
|
||
npm i -g ulka | ||
ulka create <app-name> <template_url> -i npm | ||
``` | ||
|
||
2. Navigate to app name and start server | ||
2. Navigate to app name and start dev server | ||
``` | ||
cd <app-name> | ||
npm start | ||
npm run develop | ||
``` | ||
|
||
Complete documentation comming soon.... | ||
## 📖 Documentation | ||
|
||
Coming soon... | ||
|
||
## 🤗 Contributing | ||
|
||
We welcome you to join the development of Ulka. Please see [Contributing](https://github.com/ulkajs/ulka/blob/master/CONTRIBUTING.md) Guidelines. | ||
|
||
## LICENSE | ||
|
||
<a href="https://github.com/nuxt/nuxt.js/blob/dev/LICENSE">MIT</a> | ||
|
||
--- | ||
|
||
<a href="https://www.buymeacoffee.com/coderosh" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" width="200" alt="Buy Me A Coffee"></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/usr/bin/env node | ||
|
||
const path = require("path") | ||
const { program } = require("commander") | ||
|
||
const build = require("../src/ulka-cli/build") | ||
const serve = require("../src/ulka-cli/serve") | ||
const create = require("../src/ulka-cli/create") | ||
const { createInfo } = require("../src/utils/build-utils") | ||
|
||
program.version(require("../package.json").version) | ||
|
||
const cwd = process.cwd() | ||
|
||
program | ||
.command("build") | ||
.description("Build html from .md and .ulka files") | ||
.action(async () => { | ||
const info = createInfo(cwd, "build") | ||
await build(info) | ||
}) | ||
|
||
program | ||
.command("develop") | ||
.option("-p --port [port]", "server port", 3000) | ||
.description("Start dev server") | ||
.action(async ({ port }) => { | ||
const info = createInfo(cwd, "develop") | ||
console.clear() | ||
info.configs.buildPath = path.join(cwd, ".debug") | ||
|
||
await build(info) | ||
|
||
port = +port || 3000 | ||
|
||
const options = { live: true, base: info.configs.buildPath, port: +port } | ||
|
||
serve(options, info) | ||
}) | ||
|
||
program | ||
.command("serve") | ||
.option("-p --port [port]", "server port", 3000) | ||
.description("Serve built static files") | ||
.action(({ port }) => { | ||
const info = createInfo(cwd, "build") | ||
|
||
port = +port || 3000 | ||
serve({ live: false, base: info.configs.buildPath, port: +port }, info) | ||
}) | ||
|
||
program | ||
.command("create [projectName] [template]") | ||
.option("-i --installer [installer]", "Installer to use npm|yarn") | ||
.description("Create new ulka project") | ||
.action((name, template, { installer }) => { | ||
create({ template: template, name, installer }) | ||
}) | ||
|
||
program.parse(process.argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
module.exports = { | ||
collectCoverage: true, | ||
coverageThreshold: { | ||
global: { | ||
functions: 90, | ||
lines: 80, | ||
statements: 80, | ||
branches: 50 | ||
} | ||
}, | ||
transform: { | ||
"^.+\\.tsx?$": "ts-jest" | ||
} | ||
collectCoverage: true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"typeAcquisition": { | ||
"include": ["jest"] | ||
}, | ||
"exclude": ["node_modules"] | ||
} |
Oops, something went wrong.