Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
medsupp-quoter
Advanced tools
This is a fork/based on Sean's Angular Starter App with component and service generators using gulp for easy component development. Uses Karma-Mocha-Chai as test suit and Babel Loader and Webpack for ES6
cd
to path of the repo.npm install
npm install gulp -g
npm run dev
npm run test
npm run build
This app comes with some helpful and generators for creating a new component/service. You simply have to hook them up to your components.js and services.js file.
gulp component --name <NAME_OF_YOUR_COMPONENT>
gulp common_component --name <NAME_OF_YOUR_COMPONENT>
gulp service --name <NAME_OF_YOUR_SERVICE>
##Project Structure
/app
/assets
/images
/foo.png
/common
/button
/button.js
/button.component.js
/button.controller.js
/button.html
/button.scss
/button.test.js
/navbar/
/components.js
/components
/about
/about.js
/about.component.js
/about.controller.js
/about.html
/about.scss
/about.test.js
/home/
/components.js
/services
/users
/users.js
/users.service.js
/users.test.js
/documents/
/services.js
/app.config.js
/index.js
/index.html
/index.scss
index.js
is the main entry file which serves as the total include point for all of your components, services, assets, and styles.
Notice that throughout the project, that the angular setter/getter is called once, and is assigned to a constant which is passed through each of the dependancy trees so that it is exposed to the rest of the imported/exported components.
Why? Because this makes your components more modular, allowing whatever angular.module
object to be assigned to the exported component/component set.
// index.js
// Angular & Router ES6 Imports
import angular from 'angular';
import angularUIRouter from 'angular-ui-router';
import appComponents from './components/components.js';
import commonComponents from './common/components.js';
import appServices from './services/services.js';
import appConfiguration from './app.config';
// Single Style Entry Point
import './index.scss';
if (ENVIRONMENT === 'test') {
console.log('ENV:', ENVIRONMENT);
require('angular-mocks/angular-mocks');
}
const app = angular.module('app', ['ui.router']);
// Components Entrypoint
appComponents(app);
// Common Components Entrypoint
commonComponents(app);
// App Services Entrypoint
appServices(app);
// Router Configuration
// Components must be declared first since
// Routes reference controllers that will be bound to route templates.
// appConfiguration(app);
FAQs
Medsupp Quoter
We found that medsupp-quoter 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.