Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Non-breaking] Bundling models into the package itself. #811

Merged
merged 17 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,20 @@
"maintenance",
"code"
]
},
{
"login": "haZya",
"name": "Hasitha Wickramasinghe",
"avatar_url": "https://avatars.github.com/u/63403456?v=4",
"profile": "https://hazya.dev",
"contributions": [
"code",
"doc",
"example",
"ideas",
"infra",
"test"
]
}
haZya marked this conversation as resolved.
Show resolved Hide resolved
],
"contributorsPerLine": 7,
Expand Down
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# top-most EditorConfig file
root = true

# all files
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
max_line_length = 80
quote_type = double

[*.{js,ts}]
quote_type = double
curly_bracket_next_line = false
spaces_around_brackets = inside
indent_brace_style = BSD KNF
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ examples/manual-testing/data/*
!examples/manual-testing/data/animations/
!examples/manual-testing/data/images/
!examples/manual-testing/data/videos/

/models/**/*.js
/models/**/*.min.js
22 changes: 19 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,27 @@ _art/
yarn-error.log
bundle.js
.DS_Store
.all-contributorsrc
.editorconfig
.gitignore
bundle-model.mjs
jest.config.js
tsconfig.cjs.json
tsconfig.esm.json
tsconfig.json
.circleci/
.github/
__tests__/

# Models
models/

# Ignore intermediate browserify files
# Mountpoint
dist/nsfwjs.d.ts
dist/nsfwjs.js
dist/cjs/nsfwjs.d.ts
dist/cjs/nsfwjs.js
dist/esm/nsfwjs.d.ts
dist/esm/nsfwjs.js
# Unminified bundle
dist/bundle.js
dist/browser/bundle.js

Loading