stop14-themesystem-legacy 1.1.7 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stop14-themesystem-legacy",
3
- "version": "1.1.7",
3
+ "version": "1.2.0",
4
4
  "description": "A scaffolding and build system for theme development across platforms. Legacy version",
5
5
  "author": {
6
6
  "name": "Bill Kennedy",
@@ -12,7 +12,8 @@
12
12
  "url": "https://github.com/stop14/stop14-themesystem-legacy"
13
13
  },
14
14
  "bin": {
15
- "scaffold": "./scripts/scaffold.sh"
15
+ "scaffold": "./scripts/scaffold.sh",
16
+ "parse-yaml": "./scripts/parse_yaml.sh"
16
17
  },
17
18
  "keywords": [
18
19
  "drupal",
@@ -0,0 +1,14 @@
1
+ ## 01 Colour And Patterns
2
+ clr1: #FCFF21
3
+ clr2: #191700
4
+ clr3: #1E15FF
5
+ clr4: #08EE57
6
+ clr5: #EE3AC2
7
+ black: $clr2
8
+
9
+ ## Typography
10
+ typescale: (base: 1, xsml: 1, sml: 1, med:1, lrg: 1, xlrg: 1, xxlrg: 1)
11
+ paragraph_spacing: math.div(map-get($line_heights,'base') * rv(math.round((map-get($min-sizefactors,'base') + map-get($sizefactors,'base')) * 0.5)),4)$basefont: Georgia, serif
12
+ headingfont: "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif
13
+ altfont: Georgia, serif
14
+ codefont: "Andale Mono", Monaco, Courier New, monospace
@@ -0,0 +1,30 @@
1
+ # Repurposed with thanks from https://stackoverflow.com/posts/21189044/revisions
2
+ if [ ${1#*.} = "yaml" ] || [ ${1#*.} = "yml" ]
3
+ then
4
+ prefix=$2
5
+ s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034')
6
+ sed -ne "s|^\($s\):|\1|" \
7
+ -e "s|^\($s\)\($w\)$s:$s[\"']\(.*\)[\"']$s\$|\1$fs\2$fs\3|p" \
8
+ -e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 |
9
+ awk -F$fs '{
10
+ indent = length($1)/2;
11
+ vname[indent] = $2;
12
+ for (i in vname) {if (i > indent) {delete vname[i]}}
13
+ if (length($3) > 0) {
14
+ vn=""; for (i=0; i<indent; i++) {vn=(vn)(vname[i])("\$")}
15
+ printf("%s%s%s: %s\n", "'$prefix'",vn, $2, $3);
16
+ }
17
+ }' > ${1%%.*}.sass
18
+ echo "Configuration conversion from" $1 "to" ${1%%.*}.sass "is complete."
19
+ else
20
+ echo "This file does not have a proper YAML extension"
21
+ fi
22
+
23
+ #
24
+ # if [ ${1#*.} = "yaml" ] || [ ${1#*.} = "yml" ]
25
+ # then
26
+ # <$1 sed 's/first://g' | sed ':a;N;$!ba;s/\nlast:/,/g' | sed -r '/^\s*$/d' > ${1%%.*}.sass
27
+ # echo "Conversion from" $1 "to" ${1%%.*}.sass "done"
28
+ # else
29
+ # echo "This file didn't have YAML extension"
30
+ # fi
@@ -12,11 +12,11 @@ then
12
12
  if [ $# -eq 2 ] && [ $2 == "rebuild" ]
13
13
  then
14
14
  yes | cp -rf ./node_modules/stop14-themesystem-legacy/scaffolding/$1/* ./
15
- yes | cp -rf ./node_modules/stop14-themesystem-legacy/scaffolding/$1/.* ./
15
+ yes | cp -rf ./node_modules/stop14-themesystem-legacy/scaffolding/$1/.eslintrc ./
16
16
 
17
17
  else
18
18
  cp -rn ./node_modules/stop14-themesystem-legacy/scaffolding/$1/* ./
19
- cp -rn ./node_modules/stop14-themesystem-legacy/scaffolding/$1/.* ./
19
+ cp -rn ./node_modules/stop14-themesystem-legacy/scaffolding/$1/.eslintrc ./
20
20
 
21
21
  fi
22
22
  fi