Skip to content

Commit 874723a

Browse files
committed
fix(package): switch to scoped packages, i.e. @skyhook/core
1 parent 7167661 commit 874723a

File tree

153 files changed

+179
-186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+179
-186
lines changed

README.md

Lines changed: 1 addition & 1 deletion

build-docs.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
pkg="angular-skyhook"
4-
53
usage () {
64
echo "usage: $0 [--serve] [--serve-only] [--no-examples] [--port <default is 8080>]"
75
}
@@ -66,8 +64,9 @@ fi
6664

6765
DIR=$(dirname "$0")
6866
output="$DIR/out-docs"
69-
skyhook="$DIR/packages/angular-skyhook"
70-
multi_backend="$DIR/packages/angular-skyhook-multi-backend"
67+
core="$DIR/packages/core"
68+
sortable="$DIR/packages/sortable"
69+
multi_backend="$DIR/packages/multi-backend"
7170
examples="$DIR/packages/examples"
7271

7372
EXAMPLES_TASK="local-docs"
@@ -90,18 +89,24 @@ build() {
9089
set -euxo pipefail
9190

9291
rm -rf out-docs
93-
rm -rf "$skyhook/documentation"
92+
rm -rf "$core/documentation"
9493

95-
(cd "$skyhook" && yarn run docs)
94+
(cd "$core" && yarn run docs)
9695

9796
# move main docs into output
98-
(mv "$skyhook/documentation" "$output")
97+
(mv "$core/documentation" "$output")
98+
99+
# build sortable docs
100+
(cd "$sortable" && yarn run docs)
101+
102+
# move multi-backend into output
103+
(mv "$sortable/documentation" "$output/sortable")
99104

100105
# build multi-backend docs
101-
(cd $multi_backend && yarn run docs)
106+
(cd "$multi_backend" && yarn run docs)
102107

103108
# move multi-backend into output
104-
(mv "$multi_backend/documentation" "$output/angular-skyhook-multi-backend")
109+
(mv "$multi_backend/documentation" "$output/multi-backend")
105110

106111
# build examples
107112
(cd "$examples" && yarn run $EXAMPLES_TASK)

docs/Guide.md

Lines changed: 1 addition & 1 deletion

docs/Quickstart.md

Lines changed: 5 additions & 5 deletions

docs/Translating-React-Code.md

Lines changed: 2 additions & 2 deletions

docs/Tutorial.md

Lines changed: 4 additions & 4 deletions

jest.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ module.exports = {
1414
"^.+\\.(ts|js|html)$": "<rootDir>/node_modules/jest-preset-angular/preprocessor.js"
1515
},
1616
moduleNameMapper: {
17-
"angular-skyhook": "<rootDir>/packages/angular-skyhook",
18-
"angular-skyhook-multi-backend": "<rootDir>/packages/angular-skyhook-multi-backend",
19-
"angular-skyhook-card-list": "<rootDir>/packages/angular-skyhook-card-list"
17+
"@skyhook/(.*)": "<rootDir>/packages/$1"
2018
},
2119
testRegex: ".*spec.ts$",
2220
moduleFileExtensions: [
@@ -37,8 +35,9 @@ module.exports = {
3735
// "<rootDir>/packages/*"
3836
],
3937
collectCoverageFrom: [
40-
"packages/angular-skyhook*/*/src/**/*.ts",
41-
"packages/angular-skyhook*/src/**/*.ts"
38+
"packages/core/*/src/**/*.ts",
39+
"packages/multi-backend/*/src/**/*.ts",
40+
"packages/sortable/*/src/**/*.ts",
4241
],
4342
coveragePathIgnorePatterns: [
4443
".*(spec|const|config|mock|module|public-api|index|mock|model|d).ts"

lerna.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
},
2525
"bootstrap": {
2626
"scope": [
27-
"angular-skyhook*"
27+
"@skyhook/*"
2828
]
2929
},
3030
"exec": {
3131
"scope": [
32-
"angular-skyhook*"
32+
"@skyhook/*"
3333
]
3434
},
3535
"clean": {

ng-package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
"dnd-multi-backend": "dndMultiBackend",
1313

1414
// local
15-
"angular-skyhook": "angularSkyhook",
15+
"@skyhook/core": "skyhook",
1616
}
1717
},
1818
whitelistedNonPeerDependencies: [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@angular-skyhook/monorepo",
2+
"name": "@skyhook/monorepo",
33
"private": true,
44
"version": "0.0.0",
55
"devDependencies": {

0 commit comments

Comments
 (0)