Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Task extensions for bake(1).
This software is currently under development in the 0.x.x version range and is released using the semver(7) semantic versioning specification.
Provides tasks for compiling javascript and css for web applications using requirejs and sass.
├── r.js -> node_modules/requirejs/bin/r.js
├── server
│ └── public
│ └── assets
│ ├── css
│ └── js
├── src
│ ├── build.js
│ ├── js
│ └── sass
└── target
└── webapp-build
└── assets
├── css
└── js
The directory target/webapp-build
is used as a staging directory.
Public files for the web application are placed in the server/public/assets
directory.
Source sass scss
files are placed in src/sass
by default.
Source javascript files go in src/js
.
Ensure you have declared dependencies on strike(7), bake-tasks(7) and requirejs in your package.json
:
"dependencies": {
"strike": ">= 0.1.2",
"bake-tasks": ">= 0.0.1",
"requirejs": ">= 2.1.3"
}
For existing projects run npm install
and create the r.js
and bake
symlinks:
ln -s node_modules/strike/bin/bake .
ln -s node_modules/requirejs/bin/r.js .
Then in your tasks
file you can require these tasks with:
require 'tasks/www-devel';
Or if you are creating a new project you can scaffold the directory layout (and r.js
symbolic link) with:
npm install \
&& ln -sf node_modules/strike/bin/bake . \
&& echo "require 'tasks/www-devel';" > ./tasks \
&& ./bake optimize scaffold
The live task uses fswatch to provide continuous optimization for OS X users.
It watches the directories:
src/js
src/sass
And invokes the optimize
task when filesystem changes are detected.
Note that only a single live
task may be run at any one time, a lock file is used to prevent multiple live
processes attempting to compile simultaneously and producing spurious output from race conditions during compilation.
The js tasks provide commands for working with project javascript files.
Compiles all javascript files in src
using the build file src/build.js
.
The css tasks provide commands for working with source scss
files.
Compiles all the source scss
files in src/sass
to src/assets/css
.
Utility for creating symbolic links for sassy themes.
If no theme name is specified then the default used is solarized
.
Symbolic links are created in the directory src/sass/${theme}
.
Creates the required directory layout. All operations are non-destructive so running this on an existing directory with the correct structure is a noop.
The scaffold
command performs the following actions:
mkdir -pv
r.js
build.js
file.gitignore
The build task compiles all the javascript files in src/js
(using r.js) and scss files in the src/sass
directory into target/webapp-build
and then copies the optimized versions to server/public/assets
so that they are available to the web application.
Note that if no command is supplied to the optimize task then build
is assumed, the following are equivalent:
./bake optimize
./bake optimize build
The complete list of operations executed by this task is:
scss
to css
(using sass
)r.js
)gzip
)public
directoryRemove the temporary target/webapp-build
directory if it exists.
Compress .js and .css files in the target/webapp-build/assets
directory if it exists.
Copy the js
and css
directories in the target/webapp-build/assets
directory to server/public/assets
provided both directories exist.
www-devel.json
descriptorThe vim (documentation browser) repository provides an example of using the www-devel
tasks.
FAQs
Task extensions for bake(1)
The npm package bake-tasks receives a total of 14 weekly downloads. As such, bake-tasks popularity was classified as not popular.
We found that bake-tasks 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.