mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 06:05:24 +00:00
Add a new syncRules field project files to allow users to specify middleware to use for files (#813)
This commit is contained in:
30
rojo-test/build-tests/sync_rule_complex/default.project.json
Normal file
30
rojo-test/build-tests/sync_rule_complex/default.project.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "sync_rule_complex",
|
||||
"tree": {
|
||||
"$path": "src"
|
||||
},
|
||||
"syncRules": [
|
||||
{
|
||||
"pattern": "*.module",
|
||||
"use": "moduleScript"
|
||||
},
|
||||
{
|
||||
"pattern": "*.server",
|
||||
"use": "serverScript"
|
||||
},
|
||||
{
|
||||
"pattern": "*.client",
|
||||
"use": "clientScript"
|
||||
},
|
||||
{
|
||||
"pattern": "*.rojo",
|
||||
"exclude": "*.ignore.rojo",
|
||||
"use": "project"
|
||||
},
|
||||
{
|
||||
"pattern": "*.dog.rojo2",
|
||||
"use": "text",
|
||||
"suffix": ".dog.rojo2"
|
||||
}
|
||||
]
|
||||
}
|
||||
1
rojo-test/build-tests/sync_rule_complex/src/bar.server
Normal file
1
rojo-test/build-tests/sync_rule_complex/src/bar.server
Normal file
@@ -0,0 +1 @@
|
||||
-- Hello, from bar (a Script)!
|
||||
1
rojo-test/build-tests/sync_rule_complex/src/baz.client
Normal file
1
rojo-test/build-tests/sync_rule_complex/src/baz.client
Normal file
@@ -0,0 +1 @@
|
||||
-- Hello, from baz (a LocalScript)!
|
||||
@@ -0,0 +1 @@
|
||||
Hello, from cat (a StringValue)!
|
||||
1
rojo-test/build-tests/sync_rule_complex/src/foo.module
Normal file
1
rojo-test/build-tests/sync_rule_complex/src/foo.module
Normal file
@@ -0,0 +1 @@
|
||||
-- Hello, from foo (a ModuleScript)!
|
||||
9
rojo-test/build-tests/sync_rule_complex/src/qux.rojo
Normal file
9
rojo-test/build-tests/sync_rule_complex/src/qux.rojo
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "qux",
|
||||
"tree": {
|
||||
"$className": "StringValue",
|
||||
"$properties": {
|
||||
"Value": "Hello, from qux (a .rojo file that's turned into a StringValue)!"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
This file should be ignored!
|
||||
Reference in New Issue
Block a user