Skip to content

Commit ae2b58a

Browse files
build: add unbuild to @replexica/compiler (#6)
1 parent 3c64eaf commit ae2b58a

17 files changed

Lines changed: 1892 additions & 165 deletions

File tree

.changeset/light-rice-tickle.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.github/workflows/pr-check.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,18 @@ jobs:
4141
- name: Install deps
4242
run: pnpm install
4343

44+
- name: Setup
45+
run: |
46+
pnpm turbo telemetry disable
47+
4448
- name: Configure Turbo cache
4549
uses: dtinth/setup-github-actions-caching-for-turbo@v1
4650

4751
- name: Build
48-
run: pnpm build
52+
run: pnpm turbo build --force
4953

5054
- name: Test
51-
run: pnpm test
55+
run: pnpm turbo test
5256

5357
- name: Require changeset to be present in PR
5458
run: pnpm changeset status --since origin/main

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,18 @@ jobs:
4242
- name: Install deps
4343
run: pnpm install
4444

45+
- name: Setup
46+
run: |
47+
pnpm turbo telemetry disable
48+
4549
- name: Configure Turbo cache
4650
uses: dtinth/setup-github-actions-caching-for-turbo@v1
4751

4852
- name: Build
49-
run: pnpm build
53+
run: pnpm turbo build --force
5054

5155
- name: Test
52-
run: pnpm test
56+
run: pnpm turbo test --force
5357

5458
- name: Create Release Pull Request or Publish to npm
5559
id: changesets

demo/next/next.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import compiler from '@replexica/compiler';
2+
3+
console.log(compiler);
4+
5+
process.exit(0);

demo/next/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "@replexica/demo/next",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "next build"
8+
},
9+
"keywords": [],
10+
"author": "",
11+
"license": "ISC",
12+
"dependencies": {
13+
"next": "^14.1.4",
14+
"@replexica/compiler": "workspace:*"
15+
}
16+
}

demo/node/index.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const compiler = require('@replexica/compiler');
2+
3+
console.log(compiler);
4+
5+
console.log(
6+
compiler.compile(
7+
compiler.code,
8+
),
9+
);

demo/node/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const compiler = require('@replexica/compiler');
2+
3+
console.log(compiler);
4+
5+
console.log(
6+
compiler.compile(
7+
compiler.code,
8+
),
9+
);

demo/node/index.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import compiler from '@replexica/compiler';
2+
3+
console.log(compiler);
4+
5+
console.log(
6+
compiler.compile(
7+
compiler.code,
8+
),
9+
);

demo/node/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "@replexica/demo/node",
3+
"version": "0.0.0",
4+
"private": true,
5+
"description": "",
6+
"scripts": {
7+
"mjs": "node index.mjs",
8+
"cjs": "node index.cjs",
9+
"js": "node index.js"
10+
},
11+
"dependencies": {
12+
"@replexica/compiler": "workspace:*"
13+
},
14+
"keywords": [],
15+
"author": "",
16+
"license": "ISC"
17+
}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"type": "module",
33
"scripts": {
4-
"test": "turbo test",
5-
"build": "turbo build",
64
"prepare": "husky"
75
},
86
"devDependencies": {

0 commit comments

Comments
 (0)