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
{ | |
"window.zoomLevel": 2, | |
"window.titleBarStyle": "custom", | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"breadcrumbs.enabled": true, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"editor.tabSize": 2, | |
"codestream.email": "kschingiz@gmail.com", | |
"files.autoSave": "off", |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Meteor: Node", | |
"runtimeExecutable": "npm", | |
"runtimeArgs": ["run", "debug"], | |
"outputCapture": "std", |
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
import { HTTP } from "meteor/meteor"; | |
import { TestCollection } from "../collections"; | |
Meteor.methods({ | |
testMethod(){ | |
// blocking | |
const result = HTTP.get("https://google.com"); | |
// blocking as well | |
return TestCollection.insert({ |
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
{ | |
"name": "me:my-package", | |
"version": "package-version", | |
"private": true, | |
"scripts": { | |
}, | |
"dependencies": { | |
// meteor packages start with "meteor/" prefix | |
"meteor/underscore": "1.0.0", | |
// plain npm package |
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
var assetFiles = [ | |
'deprecated-warning.js', | |
assetPath + 'components/ad.css', | |
assetPath + 'components/accordion.css', | |
assetPath + 'components/accordion.js', | |
assetPath + 'components/api.js', | |
assetPath + 'components/breadcrumb.css', | |
assetPath + 'components/button.css', | |
assetPath + 'components/card.css', | |
assetPath + 'components/checkbox.css', |
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
import Agent from "meteor/kschingiz:meteor-elastic-apm"; | |
import meteorMeasured from "meteor/kschingiz:meteor-measured"; | |
Agent.start({ | |
serviceName: "meteor-demo-app" | |
}); | |
const metrics = Agent._metrics; | |
const registrySymbol = Object.getOwnPropertySymbols(metrics).find( |
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
Npm.depends({ | |
moment: "^2.8.3", | |
package2: "^1.2.3", | |
}); |
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
Package.onUse(api => { | |
api.addAssets([ | |
"assets/*", | |
], ['client', 'server']); | |
}); |
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
Package.onUse(api => { | |
api.addAssets([ | |
"assets/config.json", | |
"assets/css.css", | |
"assets/font", | |
etc.. | |
], ['client', 'server']); | |
}); |
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
meteor create --package your_name:your_package_name |
NewerOlder