Skip to content

Commit

Permalink
Simpler node build
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusps committed May 23, 2020
1 parent cd7398f commit d6e4d69
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 39 deletions.
19 changes: 19 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const fs = require('fs')

const files = [
'./src/root.css',
'./src/general.css',
'./src/typo.css',
'./src/form.css',
'./src/media.css',
'./src/misc.css',
]

process.stdout.write("🔥Putting files together \n")

const reducer = (acc, file) =>
`${acc}\n\n${fs.readFileSync(file, { encoding: "utf8" })}`

fs.writeFileSync('./raw.css', files.reduce(reducer, '/** Raw.css by @matheusps */') )

process.stdout.write("📦 Created raw.css \n")
15 changes: 0 additions & 15 deletions build.ts

This file was deleted.

23 changes: 0 additions & 23 deletions denon.json

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"author": "matheusps <cout.matheusps@gmail.com>",
"license": "MIT",
"scripts": {
"release": "np"
"release": "np",
"build": "node build.js"
},
"devDependencies": {
"np": "^6.2.3"
Expand Down

0 comments on commit d6e4d69

Please sign in to comment.