Skip to content

Commit

Permalink
Remove snapshot-spaces from packages and add as module instead (snaps…
Browse files Browse the repository at this point in the history
…hot-labs#584)

* Remove snapshot-spaces from packages and add as module instead

* Add preinstall for submodules
  • Loading branch information
samuveth authored Aug 28, 2021
1 parent 2aed421 commit c9c58b2
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "snapshot-spaces"]
path = snapshot-spaces
url = https://github.com/snapshot-labs/snapshot-spaces
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "snapshot",
"version": "0.1.3",
"scripts": {
"preinstall": "git submodule update --init",
"dev": "vite",
"build": "vite build",
"lint": "eslint './src/*/**/*.{ts,vue,json}' --fix",
Expand All @@ -23,7 +24,6 @@
"@portis/web3": "^4.0.5",
"@primer/css": "^14.4.0",
"@snapshot-labs/lock": "github:snapshot-labs/lock#master",
"@snapshot-labs/snapshot-spaces": "github:snapshot-labs/snapshot-spaces#master",
"@snapshot-labs/snapshot.js": "github:snapshot-labs/snapshot.js#master",
"@toruslabs/torus-embed": "^1.12.1",
"@vue/apollo-composable": "4.0.0-alpha.12",
Expand Down
1 change: 1 addition & 0 deletions snapshot-spaces
Submodule snapshot-spaces added at 3833e0
2 changes: 1 addition & 1 deletion src/composables/useDomain.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import domains from '@snapshot-labs/snapshot-spaces/spaces/domains.json';
import domains from '@/../snapshot-spaces/spaces/domains.json';

export function useDomain() {
const domainName = window.location.hostname;
Expand Down
2 changes: 1 addition & 1 deletion src/composables/useSearchFilters.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { computed } from 'vue';
import skins from '@snapshot-labs/snapshot-spaces/skins';
import skins from '@/../snapshot-spaces/skins';
import networks from '@snapshot-labs/snapshot.js/src/networks.json';
import plugins from '@snapshot-labs/snapshot.js/src/plugins';
import validations from '@snapshot-labs/snapshot.js/src/validations';
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createApp, h, provide } from 'vue';
import Jazzicon from 'vue3-jazzicon/src/components';
import { LockPlugin } from '@snapshot-labs/lock/plugins/vue3';
import options from '@/helpers/auth';
import '@snapshot-labs/snapshot-spaces/skins';
import '../snapshot-spaces/skins';
import App from '@/App.vue';
import router from '@/router';
import mixins from '@/mixins';
Expand Down
4 changes: 2 additions & 2 deletions src/router.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createRouter, createWebHashHistory } from 'vue-router';
import domains from '@snapshot-labs/snapshot-spaces/spaces/domains.json';
import aliases from '@snapshot-labs/snapshot-spaces/spaces/aliases.json';
import domains from '@/../snapshot-spaces/spaces/domains.json';
import aliases from '@/../snapshot-spaces/spaces/aliases.json';
import Home from '@/views/Home.vue';
import Proposal from '@/views/Proposal.vue';
import Create from '@/views/Create.vue';
Expand Down
2 changes: 1 addition & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { ref, computed, watchEffect } from 'vue';
import { useRoute } from 'vue-router';
import orderBy from 'lodash/orderBy';
import spotlight from '@snapshot-labs/snapshot-spaces/spaces/spotlight.json';
import spotlight from '@/../snapshot-spaces/spaces/spotlight.json';
import { useUnseenProposals } from '@/composables/useUnseenProposals';
import { useScrollMonitor } from '@/composables/useScrollMonitor';
import { useApp } from '@/composables/useApp';
Expand Down
4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,6 @@
version "0.1.3"
resolved "https://codeload.github.com/snapshot-labs/lock/tar.gz/master"

"@snapshot-labs/snapshot-spaces@github:snapshot-labs/snapshot-spaces#master":
version "0.1.0"
resolved "https://codeload.github.com/snapshot-labs/snapshot-spaces/tar.gz/master"

"@snapshot-labs/snapshot.js@github:snapshot-labs/snapshot.js#master":
version "0.2.0"
resolved "https://codeload.github.com/snapshot-labs/snapshot.js/tar.gz/master"
Expand Down

0 comments on commit c9c58b2

Please sign in to comment.