nw-style-guide 11.1.0 → 11.2.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.
@@ -73,20 +73,14 @@ $nw-font-path: '~nw-style-guide/assets/fonts';
73
73
  1. Create a new feature branch off master
74
74
  1. Implement feature / fix in feature branch
75
75
  1. Create pull request
76
- 1. Build the Github Pages demo in the feature branch
77
- - `npm run ghpages`
78
- - Make sure to `git add --all` not to end up with untracked files
79
- - Commit with message `build:ghpages`
80
- - Push changes
81
-
82
76
  1. Update the package version with the command `npm version {{version_type}}`. The version bump is automatically committed. See [here](https://docs.npmjs.com/cli/v6/commands/npm-version#synopsis) for further information on the `npm version` command
83
77
  1. Push changes
84
78
  1. PR is approved
85
79
  1. Merge pull request to master
86
- 1. After merging to master, checkout master and pull the latest changes
87
- 1. Publish the new package version to npm with `npm run package:release`
88
- - `npm run package:release` first runs the `package:build` script
89
- - it then publishes the built files to npm
80
+ 1. After merging to master, the docs will be deployed to Github pages, a new release will be created (if the version in package.json has changed), and a new version will be published to npm
81
+
82
+ ### Manually publishing the package to npm
83
+ If there is an issue with Github Actions and we need to manually publish the package, we can do so with the `npm run package:release` script
90
84
 
91
85
  > :bulb: At the end of the `package:release` script you will be prompted for a one-time-password (OTP). You should get this OTP from whatever authenticator app you're using
92
86
 
@@ -130,19 +124,7 @@ This script does a few things:
130
124
 
131
125
  ### Github pages
132
126
 
133
- We use Github pages to continuously deploy the application. When Github detects a change to the `/docs` folder in master, a redeployment takes place.
134
-
135
- We can build the `/docs` folder for Github pages by running `npm run ghpages`.
136
-
137
- **It's important to rebuild the `/docs` folder before branches are merged to master. Otherwise new features or fixes won't be visible on our demo site on Github Pages. As part of a pull request the `/docs` folder should be rebuilt using `npm run ghpages`**
138
-
139
- ### Local server
140
-
141
- Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
142
-
143
- ### Build
144
-
145
- Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
127
+ We use Github pages to continuously deploy the application. This deployment is handled automatically with the [build-and-deploy-docs](./.github/workflows/build-and-deploy-docs.yml) Github workflow. Whenever the master branch is updated, you can expect this workflow to trigger.
146
128
 
147
129
  ### Building local versions
148
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-style-guide",
3
- "version": "11.1.0",
3
+ "version": "11.2.0",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "email": "garethdn@gmail.com",
@@ -11,6 +11,7 @@
11
11
  "start": "ng serve",
12
12
  "build": "ng build --configuration production",
13
13
  "test": "ng test",
14
+ "test-single-run": "npm run test -- --watch=false --progress=false --browsers=ChromeHeadless",
14
15
  "lint": "ng lint",
15
16
  "e2e": "ng e2e",
16
17
  "ngc": "ngc",
@@ -22,7 +23,7 @@
22
23
  "package:build": "node scripts/build.js",
23
24
  "package:make-local-tgz": "node scripts/make-local-tgz.js",
24
25
  "package:release": "node scripts/release.js",
25
- "prepackage:release": "npm run test -- --watch=false --progress=false --browsers=ChromeHeadless"
26
+ "prepackage:release": "npm run test-single-run"
26
27
  },
27
28
  "private": false,
28
29
  "devDependencies": {
@@ -67,7 +68,6 @@
67
68
  "json": "^9.0.6",
68
69
  "karma": "~6.3.4",
69
70
  "karma-chrome-launcher": "~3.1.0",
70
- "karma-cli": "~1.0.1",
71
71
  "karma-coverage-istanbul-reporter": "~3.0.2",
72
72
  "karma-jasmine": "~4.0.0",
73
73
  "karma-jasmine-html-reporter": "^1.5.0",