Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Starch is an opinionated skeleton generator for basic static site development. It will get you going on new sites quickly by generating the meat and potatoes of your toolchain. Starch gets you:
bower.json
and package.json
files for easily saving bower and
npm dependenciesnpm
$ gem install starch
To scaffold a new site named mysite
:
$ starch new mysite
Starch will create a directory mysite
within the current directory that looks
like this:
├── Gruntfile.js
├── app
│ ├── assets
│ │ ├── files
│ │ ├── fonts
│ │ ├── images
│ │ ├── js
│ │ └── stylesheets
│ │ └── main.scss
│ ├── helpers.js
│ ├── pages
│ ├── partials
│ └── templates
│ └── default.hbt
├── bower.json
├── node_modules
│ └── ...
└── package.json
app/assets/pages/
with .html
extensions.
---
) at the top of
the file with frontmatter. The data provided here will be available in the
file and in the file's template, via the page
object.app/assets/partials/
with .hbp
extensions.
{{> my-partial-name}}
).
app/assets/templates/
with .hbt
extensions.
default.hbt
is the default template and needs to exist, otherwise you're
gonna have a bad time..html
file uses by specifying
template: some-template-name
in the file's frontmatter.{{{body}}}
in your templates where the HTML should be rendered.app/helpers.js
. In the exported object,
each key/value pair should resemble helperName: function(value) { ... }
.app/assets/js/
.
.js
extension and Coffeescript files should
have a .coffee
extension.app/assets/stylesheets/
.
app/assets/stylesheets/main.scss
. This file should be used to import the
rest of your SASS.app/assets/images/
with .png
, .jpg
, or .gif
extensions will
be optimized and copied 1:1 into the destination directory.fonts
and files
(located in app/assets
), respectively. These files will be copied 1:1
without any additional processing.When your site is staged or built, the assets
directory will be placed in the
root of the destination directory, alongside the rendered contents of the
pages
directory. For example, app/pages/index.html
will end up as
/index.html
, and you can reference assets in your site like:
/assets/images/spuds.png
.
The entirety of the Starch toolchain is accessible through Grunt. There are quite a few tasks defined in the Gruntfile, but there are only three that you should really care about:
grunt serve
: Builds your site for staging and starts a preview server on
http://0.0.0.0:8000
. livereload
is enabled, so any time the app
directory changes, the site will be automatically refreshed in your browser.
Neat!grunt build
: Builds your site for production into the public_html
directory.grunt clean
: Nukes the staging
and public_html
directories. You can be
more specific with grunt clean:staging
and grunt clean:build
,
respectively.Starch is meant to provide a solid starting point for new projects; however, it may not always meet your particular needs. You're encouraged to modify the generated Gruntfile (or anything else) to meet the requirements of your project.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that starch 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.