Skip to content

Commit 69440e7

Browse files
Merge pull request #1207 from projectblacklight/publish-to-npm
Update package.json so we can publish sass source files to NPM
2 parents 588a7c0 + 1d05882 commit 69440e7

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,20 @@ Then visit http://localhost:3000. It will also start a Solr instance on port 898
107107

108108
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
109109

110-
### Release a new version of the gem
110+
### Releasing
111111

112-
To release a new version:
112+
#### To release a new gem:
113113

114114
1. Update the version number in `lib/arclight/version.rb`
115115
2. Run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, build the gem file (e.g., `gem build arclight.gemspec`) and push the `.gem` file to [rubygems.org](https://rubygems.org) (e.g., `gem push arclight-x.y.z.gem`).
116116

117+
#### To release the frontend sources:
118+
119+
When any of the javascript components or SASS sources in the gem are changed, this package should be published to NPM with the following steps:
120+
1. [Install npm](https://www.npmjs.com/get-npm)
121+
2. Bump the version number in `package.json`
122+
3. run `npm publish` to push the javascript package to https://npmjs.org/package/arclight
123+
117124
## Contributing
118125

119126
[Bug reports](https://github.com/projectblacklight/arclight/issues) and [pull requests](https://github.com/projectblacklight/arclight/pulls) are welcome on ArcLight -- see [CONTRIBUTING.md](https://github.com/projectblacklight/arclight/blob/main/CONTRIBUTING.md) for details.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"name": "arclight",
3-
"description": "",
4-
"main": "index.js",
3+
"version": "1.0.0-pre.1",
4+
"description": "The frontend for arclight",
5+
"main": "app/assets/javascript/arclight/arclight.js",
6+
"files": [
7+
"app/assets"
8+
],
59
"devDependencies": {
610
"eslint": "^7.32.0",
711
"eslint-config-airbnb-base": "^11.1.3",

0 commit comments

Comments
 (0)