d23adad7f6
With an updated eslint version and the addition of eslint-config-openstack and eslint-plugin-angular, there are several more stylistic guidelines to follow. However, this is what other OpenStack angular projects follow such as Horizon. Some notable changes are: * Wrapped javascript content in anonymous functions. This is a safeguard to keep the code from conflicting with other variables with the same name in other scripts on the same page. * Explicitly inject dependencies and have controllers, factories, etc as explicitly declared functions. * Use angular "controller as" syntax instead of assigning variables to $scope. * Added eslint rule that requires JSDoc for every function declaration. Note these are mainly stylistic changes and all the functionality of RefStack should remain the same. Change-Id: I044b1f473d589681a2ae9d2704700dd85687cbb6
32 lines
1010 B
JSON
32 lines
1010 B
JSON
{
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"name": "refstack-ui",
|
|
"description": "A user interface for RefStack",
|
|
"license": "Apache2",
|
|
"devDependencies": {
|
|
"bower": "1.3.12",
|
|
"eslint": "1.5.1",
|
|
"eslint-config-openstack": "1.2.1",
|
|
"eslint-plugin-angular": "0.12.0",
|
|
"http-server": "^0.6.1",
|
|
"karma": "^0.12.23",
|
|
"karma-chrome-launcher": "^0.1.5",
|
|
"karma-cli": "0.0.4",
|
|
"karma-firefox-launcher": "^0.1.3",
|
|
"karma-jasmine": "^0.2.2",
|
|
"karma-phantomjs-launcher": "0.2.0",
|
|
"phantomjs": "1.9.17",
|
|
"protractor": "~1.0.0"
|
|
},
|
|
"scripts": {
|
|
"postinstall": "bower install --config.interactive=false",
|
|
"prestart": "npm install",
|
|
"start": "http-server ./refstack-ui/app -a 0.0.0.0 -p 8080",
|
|
"pretest": "npm install",
|
|
"test": "karma start ./refstack-ui/tests/karma.conf.js --single-run",
|
|
"test-auto-watch": "karma start ./refstack-ui/tests/karma.conf.js --auto-watch",
|
|
"lint": "eslint -c ./.eslintrc --no-color ./refstack-ui"
|
|
}
|
|
}
|