Skip to content

Commit cc979e0

Browse files
committed
Rename .mjs -> .js to make it ESM and not have build output in git
Although we'll now end up with only `mustache.js` in the git repo, being written in ESM syntax, the npm package will still be as before: - `mustache.js`: UMD, meaning CommonJS, AMD or global scope - `mustache.mjs`: ESM
1 parent 9faa18e commit cc979e0

7 files changed

Lines changed: 700 additions & 1487 deletions

File tree

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"overrides": [
2121
{
22-
"files": ["mustache.mjs"],
22+
"files": ["mustache.js"],
2323
"parserOptions": {
2424
"sourceType": "module",
2525
"ecmaVersion": 2015

.github/workflows/verify.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,3 @@ jobs:
5454
run: |
5555
npm install mocha@3 chai@3
5656
npm run test-unit
57-
58-
build-output-sync:
59-
runs-on: ubuntu-latest
60-
61-
steps:
62-
- uses: actions/checkout@v1
63-
- name: Setup Node.js
64-
uses: actions/setup-node@v1
65-
with:
66-
node-version: 12.x
67-
- name: Install, build and check git diff
68-
run: |
69-
npm ci
70-
npm run build
71-
git diff --quiet HEAD --

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ npm-debug.log
99
.DS_Store
1010
test/render-test-browser.js
1111
.idea/
12+
mustache.mjs

hooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ class Bumper
7878
end
7979

8080
bumper = Bumper.new([
81-
Source.new('mustache.mjs', /version: '([^']+)'/),
81+
Source.new('mustache.js', /version: '([^']+)'/),
8282
])
8383
bumper.start

0 commit comments

Comments
 (0)