Skip to content

Commit

Permalink
remove materialize meteor package, use npm instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
minhna committed May 18, 2018
1 parent c75218e commit d9cd750
Show file tree
Hide file tree
Showing 7 changed files with 191 additions and 532 deletions.
1 change: 0 additions & 1 deletion .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ dynamic-import@0.3.0
react-meteor-data
minifier-css@1.3.0
juliancwirko:postcss
materialize:materialize
accounts-base@1.4.2
accounts-password@1.5.0
email@1.2.3
Expand Down
18 changes: 8 additions & 10 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ accounts-oauth@1.1.15
accounts-password@1.5.1
allow-deny@1.1.0
autoupdate@1.4.0
babel-compiler@7.0.7
babel-compiler@7.0.8
babel-runtime@1.2.2
base64@1.0.11
binary-heap@1.0.10
blaze-tools@1.0.10
boilerplate-generator@1.4.0
bozhao:link-accounts@1.2.12
caching-compiler@1.1.11
caching-compiler@1.1.12
caching-html-compiler@1.1.2
callback-hook@1.1.0
check@1.3.1
Expand All @@ -24,37 +24,35 @@ ddp-server@2.1.2
deps@1.0.12
diff-sequence@1.1.0
dynamic-import@0.3.0
ecmascript@0.10.7
ecmascript@0.10.8
ecmascript-runtime@0.5.0
ecmascript-runtime-client@0.6.2
ecmascript-runtime-server@0.5.0
ejson@1.1.0
email@1.2.3
es5-shim@4.7.3
facebook-oauth@1.4.1
fourseven:scss@4.5.4
fourseven:scss@4.9.0
geojson-utils@1.0.10
google-oauth@1.2.5
hot-code-push@1.0.4
html-tools@1.0.11
htmljs@1.0.11
http@1.4.1
id-map@1.1.0
jquery@1.11.11
juliancwirko:postcss@1.3.0
launch-screen@1.1.1
livedata@1.0.18
localstorage@1.2.0
logging@1.1.20
materialize:materialize@0.100.2
meteor@1.8.6
meteor-base@1.3.0
minifier-css@1.3.1
minifier-js@2.3.4
minifier-js@2.3.5
minimongo@1.4.4
mobile-experience@1.0.5
mobile-status-bar@1.0.14
modules@0.11.6
modules@0.11.7
modules-runtime@0.9.2
mongo@1.4.7
mongo-dev-server@1.1.0
Expand All @@ -72,15 +70,15 @@ reactive-var@1.0.11
reload@1.2.0
retry@1.1.0
routepolicy@1.0.13
server-render@0.3.0
server-render@0.3.1
service-configuration@1.0.11
sha@1.0.9
shell-server@0.3.1
shim-common@0.1.0
socket-stream-client@0.1.0
spacebars-compiler@1.1.3
srp@1.0.10
standard-minifier-js@2.3.3
standard-minifier-js@2.3.4
static-html@1.2.2
templating-tools@1.1.2
tmeasday:check-npm-versions@0.3.2
Expand Down
1 change: 1 addition & 0 deletions client/main.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import 'materialize.scss';
@import '../imports/ui/layouts/site/site.scss';
8 changes: 8 additions & 0 deletions imports/startup/client/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import { Meteor } from 'meteor/meteor';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router } from 'react-router-dom';
import createHistory from 'history/createBrowserHistory';
import { onPageLoad } from 'meteor/server-render';

if (Meteor.isClient) {
import Materialize from 'materialize-css';
// set global (that way we don´t need to import in every file)
global.M = Materialize;
global.Materialize = Materialize;
}

const history = createHistory();

onPageLoad(async () => {
Expand Down
Loading

0 comments on commit d9cd750

Please sign in to comment.