Skip to content

Commit 2c66539

Browse files
authored
Fix lint, fix lockfile and update scripts (#952)
* Reformat README * Fix lint on JS files * Simplify yarn scripts * Create CI workflow to check lint * Freeze node version at 16 * Recreate lockfile
1 parent 47ec3b7 commit 2c66539

File tree

10 files changed

+2260
-1854
lines changed

10 files changed

+2260
-1854
lines changed

.github/workflows/ci.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Run CI
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
8+
jobs:
9+
ci:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 16
18+
cache: yarn
19+
- name: Install dependencies
20+
run: yarn install --frozen-lockfile
21+
- name: Lint
22+
run: yarn lint
23+
# TODO: Reenable once no longer broken
24+
# - name: Test
25+
# run: yarn test

README.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
This repository contains processing scripts and sources for the textbook SICP JS: *Structure and Interpretation of Computer Programs, JavaScript Edition* (SICP JS). See [Preface](https://sourceacademy.org/sicpjs/prefaces03) for background.
44

5-
Available versions:
5+
Available versions:
6+
67
* [Print version](https://mitpress.mit.edu/books/structure-and-interpretation-computer-programs-1) and the [ebook version](https://www.amazon.com/Structure-Interpretation-Computer-Programs-Engineering-ebook-dp-B094X8316F/dp/B094X8316F/ref=mt_other?_encoding=UTF8&me=&qid=) are scheduled for publication in 2022
78
* [Interactive SICP JS](https://sourceacademy.org/sicpjs)
89
* [Comparison version](http://sicp.sourceacademy.org) Scheme vs JavaScript
@@ -13,14 +14,17 @@ Check out our [Resources for Learners, Educators and Researchers](https://about.
1314

1415
## Licenses
1516

16-
[![CC BY-SA 4.0][cc-by-nc-sa-image]][cc-by-nc-sa]
17-
The [print version of SICP JS](https://mitpress.mit.edu/books/structure-and-interpretation-computer-programs-1) and the [ebook version](https://www.amazon.com/Structure-Interpretation-Computer-Programs-Engineering-ebook-dp-B094X8316F/dp/B094X8316F/ref=mt_other?_encoding=UTF8&me=&qid=) will be published in 2022 by The MIT Press under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](cc-by-nc-sa) (CC BY-NC-SA).
17+
[![CC BY-SA 4.0][cc-by-nc-sa-image]][cc-by-nc-sa]
18+
19+
The [print version of SICP JS](https://mitpress.mit.edu/books/structure-and-interpretation-computer-programs-1) and the [ebook version](https://www.amazon.com/Structure-Interpretation-Computer-Programs-Engineering-ebook-dp-B094X8316F/dp/B094X8316F/ref=mt_other?_encoding=UTF8&me=&qid=) will be published in 2022 by The MIT Press under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](cc-by-nc-sa) (CC BY-NC-SA).
20+
21+
[![CC BY-SA 4.0][cc-by-sa-image]][cc-by-sa]
1822

19-
[![CC BY-SA 4.0][cc-by-sa-image]][cc-by-sa]
2023
The text of SICP JS is derived from the book *Structure and Interpretation of Computer Programs*, Second Edition, 1996, (SICP) by Harold Abelson and Gerald Jay Sussman, and is licensed by these original authors and by the adapters Martin Henz and Tobias Wrigstad under a [Creative Commons Attribution-ShareAlike 4.0 International License](cc-by-sa) (CC BY-SA). A [comparison edition](http://sicp.sourceacademy.org) indicates the changes that were made to SICP for the JavaScript edition. [Interactive SICP JS](https://sourceacademy.org/sicpjs) is licensed by Martin Henz, Tobias Wrigstad, and Samuel Fang under CC BY-SA. The figures in all versions are derived from figures created by Andres Raba in 2015, and are licensed by Martin Henz and Tobias Wrigstad under CC BY-SA.
2124

2225
[![GPL 3][gpl3-image]][gpl3]
23-
The JavaScript programs in SICP JS are derived from the Scheme programs in SICP and are licensed by Martin Henz and Tobias Wrigstad under the [GNU General Public License v3.0](gpl3).
26+
27+
The JavaScript programs in SICP JS are derived from the Scheme programs in SICP and are licensed by Martin Henz and Tobias Wrigstad under the [GNU General Public License v3.0](gpl3).
2428

2529
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
2630
All JavaScript and TypeScript programs that generate the SICP (JS) versions are licensed by the contributors under the [Apache License Version 2][apache2].
@@ -32,5 +36,3 @@ All JavaScript and TypeScript programs that generate the SICP (JS) versions are
3236
[gpl3]: https://www.gnu.org/licenses/gpl-3.0.en.html
3337
[gpl3-image]: https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/License_icon-gpl.svg/50px-License_icon-gpl.svg.png
3438
[apache2]: https://www.apache.org/licenses/LICENSE-2.0.txt
35-
36-

0 commit comments

Comments
 (0)