Skip to content

Commit

Permalink
NPM building
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoneDroid committed Feb 26, 2024
1 parent d4b2f46 commit fd2f956
Show file tree
Hide file tree
Showing 28 changed files with 5,118 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .config/Tasks/NPM.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

import { emptyDir , build } from 'https://deno.land/x/dnt/mod.ts'


await emptyDir(`./npm`)


await build({

entryPoints : [ `./Source/mod.ts` ] ,
outDir : `./npm` ,

shims : {
deno : true
},

package : {

description : `Font made of ASCII characters` ,
version : Deno.args[0] ,
license : 'AGPLv3' ,
name : '@pordeno/ascii-font' ,

repository : {
type : 'git' ,
url : `git+https://github.com/Pordeno/Ascii-Font.git`
},

bugs : {
url : `https://github.com/Pordeno/Ascii-Font/issues`
}
},

postBuild (){
Deno.copyFileSync(`LICENSE`,`npm/LICENSE`)
Deno.copyFileSync(`README.md`,`npm/README.md`)
}
})
33 changes: 33 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

################################################################################
# #
# Editorconfig #
# #
# This file defines basic file properties that #
# editors / IDEs use when you edit documents. #
# #
# Check https://EditorConfig.org for details. #
# #
################################################################################


root = true


[*]

end_of_line = lf


[*.{editorconfig,liquid,map,json,yml,css,tsx,js,ts,md}]

trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8


[*.md]

trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

node_modules
5 changes: 4 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"version" : "1.0.1" ,

"tasks" : {
"npm:publish" : "deno run -A .config/Tasks/NPM.ts $1 && cd npm && npm publish" ,
"dev" : "deno run Source/App.ts"
}
}
}
82 changes: 82 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions npm/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
src/
test_runner.js
yarn.lock
pnpm-lock.yaml
Loading

0 comments on commit fd2f956

Please sign in to comment.