Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
generator-angular-browserify
Advanced tools
Angular 1.x/Browserify component and app yeoman generator
Angular 1.x/Browserify component and app Yeoman generator
#Installation
Install Yeoman
npm install -g yo
Install this generator via npm:
npm install -g generator-angular-browserify
#Usage
###Components and Pages
yo angular-browserify:component my-new-component
or
yo angular-browserify:page my-new-page
When creating a new component or page, you will be prompted with three questions:
This final question will name all the functions in your page/component boilerplate code.
Using the argument as a name, this generator will create a new directory and boilerplate files for your component/page, like so:
my-new-component/
my-new-component.html
my-new-component.js
my-new-component.less
###Services
When creating a new service, you will be prompted with two questions:
This will name the outer wrapper function of the service, and create the service file in the specified directory.
###State (Redux) When creating state slices for using Redux, you will be prompted with two questions:
This will create reducer and actions files. If there's no current state folder, it will create one with an index.js file that requires the newly created reducer, and adds an empty action-names.js file.
If you choose yes to the first question, the reducer and actions files will be created in a subfolder of state/
If you choose yes to the second question, it will attempt to update the existing index.js file in state/ to include the new reducer.
#Configuration You can configure this generator by editing the yo-rc.json file in the root of the project directory where the generator is usually run from.
addFilesToVSReminder
If you work with Visual Studio, this message will be a reminder to add Yeoman-generated files to your Visual Studio project.
#License
The MIT License (MIT)
Copyright (c) 2016 Buildium
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Angular 1.x/Browserify component and app yeoman generator
The npm package generator-angular-browserify receives a total of 2 weekly downloads. As such, generator-angular-browserify popularity was classified as not popular.
We found that generator-angular-browserify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.