
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
grunt-tusk
Advanced tools
GruntJS based build system for frontend web projects.
app/
coffee/
i18n/
en.coffee
he.coffee
...
images/
pages/ - static pages (jade -> html)
index.jade - compiled to index.html
_layout.jade - files starting with _ are ignored, useful for layouts and partials
...
stylesheets/
templates/
index.jade - compiled to JS code and accessable via JST["index"]
...
test/
test.jade - test runner template
*_spec.coffee - test files
build/ - production output
public/ - development output
public/
index.html
vendor.js
templates.js
app.js
i18n/
en.js
he.js
...
app.css
images/
fonts/
test.html
test.js
test_vendor.js
build/
index.html
app.js - a combined version for vendor.js, templates.js, i18n/en.js and app.js
app
i18n/
he.js
...
app.css
images/
fonts/
"dependencies": {
"grunt": "~0.4.0",
"grunt-tusk": "~0.0.1"
},
module.exports = (grunt) ->
tusk = require 'grunt-tusk'
tusk.initialize grunt,
scripts:
vendor: [
'components/jquery/jquery.js'
'components/underscore/underscore.js'
'components/backbone/backbone.js'
'components/i18n-js/vendor/assets/javascripts/i18n.js'
'components/marionette/lib/backbone.marionette.js'
'components/bootstrap-sass/js/bootstrap-tooltip.js'
'components/bootstrap-sass/js/bootstrap-affix.js'
'components/bootstrap-sass/js/bootstrap-alert.js'
'components/bootstrap-sass/js/bootstrap-button.js'
'components/bootstrap-sass/js/bootstrap-carousel.js'
'components/bootstrap-sass/js/bootstrap-collapse.js'
'components/bootstrap-sass/js/bootstrap-dropdown.js'
'components/bootstrap-sass/js/bootstrap-modal.js'
'components/bootstrap-sass/js/bootstrap-popover.js'
'components/bootstrap-sass/js/bootstrap-scrollspy.js'
'components/bootstrap-sass/js/bootstrap-tab.js'
'components/bootstrap-sass/js/bootstrap-transition.js'
'components/bootstrap-sass/js/bootstrap-typeahead.js'
]
test_vendor: [
'components/mocha/mocha.js',
'components/chai/chai.js',
'components/sinon.js/sinon.js',
'components/sinon-chai/lib/sinon-chai.js'
]
copy: [
{ source: 'components/bootstrap-sass/img', dest: 'images' }
{ source: 'components/font-awesome/font', dest: 'fonts' }
]
{
"dependencies": {
"bootstrap-sass": "2.2.2",
"mocha": "1.8.1",
"chai": "1.4.2",
"sinon.js": "*",
"sinon-chai": "git://github.com/domenic/sinon-chai#2.3.1",
"font-awesome": "3.0.2",
"underscore": "1.4.4",
"backbone": "0.9.10",
"marionette": "1.0.0-rc5",
"i18n-js": "git://github.com/fnando/i18n-js"
}
}
See grunt-tusk-template for a basic template to get start faster.
FAQs
Grunt based build system
We found that grunt-tusk 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.