task-script-support-cli 0.2.4 → 0.2.6
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.
|
@@ -7,7 +7,7 @@ if [[ -z "$1" ]]; then
|
|
|
7
7
|
fi
|
|
8
8
|
|
|
9
9
|
DIR_LIST_TO_COPY=('.vscode' 'src' 'tests')
|
|
10
|
-
FILE_LIST_TO_COPY=('.
|
|
10
|
+
FILE_LIST_TO_COPY=('.prettierignore' '.prettierrc' 'task-runner' 'install-link.sh' 'eslint.config.ts' 'vitest.config.ts' 'package-lock.json' 'package.json' 'tsconfig.json')
|
|
11
11
|
NAME_REF_LIST=('package.json' 'package-lock.json' 'install-link.sh')
|
|
12
12
|
CWD=$(pwd)
|
|
13
13
|
SCRIPT_DIR=$(dirname "$0")
|
|
@@ -44,6 +44,18 @@ for fileToEdit in "${NAME_REF_LIST[@]}"; do
|
|
|
44
44
|
# echo "Running patch: sed -i \"s/task-runner/$1/g\" \"$DESTINATION/$fileToEdit\""
|
|
45
45
|
# sed -i "s/task-runner/$1/g" "$DESTINATION/$fileToEdit"
|
|
46
46
|
done
|
|
47
|
+
|
|
48
|
+
# do the .gitignore file manually since npm won't let us publish that in the template
|
|
49
|
+
# see: https://github.com/npm/npm/issues/3763
|
|
50
|
+
echo 'node_modules
|
|
51
|
+
dist
|
|
52
|
+
.env' > "$DESTINATION/.gitignore";
|
|
53
|
+
|
|
54
|
+
# remove double nested tests directory : need to look into why this is happening
|
|
55
|
+
if [ -d "$DESTINATION/tests/tests" ]; then
|
|
56
|
+
rm -rf "$DESTINATION/tests/tests";
|
|
57
|
+
fi
|
|
58
|
+
|
|
47
59
|
mv "$DESTINATION/task-runner" "$DESTINATION/$1"
|
|
48
60
|
|
|
49
61
|
|
|
@@ -7,7 +7,7 @@ if [[ -z "$1" ]]; then
|
|
|
7
7
|
fi
|
|
8
8
|
|
|
9
9
|
DIR_LIST_TO_COPY=('.vscode' 'src' 'tests')
|
|
10
|
-
FILE_LIST_TO_COPY=('.
|
|
10
|
+
FILE_LIST_TO_COPY=('.prettierignore' '.prettierrc' 'task-runner' 'install-link.sh' 'eslint.config.ts' 'vitest.config.ts' 'package-lock.json' 'package.json' 'tsconfig.json')
|
|
11
11
|
NAME_REF_LIST=('package.json' 'package-lock.json' 'install-link.sh')
|
|
12
12
|
CWD=$(pwd)
|
|
13
13
|
SCRIPT_DIR=$(dirname "$0")
|
|
@@ -44,6 +44,18 @@ for fileToEdit in "${NAME_REF_LIST[@]}"; do
|
|
|
44
44
|
# echo "Running patch: sed -i \"s/task-runner/$1/g\" \"$DESTINATION/$fileToEdit\""
|
|
45
45
|
# sed -i "s/task-runner/$1/g" "$DESTINATION/$fileToEdit"
|
|
46
46
|
done
|
|
47
|
+
|
|
48
|
+
# do the .gitignore file manually since npm won't let us publish that in the template
|
|
49
|
+
# see: https://github.com/npm/npm/issues/3763
|
|
50
|
+
echo 'node_modules
|
|
51
|
+
dist
|
|
52
|
+
.env' > "$DESTINATION/.gitignore";
|
|
53
|
+
|
|
54
|
+
# remove double nested tests directory : need to look into why this is happening
|
|
55
|
+
if [ -d "$DESTINATION/tests/tests" ]; then
|
|
56
|
+
rm -rf "$DESTINATION/tests/tests";
|
|
57
|
+
fi
|
|
58
|
+
|
|
47
59
|
mv "$DESTINATION/task-runner" "$DESTINATION/$1"
|
|
48
60
|
|
|
49
61
|
|
package/dist/package.json
CHANGED