0.7.4 • Published 2 years ago

code-formation v0.7.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

npm publish --access public // "publish": "npm publish --access public"

  • slots for in-source code gen => example 2: C# class to list constraints
  • use basic snippets to mirror example 1's README to main README file with variable for links (RELATIVE_FILE_PATH)
  • -- %&: @=: ADD_tests="" OBJADD_tests="[]" CAPTURE_constraints = "(.+)" => _constraints=[ ["dbo...."] ]
  • LINE_SELECT="\s//(.)"
  • USING="plugins/xmldoc" ARGS="--target md"

/ .... :constraint_constants <%= _constraints.join(",\r\n") %> / // &<:constraint_constants // &>

You can even use EJS template to generate CFL which can produces EJS, and that opens a higher level of meta, which probably will be :)

Make migration scripts for arbitrary script files according to marker lines

Name ideas:

  • code-formation
  • cftk
  • cft.js

;;; (defvar x 5) ;;; (begin a) ;;; (end a) ;;; (snippet begin a) ;;; (snippet end a)

;;; (template begin )

  • configurable prefix $$$ %%%
  • include chalk, pretty print
  • scan variables: |: _x=5 ||: _x=5
  • scan snippets: $< or $@<

    $> or $@>

  • inject snippet: $!:abc

  • scan plugs: %< or %@<

    %> or %@>

  • scan slots: &< or &@<

    &> or &@>

  • export evaluation includes EJS template render
  • capture evaluation
  • snippet evaluation at the end
  • command line arguments
  • variable syntax: {CURRENT_FILE} "${CURRENT_FILE}"
  • inline syntax that allows regex search/replace: --
-- $<:delete_object_if_exists type="default_type" a=_abc b="[abc]" prefix="    "

delete <%= type %> <%= name %>

-- $>
0.7.4

2 years ago

0.7.3

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.6.2

2 years ago

0.7.0

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.4.2

2 years ago

0.3.0

3 years ago

0.1.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago