-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* v0.17.0 (#374) * style: update .prettierignore * style: run files inside `src` dir through Prettier * style: run `examples` directory through Prettier * refactor: check-in models generated by example 6 * feat: add a centralized logger with colour support * refactor: add missing change notes for v0.16.0 * refactor: UX improvements, see CHANGELOG.md for v0.17.0 apologies to anyone looking for several smaller commits, this started as a bugfix and ended up a polishing operation * refactor: add GitHub CI workflow file * chore: update yarn.lock * fix: regenerate models for example 4, including PatchSize * feat: wait for API servers to be online, then launch clients * fix: upgrade example 1 to Parcel v2 * refactor: use gql-sdl instead of apollo CLI * fix(examples): skip checking Typescript libraries * fix(generator): follow HTTP redirects, send JSON header * chore: check Yarn release v3.2.1 into VCS * feat: add .editorconfig * feat: upgrade to Yarn v3, enable Yarn workspaces * refactor: migrate to Husky v8 * fix: remove presets from .babelrc to appease Parcel * fix: give each example a unique package name * refactor: break apart test command into smaller pieces * style: format RootStore.base.ts, package.json bin entry * feat: integrate syncpack to keep library versions consistent * refactor: harmonize dependency versions across every package.json * fix: Yarn-ify CRA test, add patch to force CRA to use Yarn * refactor: run format command as part of tests * fix(ci): use proper Yarn 3 install command * fix(ci): typo in script name * refactor(ci): break apart test job * fix: don't run redundant Yarn installs * fix(ci): build mst-gql before attempting to test it * refactor(ci): remove CircleCI * style: format package.json files using Syncpack * chore: update CHANGELOG.md * fix: debug mode turning on when DEBUG envvar is 'false' * Add support of type import to --fieldOverrides One more fragment in fieldOverrides allows to import type definition from file. May be used for custom scalars support with MST type.custom() * update next.js mobx, mobx-react and mobx-state-tree versions * Scaffold nullable types as "(type | null)" * updated mobx versions, added graphql-ws subscribe support * Updated @types/react package version to ^17.0.40. Removed debug statements. Subscribe for graphql-ws client no longer throws on error, only does console.error * Updated version to 0.16.0 * fix: install Husky during npm postinstall step * chore: update yarn.lock * fix: typo * fix: sync react versions across example projects * chore: update test snapshot; regenerate example models * style: reformat generate.js * chore: update yarn.lock * chore: prepare for public release of 0.17.0 * fix: use prettier with --check instead of modifying files * style: update formatting using Prettier * chore: update yarn.lock * chore: update CHANGELOG.md Co-authored-by: Dmytro Shpak <[email protected]> Co-authored-by: Amos Elmaliah <[email protected]> Co-authored-by: Tomasz Sterna <[email protected]> Co-authored-by: ChrisABryant <[email protected]>
- Loading branch information
1 parent
b6869c9
commit 860b8d2
Showing
132 changed files
with
28,239 additions
and
9,423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
[*.{js,json,yml}] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Test | ||
on: | ||
pull_request: {} | ||
|
||
jobs: | ||
test: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
cache: 'yarn' | ||
|
||
- name: Install Dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Build mst-gql | ||
run: yarn build | ||
|
||
- name: Test mst-gql | ||
run: yarn test:mst-gql | ||
|
||
- name: Test Example 2 (Scaffolding) | ||
run: yarn test:example-2 | ||
|
||
- name: Test Example 6 (Hasura) | ||
run: yarn test:example-6 | ||
|
||
- name: Test CRA (Create React App) | ||
run: yarn test:cra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
yarn pretty-quick --staged | ||
yarn dlx syncpack format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
"eslint.enable": false, | ||
"cSpell.enabled": false, | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
diff --git a/.idea/.gitignore b/.idea/.gitignore | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..0a8642fac084e27fe66d81f111393d179c2d95d6 | ||
--- /dev/null | ||
+++ b/.idea/.gitignore | ||
@@ -0,0 +1,10 @@ | ||
+# Default ignored files | ||
+/shelf/ | ||
+/workspace.xml | ||
+# Editor-based HTTP Client requests | ||
+/httpRequests/ | ||
+# Datasource local storage ignored files | ||
+/dataSources/ | ||
+/dataSources.local.xml | ||
+# Zeppelin ignored files | ||
+/ZeppelinRemoteNotebooks/ | ||
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..03d9549ea8e4ada36fb3ecbc30fef08175b7d728 | ||
--- /dev/null | ||
+++ b/.idea/inspectionProfiles/Project_Default.xml | ||
@@ -0,0 +1,6 @@ | ||
+<component name="InspectionProjectProfileManager"> | ||
+ <profile version="1.0"> | ||
+ <option name="myName" value="Project Default" /> | ||
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" /> | ||
+ </profile> | ||
+</component> | ||
\ No newline at end of file | ||
diff --git a/.idea/markdown.xml b/.idea/markdown.xml | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..1e3409412310b56afb6dc2d619a9333bfe3f067e | ||
--- /dev/null | ||
+++ b/.idea/markdown.xml | ||
@@ -0,0 +1,9 @@ | ||
+<?xml version="1.0" encoding="UTF-8"?> | ||
+<project version="4"> | ||
+ <component name="MarkdownSettings"> | ||
+ <enabledExtensions> | ||
+ <entry key="MermaidLanguageExtension" value="false" /> | ||
+ <entry key="PlantUMLLanguageExtension" value="false" /> | ||
+ </enabledExtensions> | ||
+ </component> | ||
+</project> | ||
\ No newline at end of file | ||
diff --git a/.idea/misc.xml b/.idea/misc.xml | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..2c698e6da5e826476ee7220670b76040e744cdb1 | ||
--- /dev/null | ||
+++ b/.idea/misc.xml | ||
@@ -0,0 +1,13 @@ | ||
+<?xml version="1.0" encoding="UTF-8"?> | ||
+<project version="4"> | ||
+ <component name="DiscordProjectSettings"> | ||
+ <option name="show" value="ASK" /> | ||
+ <option name="description" value="" /> | ||
+ </component> | ||
+ <component name="ProjectRootManager"> | ||
+ <output url="file://$PROJECT_DIR$/out" /> | ||
+ </component> | ||
+ <component name="ProjectType"> | ||
+ <option name="id" value="jpab" /> | ||
+ </component> | ||
+</project> | ||
\ No newline at end of file | ||
diff --git a/.idea/modules.xml b/.idea/modules.xml | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..d9fb14e4d06a030cba3cd105982c4f196e0718a0 | ||
--- /dev/null | ||
+++ b/.idea/modules.xml | ||
@@ -0,0 +1,8 @@ | ||
+<?xml version="1.0" encoding="UTF-8"?> | ||
+<project version="4"> | ||
+ <component name="ProjectModuleManager"> | ||
+ <modules> | ||
+ <module fileurl="file://$PROJECT_DIR$/.idea/user.iml" filepath="$PROJECT_DIR$/.idea/user.iml" /> | ||
+ </modules> | ||
+ </component> | ||
+</project> | ||
\ No newline at end of file | ||
diff --git a/.idea/user.iml b/.idea/user.iml | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..d6ebd4805981b8400db3e3291c74a743fef9a824 | ||
--- /dev/null | ||
+++ b/.idea/user.iml | ||
@@ -0,0 +1,9 @@ | ||
+<?xml version="1.0" encoding="UTF-8"?> | ||
+<module type="JAVA_MODULE" version="4"> | ||
+ <component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
+ <exclude-output /> | ||
+ <content url="file://$MODULE_DIR$" /> | ||
+ <orderEntry type="inheritedJdk" /> | ||
+ <orderEntry type="sourceFolder" forTests="false" /> | ||
+ </component> | ||
+</module> | ||
\ No newline at end of file | ||
diff --git a/.idea/workspace.xml b/.idea/workspace.xml | ||
new file mode 100644 | ||
index 0000000000000000000000000000000000000000..554634180ec7e8aa55b35dd8883c4fea9f5844c5 | ||
--- /dev/null | ||
+++ b/.idea/workspace.xml | ||
@@ -0,0 +1,51 @@ | ||
+<?xml version="1.0" encoding="UTF-8"?> | ||
+<project version="4"> | ||
+ <component name="ChangeListManager"> | ||
+ <list default="true" id="aae9db04-307a-432f-ba1d-73c0568d0712" name="Changes" comment="" /> | ||
+ <option name="SHOW_DIALOG" value="false" /> | ||
+ <option name="HIGHLIGHT_CONFLICTS" value="true" /> | ||
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> | ||
+ <option name="LAST_RESOLUTION" value="IGNORE" /> | ||
+ </component> | ||
+ <component name="MacroExpansionManager"> | ||
+ <option name="directoryName" value="vf1vl67u" /> | ||
+ </component> | ||
+ <component name="MarkdownSettingsMigration"> | ||
+ <option name="stateVersion" value="1" /> | ||
+ </component> | ||
+ <component name="ProjectId" id="2AUiWBpQKVQulzpGjnDFgTKuvut" /> | ||
+ <component name="ProjectViewState"> | ||
+ <option name="autoscrollFromSource" value="true" /> | ||
+ <option name="compactDirectories" value="true" /> | ||
+ <option name="hideEmptyMiddlePackages" value="true" /> | ||
+ <option name="showLibraryContents" value="true" /> | ||
+ <option name="showMembers" value="true" /> | ||
+ <option name="sortByType" value="true" /> | ||
+ </component> | ||
+ <component name="PropertiesComponent"><![CDATA[{ | ||
+ "keyToString": { | ||
+ "RunOnceActivity.OpenProjectViewOnStart": "true", | ||
+ "RunOnceActivity.ShowReadmeOnStart": "true", | ||
+ "WebServerToolWindowFactoryState": "false", | ||
+ "node.js.detected.package.eslint": "true", | ||
+ "node.js.selected.package.eslint": "(autodetect)", | ||
+ "nodejs_package_manager_path": "npm", | ||
+ "settings.editor.selected.configurable": "AndroidSdkUpdater" | ||
+ } | ||
+}]]></component> | ||
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" /> | ||
+ <component name="TaskManager"> | ||
+ <task active="true" id="Default" summary="Default task"> | ||
+ <changelist id="aae9db04-307a-432f-ba1d-73c0568d0712" name="Changes" comment="" /> | ||
+ <created>1655070594295</created> | ||
+ <option name="number" value="Default" /> | ||
+ <option name="presentableId" value="Default" /> | ||
+ <updated>1655070594295</updated> | ||
+ <workItem from="1655070595861" duration="17000" /> | ||
+ </task> | ||
+ <servers /> | ||
+ </component> | ||
+ <component name="TypeScriptGeneratedFilesManager"> | ||
+ <option name="version" value="3" /> | ||
+ </component> | ||
+</project> | ||
\ No newline at end of file | ||
diff --git a/scripts/init.js b/scripts/init.js | ||
index 16822e7a8a2466728e70d7379655c36e1e1cb3df..087728dd6d0455d06d9c024b5e9d8dcd62af8a25 100644 | ||
--- a/scripts/init.js | ||
+++ b/scripts/init.js | ||
@@ -89,7 +89,7 @@ module.exports = function ( | ||
templateName | ||
) { | ||
const appPackage = require(path.join(appPath, 'package.json')); | ||
- const useYarn = fs.existsSync(path.join(appPath, 'yarn.lock')); | ||
+ const useYarn = true | ||
|
||
if (!templateName) { | ||
console.log(''); |
Oops, something went wrong.