
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
generator-libstart
Advanced tools
Yeoman generator to start your UMD library.
If you'd like to get to know Yeoman better check out the complete Getting Started Guide.
This generator will create a basic scaffolding of a generic UMD library.
It will come with :
The generator will even reserve its name on npm's registery if you whish to, thanks to npmreserve.
To install generator-libstart from npm, run:
npm install -g yo generator-libstart
Finally, initiate the generator:
yo libstart
To generate your new library simply run :
yo libstart <name of your creation>
Answer to some questions and you're good to go.
You'll be able to reserve your library's name into npm's registry if you whish to.
In your new library, you'll have some scripts available to automate your development.
npm preversion
(auto)Is run automatically before
npm bump
and runsnpm build
.
npm postversion
(auto)Is run automatically after
npm bump
and will synchronizebower.json
withpackage.js
's new version, and will generate the changelog.
npm build
(manual)It runs
test
, that is hooked with everything else.
npm pretest
(auto)Is run automatically before
npm test
and will umdify and uglify the library.
npm test
(manual)Tests.
npm postest
(auto)Is run automatically after
npm test
and controls formatting and linting.
They are all run by the previous npm scripts but you can run them at your convenience.
npm run-script format
Test the formatting with JSCS
npm run-script lint
Lint with ESLint
npm run-script umd
UMDify your library
npm run-script changelog
Generate a changelog for your library based on your commits if you've followed one of the supported convention. And will commit the changes automatically.
npm run-script bowerSync
Will synchronize bower.json's version with package.json's. And will commit the changes automatically.
npm run-script uglify
Uglify your library
library
├ .eslintrc // Basic ESLint config
├ .editorconfig // Basic Editor config
├ .jscsrc // Basic JSCS config
├ README.md
├ LICENSE
├ package.json
├ bower.json
│
└─── bin // Helpers for npm scripts
| ├ changelog.js // Is run with 'npm run-script changelog'
| └ bowerSync.js // Is run with 'npm postversion'
|
└─── src
| └ lib.js // Main file
|
└─── test
└ lib.spec.js // Mocha tests
MIT
FAQs
Yeoman generator to start your UMD library.
The npm package generator-libstart receives a total of 1 weekly downloads. As such, generator-libstart popularity was classified as not popular.
We found that generator-libstart 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.