@sekrab/bin 6.0.0 → 6.0.1
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.
- package/package.json +5 -2
- package/readme.md +6 -6
- package/tasks/config.json +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sekrab/bin",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "sekrab tasks shared amongst shut cricket and other libs",
|
|
5
5
|
"main": "tasks/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -27,5 +27,8 @@
|
|
|
27
27
|
"bugs": {
|
|
28
28
|
"url": "https://github.com/ayyash/gulpbin/issues"
|
|
29
29
|
},
|
|
30
|
-
"homepage": "https://github.com/ayyash/gulpbin#readme"
|
|
30
|
+
"homepage": "https://github.com/ayyash/gulpbin#readme",
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=16.7"
|
|
33
|
+
}
|
|
31
34
|
}
|
package/readme.md
CHANGED
|
@@ -16,7 +16,7 @@ Find in code, example client of those two files.
|
|
|
16
16
|
|
|
17
17
|
## Commands for Angular
|
|
18
18
|
|
|
19
|
-
You can optionally use these instead of the angular cli packaged commands (or you can create files manually). here is a quick explanation of each command under
|
|
19
|
+
You can optionally use these instead of the angular cli packaged commands (or you can create files manually). here is a quick explanation of each command under angular.js, with the most useful at the top
|
|
20
20
|
|
|
21
21
|
> general rule: name, and major name should start with uppercase letter: like Example, the file names and selectors generated are all lowercase
|
|
22
22
|
|
|
@@ -69,16 +69,16 @@ You can optionally use these instead of the angular cli packaged commands (or yo
|
|
|
69
69
|
|
|
70
70
|
To generate assets after changing less files (this is a very critical task, you should not modify styles unless 100% sure of what you're doing)
|
|
71
71
|
|
|
72
|
-
- `npx shut rawless`: prepares *src/assets/css/cr.css*
|
|
73
|
-
- `npx shut watch`: does the same as rawless while watching sh.\*.less, ui.\*.less
|
|
72
|
+
- `npx shut rawless`: prepares *src/assets/css/cr.css*
|
|
73
|
+
- `npx shut watch`: does the same as rawless while watching sh.\*.less, ui.\*.less in *mockups* less folder (change in config)
|
|
74
74
|
- `npx shut icons`: this takes files from the icomoon generated files and copies them in */dummy* folder in preparetion to generate icons, then generates icons produced by icomoon tool in `dummy/iconset.html` and in `mockup/less/ui.icons.less`, run `npx shut rawless` afterwords to generate the css files. Browse to `localhost/~projectname/mockup/dummy/iconset.html` to see a list of icons generated.
|
|
75
|
-
- `npx shut critical`: generates four files: `cr.general.css` and `cr.critical.css`,
|
|
75
|
+
- `npx shut critical`: generates four files: `cr.general.css` and `cr.critical.css`, into `assets` folder (in addition to the cr.css). The general files are injected through `angular.json` into html, the critical files are added to html header (they are referenced in `placeholder.html`). This is to downsize the initial style file, and have better performance. The rules of which what gets placed in critical is very basic, any group of styles in any `mockup/less/*.less` file wrapped inside `/* CRITICAL BEGIN */` and `/* CRITICAL END */`.
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
> PS: Using less in components, is possible, remember to start with `@import "sh.vars.less"`;
|
|
79
|
+
> PS: Using less in components, is possible, remember to start with `@import "sh.vars.less"`;
|
|
80
80
|
|
|
81
81
|
Notes:
|
|
82
82
|
|
|
83
|
-
- `all.less`
|
|
83
|
+
- `all.less` in */mockup/less* are auto generated by the shut tasks, do not update directly
|
|
84
84
|
- icons rely on files generated by icomoon app: https://icomoon.io/app
|
package/tasks/config.json
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
"prefix": "sh",
|
|
3
3
|
"assets": {
|
|
4
4
|
"shutPath": "./node_modules/shut/src/",
|
|
5
|
-
"srcPath": "./
|
|
5
|
+
"srcPath": "./raw/",
|
|
6
6
|
"distPath": "./src/assets/",
|
|
7
7
|
"iconfontsPath": "./fontfiles/",
|
|
8
8
|
"cssFileName": "sh",
|
|
9
|
-
"isRtl": false,
|
|
10
9
|
"minifyPath": "./public/",
|
|
11
10
|
"browserslist": [
|
|
12
11
|
"> 6%"
|