
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-webpage-scaffold
Advanced tools
Help build the new Webpage project, static resource automatic generation of page demo file and dependence (optional without JS file). Once to initialize grunt, open the default browser to observe the compiled Demo. At the same time will automatically star
Help build the new Webpage project, static resource automatic generation of page demo file and dependence (optional without JS file). Once to initialize grunt, open the default browser to observe the compiled Demo. At the same time will automatically start the Livereload pattern of development, we can start coding: )
This plugin requires Grunt ~0.4.5
npm install grunt-webpage-scaffold --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-webpage-scaffold');
In Gruntfile, you need some config ,for example:
module.exports = (grunt) ->
grunt.initConfig
webpage:
options:
#coffee: 'coffee/page/'
js: 'js/page/'
less: 'less/page/'
lessCommonCode: '@import "../var";'
demo: 'demos/'
demoShowPath: 'http://localhost/git/moc/build/demos/'
tplPath: '.tpl'
Type: String
Default value: 'js/page/'
A string value that is used to determine where to generate js file. It's 'mutually exclusive with options.coffee
Type: String
Default value: ''
A string value that is used to determine where to generate coffee file. It's 'mutually exclusive with options.js
Type: String
Default value: 'less/page/'
A string value that is used to determine where to generate less file.
Type: String
Default value: ''
A string value that is used to write something common into less file at the top.
Type: String
Default value: 'demo/'
A string value that is used to determine where to generate html demo file.
Type: String
Default value: './build/demos/'
A string value that is used to determine what url to open in browser for preview.
Type: String
Default value: '.tpl'
A string value that is used to determine which template file to use for generate demo file..
opt = this.options(
coffee: false
js: 'js/page/'
less: 'less/page/'
lessCommonCode: ''
demo: 'demos/'
demoShowPath: './build/demos/'
tplPath: '.tpl'
)
welcome!
FAQs
Help build the new Webpage project, static resource automatic generation of page demo file and dependence (optional without JS file). Once to initialize grunt, open the default browser to observe the compiled Demo. At the same time will automatically star
We found that grunt-webpage-scaffold 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.