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.
generator-craftsman
Advanced tools
A Yeoman generator for scaffolding a Craft website with Gulp, Bower, Sass, Babel, inuit.css, and more.
npm install -g generator-craftsman
npm i -g yo bower gulp
mkdir my-craft-project
cd my-craft-project
yo craftsman
and follow the promptsgulp build
to build to /public
gulp watch
to watch for changes and live-reload via BrowserSyncHint: Use the --env
flag to specify an environment listend in env.json
, e.g., gulp deploy --env production
.
gulp deploy-init
to initalise a deployment environmentgulp deploy
after committing changes to deploy themgulp db-push
and gulp db-pull
to copy databases to and from an environmentgulp deploy-init
Initialize a Dokku container for use in the project's deployment.
You should follow this command with gulp db-push.
gulp deploy
Pushes the repository to the Dokku remote.
gulp db-push
Dumps the local database to /.tmp
, and imports it to the linked Dokku MariaDB container.
gulp db-pull
Dumps the remote Dokku MariaDB database to /.tmp
, and imports it to the local environment.
gulp db-backup
Dumps the local and remote databases, and saves them to /databases
.
gulp watch
Watches the project for changes in images, styles, javascript, HTML, etc. and performs appropriate actions.
gulp build
Build the project for deployment. Performs all tasks including minification and image optimization.
bower install
Install project-specific Bower packages defined in bower.json. You should run this command when cloning an already initialized repository.
npm install
Install project-specific npm packages defined in the package.json. You should run this command when cloning an already initialized repository.
gulp deploy-init
will fail, since a Dokku remote has already been created. Running git remote remove dokku
will resolve this.gulp deploy
will sometimes fail if a newer commit has been deployed but not pushed to the repository. You can override this by running git push origin dokku --force
.FAQs
Scaffold out a Craft website
The npm package generator-craftsman receives a total of 9 weekly downloads. As such, generator-craftsman popularity was classified as not popular.
We found that generator-craftsman 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.