Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
ice-ismds-plugin
Advanced tools
ICE plugins allows for easy modification, customization, and enhancement of the ice.core library. Instead of changing the core programming of ICE, you can add functionality with ICE plugins.
Folder | Description |
---|---|
demo/ | This is where your demo pages for you plugin goes. In ice-core, these are html pages but this folder can contain anything that can showcase your project. |
dist/ | This is where any files needed to use your plugin goes. |
documents/ | This is where your documentation goes. ICE and it's plugins will use Beautiful Docs. This library converts md files into static html files. |
drivers/ | This folder contains all the drivers to run Selenium. |
grunt/ | This folder contains all the configs and task for grunt that ICE currently uses. You can add to this folder but it isn't reccommended to remove any of the tasks or configs. |
src/ | This is where you write your plugin. |
test/ | This is where all the testing goes. |
test/fixtures/ | ICE needs a config or a geometry to run, store your testing configs here. |
test/functional/ | This is where you will write your functional tests. |
test/helpers/ | You can provide helper libraries here to help with unit tests and automated ones. |
test/lib/ | You can provide any additional libraries needed to help you run your tests. |
test/manual/ | If you want to test a feature manually, you can put the pages here. |
test/pages/ | Pages that your test run. |
test/specs/ | This is where your unit test should go. |
This function is used to access plugin functions through the core.
Parameters | Type | Description |
---|---|---|
name | String | The name that the core associates the callback with. |
callback | Function | The function that gets associated to the name. |
This is how you use the registerProxy function:
ice.registerProxy('return-one', function(){
return 1;
});
This function is used run the callbacks you registered to the proxy.
Parameters | Type | Description |
---|---|---|
name | String | The name of the plugin function you want to access. |
This is how you use the execute function:
ice.execute('return-one');
Include ICE Plugin and the css:
<script src="dist/js/ice.<name>.plugin.js"></script>
<link href="dist/css/ice.<name>.pugin.css"></link>
Include ICE CORE:
<script src="bower_components/ice-core/dist/js/ice.core.min.js"></script>
Include DIV to be the venue map container and a DIV for the selection tool buttons:
<div id="venue_page" ></div>
<div id="buttons" ></div>
(note: if you want the buttons to be positioned a particular way, you will likely need to wrap both the venue map and buttons in a div that is set with position: relative and then set the buttons div to position:absolute)
Create an ice instance:
var ice = new ICE.create({'div':'canvas div'});
5. Pass the ice instance to the <name>Plugin.create function:
```javascript
ICE.<name>Plugin.create(ice, options);
Ice Core uses node and grunt with convenient methods for working with the library. It's how we compile our code, run tests, and run the documentation server. To use it, install the required dependencies as directed and then run some Grunt commands.
From the command line:
grunt-cli
globally with npm install -g grunt-cli
.bower
globally with npm install -g bower
.npm install
. npm will look at [package.json] and run bower install. bower will look at [bower.json]bower install
.When completed, you'll be able to run the various Grunt commands provided from the command line.
Unfamiliar with npm? Don't have node installed? That's a-okay. npm stands for node packaged modules and is a way to manage development dependencies through node.js. Download and install node.js before proceeding.
grunt bundle
creates the /dist/js
directory with compiled files. Uses UglifyJS.
creates the '/docs/'
grunt concurrent:test
Runs a selenium server. Required to run all cucumber tests
grunt cucumber
Runs all cucumber tests. Requires a selenium server to be running.
grunt karma:dev
Runs all unit tests present in the test/specs folder. Generates a coverage report in the coverage folder. Can be viewed by navigating to localhost/coverage.
grunt server
This is used to run the demo folder. After you run the command, open http://localhost:9000 in your browser and it will open up the demo files.
Should you encounter problems with installing dependencies or running Grunt commands, uninstall all previous dependency versions (global and local). Then, rerun npm install
.
You need to run three seperate commands to run the bdd
node ./node_modules/selenium-standalone/bin/selenium-standalone start // This is to start the selenium server
grunt test-servers // This is to run the connect server to serve the html pages
grunt cucumber:functional:debug // This runs the cucumber tests
FAQs
<description>
The npm package ice-ismds-plugin receives a total of 0 weekly downloads. As such, ice-ismds-plugin popularity was classified as not popular.
We found that ice-ismds-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.