Skip to content

Commit c8b1647

Browse files
committed
chore: add github workflows
1 parent b19c7eb commit c8b1647

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+848
-82
lines changed

.circleci/config.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ We 💛 contributions! The rules for contributing to this org are few:
77
1. Lint and run tests locally before submitting a PR
88
1. Adhere to the code style the org has chosen
99

10-
1110
## Before Committing
1211

1312
1. Use at least Node.js v6.14.4 or higher. [NVM](https://github.com/creationix/nvm) can be handy for switching between Node versions.

.github/ISSUE_TEMPLATE/BUG.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🐞 Bug Report
33
about: Something went awry and you'd like to tell us about it.
4-
54
---
65

76
<!--
@@ -26,10 +25,8 @@ about: Something went awry and you'd like to tell us about it.
2625
3. Provide a minimal repository link (Read https://git.io/fNzHA for instructions). These may take more time to triage than the other options.
2726
-->
2827

29-
3028
### Expected Behavior
3129

32-
3330
### Actual Behavior
3431

3532
<!--

.github/ISSUE_TEMPLATE/DOCS.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 📚 Documentation
33
about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here.
4-
54
---
65

76
<!--
@@ -25,5 +24,4 @@ Documentation Is:
2524

2625
### Please Explain in Detail...
2726

28-
2927
### Your Proposal for Changes

.github/ISSUE_TEMPLATE/FEATURE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: ✨ Feature Request
33
about: Suggest an idea for this project
4-
54
---
65

76
<!--
@@ -16,5 +15,4 @@ about: Suggest an idea for this project
1615

1716
### Feature Use Case
1817

19-
2018
### Feature Proposal

.github/ISSUE_TEMPLATE/MODIFICATION.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🔧 Modification Request
33
about: Would you like something work differently? Have an alternative approach? This is the template for you.
4-
54
---
65

76
<!--
@@ -14,11 +13,8 @@ about: Would you like something work differently? Have an alternative approach?
1413
👉🏽 Need help or support? Open a SUPPORT issue instead.
1514
-->
1615

17-
1816
### Expected Behavior / Situation
1917

20-
2118
### Actual Behavior / Situation
2219

23-
2420
### Modification Proposal

.github/ISSUE_TEMPLATE/SUPPORT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🆘 Support, Help, and Advice
33
about: 👉🏽 If you want to ask how to do a thing with this project, this is the place for you.
4-
54
---
65

76
If you arrived here because you think this project's documentation is unclear, insufficient, or wrong, please consider creating an issue for the documentation instead.

.github/workflows/pr-title.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Pull Request Title Format
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
types:
8+
- opened
9+
- reopened
10+
- edited
11+
- synchronize
12+
13+
jobs:
14+
prTitle:
15+
name: Check
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Check PR Title
19+
uses: clowdhaus/actions/pr-title@v0.1.0
20+
with:
21+
on-fail-message: "Your PR title doesn't match the required format. The title should be in the conventional commit (https://www.conventionalcommits.org/en/v1.0.0-beta.4/) format. e.g.\n\n```\nchore: add pr title workflow\n```"
22+
title-regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([\w|,|\-|\|]+\))?(!)?\:\s.*'
23+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/validate.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Validate
2+
3+
on:
4+
pull_request:
5+
types:
6+
- edited
7+
- opened
8+
- synchronize
9+
push:
10+
branches:
11+
- '*'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
name: Node v${{ matrix.node }}
18+
19+
steps:
20+
- name: Checkout Commit
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20.19.0
27+
28+
- name: Checkout Master
29+
run: git branch -f master origin/master
30+
31+
- name: Install PNPM
32+
uses: pnpm/action-setup@v4
33+
34+
- name: Sanity Check
35+
run: |
36+
echo branch `git branch --show-current`;
37+
echo node `node --version`;
38+
echo yarn `pnpm --version`
39+
40+
- name: pnpm install
41+
run: pnpm install
42+
43+
- name: Lint Repo
44+
run: pnpm lint
45+
46+
- name: Run Tests
47+
run: pnpm test

dist/errors.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export declare class ParseError extends Error {
2+
constructor(error: Error);
3+
}
4+
export declare class AstError extends Error {
5+
constructor();
6+
}

dist/errors.js

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/errors.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { ParseOptions } from './parser.js';
2+
import { stringify } from './stringify.js';
3+
export { registerWalkers } from './walker.js';
4+
export { ParseOptions } from './parser.js';
5+
export * from './nodes/index.js';
6+
interface Builder {
7+
(part: string, node?: any, type?: 'start' | 'end'): void;
8+
}
9+
export interface Stringifier {
10+
(node: any, builder: Builder): void;
11+
}
12+
export declare const parse: (css: string, options?: ParseOptions) => import("./nodes/Root.js").Root;
13+
export declare const nodeToString: (node: any) => string;
14+
export { stringify };

dist/index.js

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nodes/Comment.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Node, NodeOptions } from './Node.js';
2+
export declare class Comment extends Node {
3+
readonly inline: boolean;
4+
readonly text: string;
5+
type: string;
6+
constructor(options: NodeOptions);
7+
}

dist/nodes/Comment.js

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nodes/Comment.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nodes/Container.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Container as PostCssContainer } from 'postcss';
2+
import { Node, NodeOptions } from './Node.js';
3+
export declare class Container extends PostCssContainer {
4+
readonly value: string;
5+
constructor(options?: NodeOptions);
6+
add(node: Container | Node): this;
7+
toString(stringifier?: import("../stringify.js").Stringifier): string;
8+
}

dist/nodes/Container.js

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nodes/Container.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nodes/Func.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Container } from './Container.js';
2+
import { NodeOptions } from './Node.js';
3+
export declare class Func extends Container {
4+
readonly isColor: boolean;
5+
readonly isVar: boolean;
6+
readonly name: string;
7+
readonly params: string;
8+
type: string;
9+
constructor(options: NodeOptions);
10+
}

0 commit comments

Comments
 (0)