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

Feature/migrate to es6 #12

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
c34a49b
add editorconfig to keep js file format
Nov 14, 2020
359efb6
refactor common utils into separated files
Nov 14, 2020
ae2a5b1
refactor: create mixed depper class for both asyn and sync
Nov 14, 2020
ed9cf92
fix inline cwd use internal instead of process.cwd
Nov 14, 2020
47c49f4
refactor migrate inlineSource and inlineName to mixed depper class
Nov 14, 2020
8b5f7a9
refactor migrate inline logic to mixed depper class
Nov 14, 2020
eff149a
refactor migrate transform logic to mixed depper class
Nov 14, 2020
e082a4d
refactor migrate resolveTransform logic to mixed depper class
Nov 14, 2020
1bd31d6
refactor migrate applyTransforms logic to mixed depper class
Nov 14, 2020
877676c
refactor migrate readFile logic to mixed depper class
Nov 14, 2020
707f3ad
refactor migrate getTransformsForFile logic to mixed depper class
Nov 14, 2020
27dc370
remove unused variable
Nov 14, 2020
d39fdc1
prevent variable shadowing in resolveImports
Nov 14, 2020
6e4464d
refactor migrate logic getImportName from resolveImports
Nov 14, 2020
56ed0d7
remove unused requires
Nov 14, 2020
bfadac0
refactor migrate extractPreprocessors from add method
Nov 14, 2020
d71c4ba
split add logic migrating _resolveImports into internal method
Nov 14, 2020
77963ae
remove useless self reference add method
Nov 14, 2020
cd1256c
create internal method _addDep
Nov 14, 2020
cff17c0
remove unused require tokenize
Nov 14, 2020
acafa51
update depper interface docs
Nov 14, 2020
856838b
allow transformResolve option with sync/async behaviour
Nov 15, 2020
75cbf80
update glslifyDeps option docs
Nov 15, 2020
717cf17
docs update jsdoc api documentation
Nov 16, 2020
29fe276
refactor create intermediate class for node enviroment
Nov 16, 2020
db5bc11
interface _addDep method
Nov 16, 2020
78a251c
rename transform-resolve to transform-require according to its logic
Nov 16, 2020
9f94ed8
mix async/sync readFile option
Nov 16, 2020
6ecfe75
fix missing flow check in selectTransform
Nov 16, 2020
76967d0
add async and sync members to mixed functions
Nov 16, 2020
54bfe26
refactor __addDep allow extra options
Nov 16, 2020
208d6ee
migrate glslResolve to NodeDepper
Nov 16, 2020
00e0641
migrate readFile to NodeDepper
Nov 16, 2020
79d2c89
migrate transformRequire to NodeDepper
Nov 16, 2020
f43322a
depper sort option assignment
Nov 16, 2020
1d925ea
add asyncify function to handle async and sync flows
Nov 17, 2020
49ea8ad
migrate getTransformsForFile to NodeDepper
Nov 17, 2020
35fb74f
refactor migrate NodeDepper.add to Depper.add
Nov 17, 2020
5b67503
refactor migrate this._cwd logic to NodeDepper
Nov 17, 2020
26ea356
simplify module exports
Nov 17, 2020
5c9bbe3
change sources syntax to es6
Nov 17, 2020
d6c91dd
change test syntax to es6
Nov 17, 2020
572c3e0
change depper and utils syntax to es6
Nov 17, 2020
bc599cc
apply lint standard javascript
Nov 17, 2020
f245782
apply lint javascript standard for unresolved warnings
Nov 17, 2020
93dc2ca
update modules and set babel build script
Nov 17, 2020
fa2ab43
use spread array vars for asyncify
Nov 17, 2020
fe12dcf
migrate file cache to NodeDepper
Nov 18, 2020
d27201c
fix glslify tricky way to call applyTransforms
Nov 18, 2020
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
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# EditorConfig is awesome: https://editorconfig.org/

# top-most EditorConfig file
root = true

[*.md]
trim_trailing_whitespace = false

[*.js]
trim_trailing_whitespace = true

# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
max_line_length = 100
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
coverage
lib
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Creates a fresh `glslify-deps` instance. Accepts the following options:
* `readFile`: pass in a custom function reading files.
* `resolve`: pass in a custom function for resolving require calls. It has
the same signature as [glsl-resolve](http://github.com/hughsk/glsl-resolve).
* `transformResolve`: pass in a custom function for resolving non function transforms.
* `files`: a filename/source object mapping of files to prepopulate
the file cache with. Useful for overriding particular file paths manually,
most notably the "entry" file.
Expand Down
Loading