Skip to content

Commit 7fe905d

Browse files
authored
Add Lerna to publish JavaScript packages(#82)
* Initial commit for lerna * Reset version, remove no-push * Unignore package-lock.json * Publish v1.5.0-beta.2 * Sign git tags, remove version prefix * Publish v1.5.0-beta.3 * Fix config keys * Publish 1.5.0-beta.4 * Add LICENSE * Uses spaces in composer.json * Add more tags * Publish 1.5.0-beta.5
1 parent 3359511 commit 7fe905d

File tree

10 files changed

+423
-39
lines changed

10 files changed

+423
-39
lines changed

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor
2+
/.git
3+
/Required
4+
node_modules
File renamed without changes.

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
vendor/
22
composer.lock
33
node_modules/
4-
package-lock.json

LICENSE

+339
Large diffs are not rendered by default.

composer.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"name": "wearerequired/coding-standards",
3-
"description": "required Coding Standards",
4-
"type": "phpcodesniffer-standard",
5-
"license": "GPL-2.0-or-later",
6-
"config": {
7-
"sort-packages": true
8-
},
9-
"minimum-stability": "dev",
10-
"prefer-stable": true,
11-
"require": {
12-
"php": "^7.1",
13-
"phpcompatibility/phpcompatibility-wp": "2.1.0",
14-
"sirbrillig/phpcs-variable-analysis": "2.8.1",
15-
"slevomat/coding-standard": "6.3.5",
16-
"wp-coding-standards/wpcs": "2.3.0"
17-
},
18-
"suggest": {
19-
"dealerdirect/phpcodesniffer-composer-installer": "Automatically adds this package's ruleset to the installed_paths option of PHP_CodeSniffer"
20-
}
2+
"name": "wearerequired/coding-standards",
3+
"description": "required Coding Standards",
4+
"type": "phpcodesniffer-standard",
5+
"license": "GPL-2.0-or-later",
6+
"config": {
7+
"sort-packages": true
8+
},
9+
"minimum-stability": "dev",
10+
"prefer-stable": true,
11+
"require": {
12+
"php": "^7.1",
13+
"phpcompatibility/phpcompatibility-wp": "2.1.0",
14+
"sirbrillig/phpcs-variable-analysis": "2.8.1",
15+
"slevomat/coding-standard": "6.3.5",
16+
"wp-coding-standards/wpcs": "2.3.0"
17+
},
18+
"suggest": {
19+
"dealerdirect/phpcodesniffer-composer-installer": "Automatically adds this package's ruleset to the installed_paths option of PHP_CodeSniffer"
20+
}
2121
}

lerna.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "1.5.0-beta.5",
6+
"command": {
7+
"publish": {
8+
"tagVersionPrefix": ""
9+
},
10+
"version": {
11+
"message": "Publish %s",
12+
"signGitTag": true,
13+
"tagVersionPrefix": ""
14+
}
15+
}
16+
}

package.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "@wearerequired/coding-standards",
3+
"version": "0.1.0",
4+
"description": "required Coding Standards",
5+
"repository": {
6+
"type": "git",
7+
"url": "git+https://github.com/wearerequired/coding-standards.git"
8+
},
9+
"keywords": [
10+
"eslint",
11+
"eslintconfig",
12+
"config",
13+
"stylelint",
14+
"stylelintrc"
15+
],
16+
"author": "required gmbh",
17+
"license": "GPL-2.0-or-later",
18+
"bugs": {
19+
"url": "https://github.com/wearerequired/coding-standards/issues"
20+
},
21+
"homepage": "https://github.com/wearerequired/coding-standards/tree/master/packages/eslint-config#readme",
22+
"private": true,
23+
"devDependencies": {
24+
"@wearerequired/eslint-config": "file:packages/eslint-config",
25+
"@wordpress/eslint-plugin": "^6.0.0",
26+
"eslint": "^7.0.0",
27+
"lerna": "^3.21.0"
28+
},
29+
"scripts": {
30+
"publish:check": "lerna updated",
31+
"publish:dev": "lerna publish --dist-tag next",
32+
"publish:prod": "lerna publish"
33+
}
34+
}

packages/eslint-config/.eslintrc

-3
This file was deleted.

packages/eslint-config/package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wearerequired/eslint-config",
3-
"version": "1.5.0-beta.1",
3+
"version": "1.5.0-beta.5",
44
"description": "required coding standard for JavaScript.",
55
"repository": {
66
"type": "git",
@@ -9,18 +9,16 @@
99
"keywords": [
1010
"eslint",
1111
"eslintconfig",
12-
"config"
12+
"config",
13+
"javascript",
14+
"coding standard"
1315
],
1416
"author": "required gmbh",
1517
"license": "GPL-2.0-or-later",
1618
"bugs": {
1719
"url": "https://github.com/wearerequired/coding-standards/issues"
1820
},
1921
"homepage": "https://github.com/wearerequired/coding-standards/tree/master/packages/eslint-config#readme",
20-
"devDependencies": {
21-
"@wordpress/eslint-plugin": "^6.0.0",
22-
"eslint": "^6.0.0"
23-
},
2422
"peerDependencies": {
2523
"@wordpress/eslint-plugin": "^6.0.0",
2624
"eslint": "^6.0.0"

packages/stylelint-config/package.json

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wearerequired/stylelint-config",
3-
"version": "1.5.0-alpha.1",
3+
"version": "1.5.0-beta.5",
44
"description": "required coding standard for (S)CSS.",
55
"repository": {
66
"type": "git",
@@ -9,25 +9,22 @@
99
"keywords": [
1010
"stylelint",
1111
"stylelintrc",
12-
"config"
12+
"config",
13+
"css",
14+
"scss",
15+
"postcss",
16+
"coding standard"
1317
],
1418
"author": "required gmbh",
1519
"license": "GPL-2.0-or-later",
1620
"bugs": {
1721
"url": "https://github.com/wearerequired/coding-standards/issues"
1822
},
1923
"homepage": "https://github.com/wearerequired/coding-standards/tree/master/packages/stylelint-config#readme",
20-
"devDependencies": {
21-
"@wearerequired/eslint-config": "^1.5.0 || ^1.5.0-beta",
22-
"@wordpress/eslint-plugin": "^6.0.0",
23-
"eslint": "^7.0.0",
24+
"peerDependencies": {
2425
"stylelint": "^13.0.0",
2526
"stylelint-config-wordpress": "^16.0.0"
2627
},
27-
"peerDependencies": {
28-
"stylelint-config-wordpress": "^16.0.0",
29-
"stylelint": "^13.0.0"
30-
},
3128
"publishConfig": {
3229
"access": "public"
3330
}

0 commit comments

Comments
 (0)