Skip to content

Commit

Permalink
copying script.js -- no need to remove exports since now ES6 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
eebbesen authored Oct 8, 2024
1 parent 9989c07 commit 9616450
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "Unless you're eating one right now, you probably need a gyro",
"main": "app.js",
"scripts": {
"build": "node script/remove_module_exports.js",
"build": "node script/copy_js_to_public_js.js",
"heroku-postbuild": "echo Skip build on Heroku",
"start": "node app.js",
"test": "npm run build && mocha ./test/**/* --exit"
Expand Down
8 changes: 8 additions & 0 deletions script/copy_js_to_public_js.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import fs from 'fs'

// for testing purposes we keep script.js in the src directory
// but for production we want it in the public/js directory

fs.copyFileSync('src/script.js', 'public/js/script.js')


16 changes: 0 additions & 16 deletions script/remove_module_exports.js

This file was deleted.

0 comments on commit 9616450

Please sign in to comment.