Skip to content

Commit a8e53cd

Browse files
committed
Rename the package
1 parent 8b076e4 commit a8e53cd

File tree

6 files changed

+7856
-2945
lines changed

6 files changed

+7856
-2945
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# tawfeer-scripts
1+
# Scripts
22

33
Scripts for Tawfeer, heavily inspired by [`react-scripts`](https://github.com/facebook/create-react-app/blob/main/packages/react-scripts).
44

55
---
66

77
## Available scripts
88

9-
Repos consuming the `tawfeer-scripts` package can use the following NPM scripts. Prefix each at the command line with `npm run` (or [`bun run`](https://bun.sh/)) to execute.
9+
Repos consuming the `@tawfeer/scripts` package can use the following NPM scripts. Prefix each at the command line with `npm run` (or [`bun run`](https://bun.sh/)) to execute.
1010

1111
### start
1212

@@ -65,7 +65,7 @@ Will validate TypeScript code in the project. This requires a `tsconfig.json` fi
6565

6666
```json
6767
{
68-
"extends": "tawfeer-scripts/config/tsconfig.json",
68+
"extends": "@tawfeer/scripts/config/tsconfig.json",
6969
"compilerOptions": {
7070
"rootDir": "src",
7171
"jsx": "react-jsx"
@@ -142,7 +142,7 @@ This package exposes a couple of configuration files.
142142
The `webpack.config.js` file should use this package's config-extending function:
143143

144144
```js
145-
const getBaseWebpackConfig = require("tawfeer-scripts/config/getWebpackConfig");
145+
const getBaseWebpackConfig = require("@tawfeer/scripts/config/getWebpackConfig");
146146

147147
const webpackConfig = getBaseWebpackConfig(
148148
{
@@ -163,7 +163,7 @@ A basic `babel.config.js`:
163163
module.exports = api => {
164164
api.cache( true );
165165
return {
166-
extends: 'tawfeer-scripts/config/babel.config.js',
166+
extends: '@tawfeer/scripts/config/babel.config.js',
167167
};
168168
};
169169
```
@@ -178,7 +178,7 @@ Because of ESLint's [issue](https://github.com/eslint/eslint/issues/3458) with r
178178
require( '@rushstack/eslint-patch/modern-module-resolution' );
179179

180180
module.exports = {
181-
extends: [ './node_modules/tawfeer-scripts/config/eslintrc.js' ],
181+
extends: [ './node_modules/@tawfeer/scripts/config/eslintrc.js' ],
182182
// Additional options…
183183
};
184184
```
@@ -190,7 +190,7 @@ module.exports = {
190190
To configure Prettier rules, extend this repo's config by creating a `.prettierrc.js` file like so:
191191

192192
```js
193-
const baseConfig = require( './node_modules/tawfeer-scripts/config/prettier.config.js' );
193+
const baseConfig = require( './node_modules/@tawfeer/scripts/config/prettier.config.js' );
194194

195195
module.exports = {
196196
...baseConfig,
@@ -212,14 +212,14 @@ vendor
212212
`@wordpress/scripts` uses [Stylelint](https://stylelint.io/) under the hood for SCSS linting and formatting.
213213

214214
```shell
215-
tawfeer-scripts wp-scripts lint-style '**/*.scss' --customSyntax postcss-scss
215+
tw-scripts wp-scripts lint-style '**/*.scss' --customSyntax postcss-scss
216216
```
217217

218218
Extend this repo's config with a `.stylelintrc.js` file like so:
219219

220220
```js
221221
module.exports = {
222-
extends: [ './node_modules/tawfeer-scripts/config/stylelint.config.js' ],
222+
extends: [ './node_modules/@tawfeer/scripts/config/stylelint.config.js' ],
223223
// Additional options…
224224
};
225225
```
@@ -260,7 +260,7 @@ Note that before the first time updating you'll need to set the API key for Circ
260260

261261
### Testing locally
262262

263-
1. Copy the path to this repository (e.g. `pwd | pbcopy`) and "install" it as an npm dependency in the repository on which you wish to test (e.g. `npm i /path/to/tawfeer-scripts`). You should end up with a `"tawfeer-scripts": "file:*"` entry in `package.json` instead of a version number.
263+
1. Copy the path to this repository (e.g. `pwd | pbcopy`) and "install" it as an npm dependency in the repository on which you wish to test (e.g. `npm i /path/to/tawfeer-scripts`). You should end up with a `"@tawfeer/scripts": "file:*"` entry in `package.json` instead of a version number.
264264
2. Trigger a script and observe the results, e.g. `npm run semantic-release -- --dry-run`
265265

266266
---
@@ -269,4 +269,4 @@ Note that before the first time updating you'll need to set the API key for Circ
269269

270270
### `@wordpress/*` packages
271271

272-
This project lists [`@wordpress/*` packages](https://github.com/WordPress/gutenberg/tree/trunk/packages) as dependencies in order to provide them to consumers. In a project using `@wordpress/scripts` (e.g. a consumer of `tawfeer-scripts`), the `@wordpress/*` packages are sourced from WP Core, not `node_modules`. The packages should be included in `node_modules`, though, to be available in other environments – notably when running tests. See [Dependency Extraction Webpack Plugin](https://www.npmjs.com/package/@wordpress/dependency-extraction-webpack-plugin) for more information.
272+
This project lists [`@wordpress/*` packages](https://github.com/WordPress/gutenberg/tree/trunk/packages) as dependencies in order to provide them to consumers. In a project using `@wordpress/scripts` (e.g. a consumer of `@tawfeer/scripts`), the `@wordpress/*` packages are sourced from WP Core, not `node_modules`. The packages should be included in `node_modules`, though, to be available in other environments – notably when running tests. See [Dependency Extraction Webpack Plugin](https://www.npmjs.com/package/@wordpress/dependency-extraction-webpack-plugin) for more information.

0 commit comments

Comments
 (0)