create-webiny-project 5.33.5 → 5.34.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +17 -46
  2. package/package.json +6 -6
  3. package/CHANGELOG.md +0 -2457
package/README.md CHANGED
@@ -66,28 +66,14 @@ This will set the necessary values in yarn2 config file, which will be located i
66
66
 
67
67
  > Yarn2 projects don't rely on global configurations and is not installed globally, but on per-project basis. This allows having multiple versions of yarn2, for different projects.
68
68
 
69
- #### 3. Version and publish packages
69
+ #### 3. Release
70
70
 
71
71
  Commit (no need to push it if you don't want to) all of the code changes, and execute the following command:
72
72
 
73
- ```
74
- yarn lerna:version:verdaccio
75
- ```
76
-
77
- This will increment the version of all packages in the repository, create a tag, and do some other preparations that are needed before we start publishing. Note that it will also create a new commit, which MUST NOT be pushed to your remote origin. If you happen to do it by accident, you'll need to revert the changes and push those.
78
-
79
- Once that's done, you run the following command:
80
73
 
74
+ ```bash
75
+ yarn release --type=verdaccio
81
76
  ```
82
- yarn lerna:publish:verdaccio
83
- ```
84
-
85
- This will publish the packages to Verdaccio. Once it's done, you can start testing.
86
-
87
- > You can also execute both commands immediately with:
88
- > ```
89
- > yarn lerna:version:verdaccio && yarn lerna:publish:verdaccio
90
- > ```
91
77
 
92
78
  #### 4. Test
93
79
 
@@ -99,41 +85,26 @@ npx create-webiny-project@next my-test-project --tag next --assign-to-yarnrc '{"
99
85
 
100
86
  This should create a project, with all of the packages pulled from Verdaccio.
101
87
 
102
- #### 5. Additional testing
103
-
104
- If, while testing, you've spotted an error or something that needs to be improved, you should revert the `lerna:version:verdaccio` commit that was made in your repo and start over, by adding your changes, and repeating the step 3.
105
-
106
- To revert the version commit, you can run `git reset HEAD~ && git reset --hard HEAD`.
107
- To restart Verdaccio, you can delete the `.verdaccio` folder created in your project root, stop the existing Verdaccio server (just CMD+C in terminal), and start it again with `yarn verdaccio:start`.
108
-
109
- ##### Why not just make another commit, and repeat step 3?
110
-
111
- The thing is, you will make your commits, and then another `lerna:version:verdaccio` commit, and so on. So, after a while, you'll end up having a mix of your own commits and `lerna:version:verdaccio` commits, and you still need to remove all of the `lerna:version:verdaccio` commits in the end.
112
-
113
- > If you come up with a better way to do this, feel free to let us know.
114
-
115
- #### 6. Cleanup
88
+ #### 5. Cleanup
116
89
 
117
90
  Once you're done, do the following:
118
91
 
119
- 1. Undo all commits created with `lerna:version:verdaccio`.
120
- 2. Remove created tags. List all tags with `git tag -l "v5*"` and delete a tag with `git tag -d "v5.0.0-next.5"`.
121
- 3. Reset NPM registry with `npm config set registry https://registry.npmjs.org/`
122
- 4. Remove `.verdaccio` folder
92
+ 1. Reset NPM registry with `npm config set registry https://registry.npmjs.org/`
93
+ 2. Remove `.verdaccio` folder
123
94
 
124
95
  ### Commands Cheat Sheet
125
96
 
126
- | Description | Command |
127
- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
128
- | Remove `.verdaccio` folder | `rm -rf .verdaccio` |
129
- | List all v5\* tags | `git tag -l "v5*"` |
130
- | Remove specific tag | `git tag -d "v5.0.0-next.5"` |
131
- | Set Verdaccio as the NPM registry | `npm config set registry http://localhost:4873` |
132
- | Reset NPM registry | `npm config set registry https://registry.npmjs.org/` |
133
- | Start Verdaccio | `yarn verdaccio:start` |
134
- | Version and publish to Verdaccio | `yarn lerna:version:verdaccio && yarn lerna:publish:verdaccio` |
135
- | Create a new Webiny project | `npx create-webiny-project@next my-test-project --tag next --assign-to-yarnrc '{"npmRegistryServer":"http://localhost:4873","unsafeHttpWhitelist":["localhost"]}'` |
136
- | Revert versioning commit | `git reset HEAD~ && git reset --hard HEAD` |
97
+ | Description | Command |
98
+ |-----------------------------------------------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
99
+ | Remove `.verdaccio` folder | `rm -rf .verdaccio` |
100
+ | List all v5\* tags | `git tag -l "v5*"` |
101
+ | Remove specific tag | `git tag -d "v5.0.0-next.5"` |
102
+ | Set Verdaccio as the NPM registry | `npm config set registry http://localhost:4873` |
103
+ | Reset NPM registry | `npm config set registry https://registry.npmjs.org/` |
104
+ | Start Verdaccio | `yarn verdaccio:start` |
105
+ | Release to Verdaccio | `yarn release --type=verdaccio` |
106
+ | Create a new Webiny project | `npx create-webiny-project@next my-test-project --tag next --assign-to-yarnrc '{"npmRegistryServer":"http://localhost:4873","unsafeHttpWhitelist":["localhost"]}'` |
107
+ | Revert versioning commit | `git reset HEAD~ && git reset --hard HEAD` |
137
108
 
138
109
  ## Troubleshooting
139
110
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-webiny-project",
3
- "version": "5.33.5",
3
+ "version": "5.34.0-beta.0",
4
4
  "description": "Webiny project bootstrap tool.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,11 +13,11 @@
13
13
  "author": "Webiny Ltd.",
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "@webiny/telemetry": "5.33.5",
16
+ "@webiny/telemetry": "5.34.0-beta.0",
17
17
  "chalk": "4.1.0",
18
18
  "execa": "5.1.1",
19
19
  "find-up": "5.0.0",
20
- "fs-extra": "9.0.1",
20
+ "fs-extra": "9.1.0",
21
21
  "js-yaml": "3.14.1",
22
22
  "listr": "0.14.3",
23
23
  "load-json-file": "6.2.0",
@@ -25,15 +25,15 @@
25
25
  "os": "0.1.1",
26
26
  "p-retry": "4.2.0",
27
27
  "rimraf": "3.0.2",
28
- "semver": "7.3.7",
28
+ "semver": "7.3.8",
29
29
  "uuid": "8.3.2",
30
30
  "validate-npm-package-name": "3.0.0",
31
31
  "write-json-file": "4.3.0",
32
- "yargs": "17.5.1"
32
+ "yargs": "17.6.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public",
36
36
  "directory": "."
37
37
  },
38
- "gitHead": "5063045cd2abdcdb360f97262f9b90b8858ec1df"
38
+ "gitHead": "9648454619a1bfb35040eb00f27a64ed75194e61"
39
39
  }