Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8994151

Browse files
committed
Update build and release tasks to include the Ruby gem
1 parent 5178225 commit 8994151

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

action_text-trix/Rakefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
require "bundler/setup"
21
require "bundler/gem_tasks"
3-
42
require "rake/clean"
53

64
task :sync do

action_text-trix/app/assets/javascripts/trix.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,16 @@ Copyright © 2025 37signals, LLC
6868
"build-css": "bin/sass-build assets/trix.scss dist/trix.css",
6969
"build-js": "rollup -c",
7070
"build-assets": "cp -f assets/*.html dist/",
71-
build: "yarn run build-js && yarn run build-css && yarn run build-assets",
71+
"build-ruby": "rake -C action_text-trix sync",
72+
build: "yarn run build-js && yarn run build-css && yarn run build-assets && yarn run build-ruby",
7273
watch: "rollup -c -w",
7374
lint: "eslint .",
7475
pretest: "yarn run lint && yarn run build",
7576
test: "karma start",
7677
prerelease: "yarn version && yarn test",
77-
release: "npm adduser && npm publish",
78+
"release-npm": "npm adduser && npm publish",
79+
"release-ruby": "rake -C action_text-trix publish",
80+
release: "yarn run release-npm && yarn run release-ruby",
7881
postrelease: "git push && git push --tags",
7982
dev: "web-dev-server --app-index index.html --root-dir dist --node-resolve --open",
8083
start: "yarn build-assets && concurrently --kill-others --names js,css,dev-server 'yarn watch' 'yarn build-css --watch' 'yarn dev'"

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,16 @@
5959
"build-css": "bin/sass-build assets/trix.scss dist/trix.css",
6060
"build-js": "rollup -c",
6161
"build-assets": "cp -f assets/*.html dist/",
62-
"build": "yarn run build-js && yarn run build-css && yarn run build-assets",
62+
"build-ruby": "rake -C action_text-trix sync",
63+
"build": "yarn run build-js && yarn run build-css && yarn run build-assets && yarn run build-ruby",
6364
"watch": "rollup -c -w",
6465
"lint": "eslint .",
6566
"pretest": "yarn run lint && yarn run build",
6667
"test": "karma start",
6768
"prerelease": "yarn version && yarn test",
68-
"release": "npm adduser && npm publish",
69+
"release-npm": "npm adduser && npm publish",
70+
"release-ruby": "rake -C action_text-trix publish",
71+
"release": "yarn run release-npm && yarn run release-ruby",
6972
"postrelease": "git push && git push --tags",
7073
"dev": "web-dev-server --app-index index.html --root-dir dist --node-resolve --open",
7174
"start": "yarn build-assets && concurrently --kill-others --names js,css,dev-server 'yarn watch' 'yarn build-css --watch' 'yarn dev'"

0 commit comments

Comments
 (0)