Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
enchart committed Dec 22, 2023
0 parents commit 0fedb67
Show file tree
Hide file tree
Showing 22 changed files with 2,182 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
7 changes: 7 additions & 0 deletions .changeset/witty-tigers-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@enchart-test/monochange": major
"@enchart-test/monochange-plugin-new": major
"@enchart-test/monochange-plugin-old": major
---

Initial commit
53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Release

on:
push:
branches:
- master
- next

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# node
node_modules

# moon
.moon/cache
.moon/docker
Empty file added .moon/tasks.yml
Empty file.
4 changes: 4 additions & 0 deletions .moon/toolchain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node:
version: ">=20.0.0"
packageManager: "pnpm"
pnpm: {}
10 changes: 10 additions & 0 deletions .moon/workspace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$schema: "https://moonrepo.dev/schemas/workspace.json"

versionConstraint: ">=1.18.5"

vcs:
manager: "git"
defaultBranch: "master"

projects:
- "packages/*"
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 enchart

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# monorepo-changesets

testing stuff
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "monorepo-changesets",
"description": "Testing monorepo packaging with changesets and moon",
"private": true,
"author": "enchart",
"license": "MIT",
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@moonrepo/cli": "^1.18.5"
},
"scripts": {
"release": "changeset publish"
},
"engines": {
"node": ">=20.0.0"
}
}
Empty file.
2 changes: 2 additions & 0 deletions packages/monochange-plugin-new/moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
type: "library"
language: "javascript"
28 changes: 28 additions & 0 deletions packages/monochange-plugin-new/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "@enchart-test/monochange-plugin-new",
"description": "Test package 2",
"version": "0.1.0",
"type": "module",
"main": "./index.js",
"module": "./index.js",
"exports": {
".": {
"import": "./index.js",
"require": "./index.js"
}
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/enchart/monorepo-changesets.git"
},
"keywords": [],
"author": "enchart",
"license": "MIT",
"bugs": {
"url": "https://github.com/enchart/monorepo-changesets/issues"
},
"homepage": "https://github.com/enchart/monorepo-changesets/packages/monochange"
}
Empty file.
2 changes: 2 additions & 0 deletions packages/monochange-plugin-old/moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
type: "library"
language: "javascript"
28 changes: 28 additions & 0 deletions packages/monochange-plugin-old/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "@enchart-test/monochange-plugin-old",
"description": "Test package 3",
"version": "0.1.0",
"type": "module",
"main": "./index.js",
"module": "./index.js",
"exports": {
".": {
"import": "./index.js",
"require": "./index.js"
}
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/enchart/monorepo-changesets.git"
},
"keywords": [],
"author": "enchart",
"license": "MIT",
"bugs": {
"url": "https://github.com/enchart/monorepo-changesets/issues"
},
"homepage": "https://github.com/enchart/monorepo-changesets/packages/monochange"
}
Empty file added packages/monochange/index.js
Empty file.
2 changes: 2 additions & 0 deletions packages/monochange/moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
type: "library"
language: "javascript"
28 changes: 28 additions & 0 deletions packages/monochange/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "@enchart-test/monochange",
"description": "Test package 1",
"version": "0.1.0",
"type": "module",
"main": "./index.js",
"module": "./index.js",
"exports": {
".": {
"import": "./index.js",
"require": "./index.js"
}
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/enchart/monorepo-changesets.git"
},
"keywords": [],
"author": "enchart",
"license": "MIT",
"bugs": {
"url": "https://github.com/enchart/monorepo-changesets/issues"
},
"homepage": "https://github.com/enchart/monorepo-changesets/packages/monochange"
}
Loading

0 comments on commit 0fedb67

Please sign in to comment.