Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ This Turborepo includes the following packages/apps:
- [`@noaignite/tailwind-typography`](https://noaignite.dev/tailwind-typography): TailwindCSS plugin to create responsive typography
- [`@noaignite/types`](https://noaignite.dev/types): Type helpers by NoA Ignite
- [`@noaignite/utils`](https://noaignite.dev/utils): Basic helper functions
- [`@noaignite/create-cms`](https://noaignite.dev/create-cms): A CLI tool to scaffold out templates within a Turborepo project with Sanity Schema Types ex media blocks documents etc

The goal is for each package/app to be 100% [TypeScript](https://www.typescriptlang.org/).

Expand Down
1 change: 1 addition & 0 deletions docs/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
1 change: 1 addition & 0 deletions docs/src/app/_meta.global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const packages = [
'centra-mocks',
'centra-types',
'create-app',
'create-cms',
'react-centra-checkout',
'react-utils',
'style-guide',
Expand Down
3 changes: 3 additions & 0 deletions packages/create-cms/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @noaignite/create-cms

## 1.0.0 (2025-11-20)
22 changes: 22 additions & 0 deletions packages/create-cms/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2019 NoA Ignite

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.

33 changes: 33 additions & 0 deletions packages/create-cms/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# @noaignite/create-cms

Initializes a prompt-based setup process to scaffold specific templates within a turborepo project. It guides users through selecting templates, handling file overwrites, and running associated commands.

The function:

- Displays the CLI help message when run with the `--help` or `-h` flag.
- Prompts the user for the root directory of the turborepo, and checks for the presence of the `turbo.json` file.
- Allows the user to select from predefined templates to install.
- Handles file overwrites based on user choice.
- Copies the template files into the designated directories and executes any custom commands defined in the templates.
- Installs project dependencies.

- @throws Error if a required file is missing, no templates are selected, or the operation is cancelled.

## Usage

Install the package in your project directory with:

```sh
// with pnpm (recommended)
pnpm dlx @noaignite/create-cms

// with yarn
yarn dlx @noaignite/create-cms

// with npm
npx @noaignite/create-cms
```

## Documentation

Visit [https://noaignite.dev](https://noaignite.dev) to view the full documentation.
3 changes: 3 additions & 0 deletions packages/create-cms/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import baseConfig from '@noaignite/style-guide/eslint/base'

export default baseConfig
3 changes: 3 additions & 0 deletions packages/create-cms/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

import './dist/createCms.js'
59 changes: 59 additions & 0 deletions packages/create-cms/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"name": "@noaignite/create-cms",
"version": "1.0.0",
"private": false,
"description": "Scaffold NoA Ignite templates within a turborepo project",
"keywords": [
"react",
"turborepo",
"sanity",
"cms"
],
"homepage": "https://github.com/noaignite/accelerator#readme",
"bugs": {
"url": "https://github.com/noaignite/accelerator/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/noaignite/accelerator.git",
"directory": "packages/create-cms"
},
"license": "MIT",
"author": "NoA Ignite",
"sideEffects": false,
"type": "module",
"main": "index.js",
"bin": {
"create-cms-sanity": "index.js"
},
"files": [
"index.js",
"template-*",
"dist"
],
"scripts": {
"build": "tsup",
"create-cms": "create-cms-sanity",
"dev": "tsup --watch",
"lint": "eslint . --ignore-pattern 'template-*'",
"test:types": "tsc --noEmit"
},
"dependencies": {
"cross-spawn": "^7.0.6",
"kolorist": "^1.8.0",
"minimist": "^1.2.8",
"prompts": "^2.4.2"
},
"devDependencies": {
"@noaignite/style-guide": "workspace:*",
"@types/cross-spawn": "^6.0.6",
"@types/minimist": "^1.2.5",
"@types/prompts": "^2.4.9"
},
"engines": {
"node": ">=20"
},
"publishConfig": {
"access": "public"
}
}
Loading
Loading