Lucien Greathouse
1031600c63
Batch rename: imfs -> vfs
2019-10-12 13:58:00 -07:00
Lucien Greathouse
83665018d4
Compute snapshot context from project in build
2019-10-11 18:25:12 -07:00
Lucien Greathouse
b093626a21
User plugin foundations for 0.6.0 ( #257 )
...
Starts work on #55 .
This is similar to the previous work in #125 . It's gated behind a new Cargo
feature, `user-plugins`. This time, the config gate is much smaller. The
`plugins` member of projects is still accessible when plugins aren't enabled,
but is always empty. Additionally, user plugins are only enabled if there's a
Lua state present in the snapshot context when the `SnapshotUserPlugins`
snapshot middleware runs. This not ever the case currently.
This code has very little possibility of rotting while we focus on other work,
since it'll be guaranteed to still compile and can be tested in isolation
without the feature being turned on.
2019-10-11 15:45:02 -07:00
Lucien Greathouse
f3dc78b7cd
Make InstanceSnapshotContext mutable through whole middleware pipeline
2019-10-10 14:07:10 -07:00
Lucien Greathouse
f0cd4333c3
Thread InstanceSnapshotContext through all SnapshotMiddleware
2019-10-10 11:44:33 -07:00
Lucien Greathouse
6d38a785ed
Make SnapshotMiddleware::from_instance have a default impl
2019-10-10 10:44:46 -07:00
Lucien Greathouse
e46f9fd94f
Simplify snapshot code using match_file_name utility
2019-10-09 18:27:52 -07:00
Lucien Greathouse
6b620ddcef
Add utility for working with file names, port JSON model to use it
2019-10-09 18:22:58 -07:00
Lucien Greathouse
e5684ad947
Add error for malformed project files
2019-10-09 18:15:07 -07:00
Lucien Greathouse
dfabc07044
More consistent handling of non-Unicode file names (should be rare)
2019-10-09 17:15:34 -07:00
Lucien Greathouse
dca88e8272
Port Project snapshot to use with_not_found
2019-10-09 15:30:03 -07:00
Lucien Greathouse
9f947ae2c5
Improve bad Unicode error handling in txt, CSV, and directory handling
2019-10-09 12:55:24 -07:00
Lucien Greathouse
28156bcaf2
Switch SnapshotMiddleware over to SnapshotError
2019-10-09 12:42:08 -07:00
Lucien Greathouse
a14aacbcf9
Improve SnapshotError in preparation for moving middleware to it
2019-10-09 12:39:36 -07:00
Lucien Greathouse
30351f7b9d
Add support for .meta.json files associated with .txt files
2019-10-08 17:44:23 -07:00
Lucien Greathouse
2393a1a114
Add support for .meta.json files affecting .csv LocalizationTables
2019-10-08 16:48:49 -07:00
Lucien Greathouse
2957e8ad73
Make Lua snapshot middleware test sort maps
2019-10-08 16:03:15 -07:00
Lucien Greathouse
f83abe15cb
Add test for ensuring that scripts can be disabled with .meta.json files
2019-10-08 15:46:51 -07:00
Lucien Greathouse
709cba45ce
Remove className from adjacent meta files, which is not supported in 0.5.x
2019-10-08 15:44:47 -07:00
Lucien Greathouse
8a9a72fd50
Refactor .meta.json into AdjacentMetadata type more strongly
2019-10-08 15:42:44 -07:00
Lucien Greathouse
13cb0a27a0
Make .meta.json changes cause scripts to be updated
2019-10-08 15:30:16 -07:00
Lucien Greathouse
fa817e3cdd
Add baseline support for adjacent meta files for scripts
2019-10-08 14:14:44 -07:00
Lucien Greathouse
98519da7d9
Reintroduce instigating paths for snapshot middleware
2019-10-04 18:36:04 -07:00
Lucien Greathouse
cb3211cf46
Mark project node as instigating source for instances from project
2019-10-04 18:10:45 -07:00
Lucien Greathouse
c051153a1f
Mark project file as instigating source for top-level instances
2019-10-04 18:05:27 -07:00
Lucien Greathouse
956d7e0918
Fix warning in JSON model snapshot test
2019-10-04 17:52:05 -07:00
Lucien Greathouse
530a7aa834
Rename 'contributing paths' to 'relevant paths'
2019-10-04 17:36:26 -07:00
Lucien Greathouse
052ca52cc3
Move instigating source out of contributing paths ( #253 )
...
* Refactor contributing_paths into contributing_sources, deleting project node sources
* Instead of changing contributing_paths, add instigating_source
* Remove InstanceMetadata::project_node
* Stop pushing project path to front of contributing_paths since it doesn't matter now
* Remove accidental UI change for path display
2019-10-04 17:34:05 -07:00
Lucien Greathouse
238233ca81
Stop serializing project_node if it's None
2019-10-04 15:12:34 -07:00
Lucien Greathouse
10ed353e0a
Add TODO for JSON model metadata
2019-10-03 18:30:10 -07:00
Lucien Greathouse
72d88200e4
Snapshot tests for JSON models
2019-10-03 18:28:58 -07:00
Lucien Greathouse
6ef832b3a9
Improve documentation for SnapshotProject
2019-10-03 18:25:06 -07:00
Lucien Greathouse
17d91563d5
Port project file tests to use insta
2019-10-03 18:22:20 -07:00
Lucien Greathouse
fb65693627
Propagate metadata in project files correctly
2019-10-03 18:12:52 -07:00
Lucien Greathouse
ae0f3b0b02
Assign contributing paths in simple cases for snapshots
2019-10-03 17:34:33 -07:00
Lucien Greathouse
2598ea3577
Add contributing paths to SnapshotLua, switch to Insta tests
2019-10-01 14:09:05 -07:00
Lucien Greathouse
95f06d56d8
Port SnapshotDir tests to use insta snapshots
2019-09-30 18:33:46 -07:00
Lucien Greathouse
c140823bea
Move Imfs snapshotting into ImfsDebug
2019-09-24 18:14:48 -07:00
Lucien Greathouse
4f3d917c9b
Add support for snapshotting rbxlx files
2019-09-23 18:13:38 -07:00
Lucien Greathouse
71968fca0d
Fold imfs::new back into imfs
2019-09-19 15:25:07 -07:00
Lucien Greathouse
e6ba6203bb
Expose tree in API, with hacks to make initial sync-in work sort of
2019-09-10 15:39:50 -07:00
Lucien Greathouse
bb6ab74c19
Clean up warnings, add RojoTree into ServeSession
2019-09-09 15:17:03 -07:00
Lucien Greathouse
5eb6754b7c
Implement metadata, replacing source field and laying foundations
2019-09-06 14:21:47 -07:00
Lucien Greathouse
a914a92cea
Add SnapshotSource property
2019-09-05 11:27:16 -07:00
Lucien Greathouse
2fb2342fd4
Fix Lua snapshot code to work with children.
...
It's also way easier to read now
2019-08-29 17:13:36 -07:00
Lucien Greathouse
6f7dbe99fe
Move Rojo server into root of the repository
2019-08-27 16:56:52 -07:00