summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/task/package_json_post
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/task/package_json_post')
-rw-r--r--cli/tests/testdata/task/package_json_post/bin.out5
-rw-r--r--cli/tests/testdata/task/package_json_post/echo.out1
-rw-r--r--cli/tests/testdata/task/package_json_post/package.json6
3 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/testdata/task/package_json_post/bin.out b/cli/tests/testdata/task/package_json_post/bin.out
new file mode 100644
index 000000000..9864cc76d
--- /dev/null
+++ b/cli/tests/testdata/task/package_json_post/bin.out
@@ -0,0 +1,5 @@
+Warning Currently only basic package.json `scripts` are supported. Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in an upcoming release.
+Task test echo 'test'
+test
+Task posttest echo 'posttest'
+posttest
diff --git a/cli/tests/testdata/task/package_json_post/echo.out b/cli/tests/testdata/task/package_json_post/echo.out
new file mode 100644
index 000000000..573541ac9
--- /dev/null
+++ b/cli/tests/testdata/task/package_json_post/echo.out
@@ -0,0 +1 @@
+0
diff --git a/cli/tests/testdata/task/package_json_post/package.json b/cli/tests/testdata/task/package_json_post/package.json
new file mode 100644
index 000000000..82689f7d4
--- /dev/null
+++ b/cli/tests/testdata/task/package_json_post/package.json
@@ -0,0 +1,6 @@
+{
+ "scripts": {
+ "posttest": "echo 'posttest'",
+ "test": "echo 'test'"
+ }
+}