0.2.1 • Published 8 years ago
ember-js-modules v0.2.1
ember-js-modules
This addon will allow you to import all globals using js modules. Thanks to that you will stop using non-explicit variables and detect non-existent API.
This is a wrapper for a babel plugin: babel-plugin-javacsript
Usage
import JavaScript from 'javascript';
// You can access all globals like from selfimport { Object } from 'javascript';
// You can also destructure a single objectimport Math from 'javascript/Math';
// You can even import explicit moduleimport { abs } from 'javascript/Math';
// And of course, desctruct itInstallation
ember install ember-js-modules
Development
Installation
git clone https://github.com/Exelord/ember-js-modulescd ember-js-modulesnpm install
Linting
npm run lint:jsnpm run lint:js -- --fix
Running tests
ember test– Runs the test suite on the current Ember versionember test --server– Runs the test suite in "watch mode"npm test– Runsember try:eachto test your addon against multiple Ember versions
Running the dummy application
ember serve- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.