Comparing version 0.0.15 to 0.1.0
#!/usr/bin/env node | ||
require('../index') | ||
// CLI usage | ||
require('../dist/config').CommandLineMode = true | ||
require('../dist/mainCli')() |
11
index.js
@@ -1,1 +0,10 @@ | ||
require('./src/main')() | ||
/* eslint-disable */ | ||
// Module usage | ||
// const config = require('./dist/config') | ||
// require('./dist/src/logo').printLogo(100) | ||
module.exports = { | ||
generate: async (configuration) => require('./dist/src/mainLib')(configuration), | ||
} |
{ | ||
"name": "symply", | ||
"version": "0.0.15", | ||
"version": "0.1.0", | ||
"description": "A dead-simple Bootstrap static site generator.", | ||
@@ -21,8 +21,10 @@ "author": "Oleg Legun <oleg.legun@gmail.com>", | ||
"scripts": { | ||
"compile": "npm run dist:clear && npx tsc", | ||
"watch": "npm run dist:clear && npx tsc -w", | ||
"dist:clear": "rm -rf dist", | ||
"start": "node index.js", | ||
"test": "tape test/**/*.js | tap-spec" | ||
"lint": "npx eslint . --ext .js,.jsx,.ts,.tsx", | ||
"test": "npm run compile && tape test/**/*.js | tap-spec" | ||
}, | ||
"dependencies": { | ||
"@babel/core": "7.8.3", | ||
"@babel/preset-react": "7.8.3", | ||
"better-opn": "1.0.0", | ||
@@ -32,7 +34,12 @@ "chalk": "3.0.0", | ||
"handlebars": "4.7.2", | ||
"html-minifier": "^4.0.0", | ||
"js-yaml": "3.13.1", | ||
"prettier": "1.19.1", | ||
"lodash": "^4.17.19", | ||
"node-sass": "^4.14.1", | ||
"prettier": "^2.0.5", | ||
"progress": "2.0.3", | ||
"react": "^16.12.0", | ||
"react-dom": "^16.12.0", | ||
"sass": "^1.26.10", | ||
"strip-ansi": "^6.0.0", | ||
"update-notifier": "4.0.0", | ||
@@ -42,2 +49,20 @@ "yargs": "15.1.0" | ||
"devDependencies": { | ||
"@babel/core": "7.8.3", | ||
"@babel/preset-react": "7.8.3", | ||
"@types/babel__core": "^7.1.9", | ||
"@types/html-minifier": "^4.0.0", | ||
"@types/node-sass": "^4.11.1", | ||
"@babel/types": "^7.10.5", | ||
"@types/babel-core": "^6.25.6", | ||
"@types/fs-extra": "^9.0.1", | ||
"@types/js-yaml": "^3.12.5", | ||
"@types/lodash": "^4.14.158", | ||
"@types/node": "^14.0.27", | ||
"@types/prettier": "^2.0.2", | ||
"@types/progress": "^2.0.3", | ||
"@types/react": "^16.9.43", | ||
"@types/react-dom": "^16.9.8", | ||
"@types/update-notifier": "^4.1.0", | ||
"@typescript-eslint/eslint-plugin": "^3.8.0", | ||
"@typescript-eslint/parser": "^3.8.0", | ||
"eslint": "^6.8.0", | ||
@@ -47,4 +72,6 @@ "eslint-config-google": "^0.14.0", | ||
"tap-spec": "^5.0.0", | ||
"tape": "^4.13.0" | ||
} | ||
"tape": "^4.13.0", | ||
"typescript": "^3.9.7" | ||
}, | ||
"types": "./index.d.ts" | ||
} |
![Logo](./assets/logo.png) | ||
A dead-simple **Bootstrap static site generator** with great flexibility and control. | ||
A dead-simple **static site generator** with great flexibility and control. | ||
Main advantages: | ||
- Minimum magic - maximum transparency | ||
- Total control of the generation process | ||
- JSX support for generator functions | ||
- JSX support for generation helper functions | ||
- SASS/SCSS styles compilation support | ||
- Built-in web server with watch mode for instant development preview on every file change | ||
@@ -28,2 +31,12 @@ **Symply** is based on well-known fast and reliable [Handlebars.js](https://github.com/wycats/handlebars.js) templating engine. | ||
Coming soon... | ||
## Basic Commands | ||
### Partial interpolation | ||
Insert content of a `partial` file by its name. | ||
> Use partial name without its `.html` extension, e.g. `myPartial.html` -> `{{> myPartial }}`. | ||
```handlebars | ||
{{> myPartial }} | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
182102
42
1431
41
0
1
16
24
+ Addedhtml-minifier@^4.0.0
+ Addedlodash@^4.17.19
+ Addednode-sass@^4.14.1
+ Addedsass@^1.26.10
+ Addedstrip-ansi@^6.0.0
+ Added@parcel/watcher@2.5.0(transitive)
+ Added@parcel/watcher-android-arm64@2.5.0(transitive)
+ Added@parcel/watcher-darwin-arm64@2.5.0(transitive)
+ Added@parcel/watcher-darwin-x64@2.5.0(transitive)
+ Added@parcel/watcher-freebsd-x64@2.5.0(transitive)
+ Added@parcel/watcher-linux-arm-glibc@2.5.0(transitive)
+ Added@parcel/watcher-linux-arm-musl@2.5.0(transitive)
+ Added@parcel/watcher-linux-arm64-glibc@2.5.0(transitive)
+ Added@parcel/watcher-linux-arm64-musl@2.5.0(transitive)
+ Added@parcel/watcher-linux-x64-glibc@2.5.0(transitive)
+ Added@parcel/watcher-linux-x64-musl@2.5.0(transitive)
+ Added@parcel/watcher-win32-arm64@2.5.0(transitive)
+ Added@parcel/watcher-win32-ia32@2.5.0(transitive)
+ Added@parcel/watcher-win32-x64@2.5.0(transitive)
+ Addedabbrev@1.1.1(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedansi-regex@2.1.14.1.1(transitive)
+ Addedansi-styles@2.2.13.2.1(transitive)
+ Addedaproba@1.2.0(transitive)
+ Addedare-we-there-yet@1.1.7(transitive)
+ Addedarray-find-index@1.0.2(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasync-foreach@0.1.3(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedblock-stream@0.0.9(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedcamel-case@3.0.0(transitive)
+ Addedcamelcase@2.1.1(transitive)
+ Addedcamelcase-keys@2.1.0(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedchokidar@4.0.1(transitive)
+ Addedclean-css@4.2.4(transitive)
+ Addedcliui@5.0.0(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconsole-control-strings@1.1.0(transitive)
+ Addedcore-util-is@1.0.21.0.3(transitive)
+ Addedcross-spawn@3.0.1(transitive)
+ Addedcurrently-unhandled@0.4.1(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addeddelegates@1.0.0(transitive)
+ Addeddetect-libc@1.0.3(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedemoji-regex@7.0.3(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedfind-up@1.1.23.0.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfstream@1.0.12(transitive)
+ Addedgauge@2.7.4(transitive)
+ Addedgaze@1.1.3(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedglob@7.1.77.2.3(transitive)
+ Addedglobule@1.3.4(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-unicode@2.0.1(transitive)
+ Addedhe@1.2.0(transitive)
+ Addedhosted-git-info@2.8.9(transitive)
+ Addedhtml-minifier@4.0.0(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedimmutable@5.0.3(transitive)
+ Addedin-publish@2.0.1(transitive)
+ Addedindent-string@2.1.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-finite@1.1.0(transitive)
+ Addedis-fullwidth-code-point@1.0.02.0.0(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedis-utf8@0.2.1(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjs-base64@2.6.4(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedload-json-file@1.1.0(transitive)
+ Addedlocate-path@3.0.0(transitive)
+ Addedloud-rejection@1.6.0(transitive)
+ Addedlower-case@1.1.4(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedmap-obj@1.0.1(transitive)
+ Addedmeow@3.7.0(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimatch@3.0.83.1.2(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addednan@2.22.0(transitive)
+ Addedno-case@2.3.2(transitive)
+ Addednode-addon-api@7.1.1(transitive)
+ Addednode-gyp@3.8.0(transitive)
+ Addednode-sass@4.14.1(transitive)
+ Addednopt@3.0.6(transitive)
+ Addednormalize-package-data@2.5.0(transitive)
+ Addednpmlog@4.1.2(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)
+ Addedp-locate@3.0.0(transitive)
+ Addedparam-case@2.1.1(transitive)
+ Addedparse-json@2.2.0(transitive)
+ Addedpath-exists@2.1.03.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-type@1.1.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedprettier@2.8.8(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedpsl@1.13.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedread-pkg@1.1.0(transitive)
+ Addedread-pkg-up@1.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedreaddirp@4.0.2(transitive)
+ Addedredent@1.0.0(transitive)
+ Addedrelateurl@0.2.7(transitive)
+ Addedrepeating@2.0.1(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsass@1.81.0(transitive)
+ Addedsass-graph@2.2.5(transitive)
+ Addedscss-tokenizer@0.2.3(transitive)
+ Addedsemver@5.3.0(transitive)
+ Addedsource-map@0.4.4(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addedspdx-correct@3.2.0(transitive)
+ Addedspdx-exceptions@2.5.0(transitive)
+ Addedspdx-expression-parse@3.0.1(transitive)
+ Addedspdx-license-ids@3.0.20(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedstdout-stream@1.4.1(transitive)
+ Addedstring-width@1.0.23.1.0(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@3.0.15.2.0(transitive)
+ Addedstrip-bom@2.0.0(transitive)
+ Addedstrip-indent@1.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedtar@2.2.2(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtrim-newlines@1.0.0(transitive)
+ Addedtrue-case-path@1.0.3(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedupper-case@1.1.3(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedvalidate-npm-package-license@3.0.4(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedwide-align@1.1.5(transitive)
+ Addedwrap-ansi@5.1.0(transitive)
+ Addedyallist@2.1.2(transitive)
+ Addedyargs@13.3.2(transitive)
+ Addedyargs-parser@13.1.2(transitive)
- Removed@babel/core@7.8.3
- Removed@babel/preset-react@7.8.3
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/core@7.8.3(transitive)
- Removed@babel/generator@7.26.2(transitive)
- Removed@babel/helper-annotate-as-pure@7.25.9(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-plugin-utils@7.25.9(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/helpers@7.26.0(transitive)
- Removed@babel/parser@7.26.2(transitive)
- Removed@babel/plugin-syntax-jsx@7.25.9(transitive)
- Removed@babel/plugin-transform-react-display-name@7.25.9(transitive)
- Removed@babel/plugin-transform-react-jsx@7.25.9(transitive)
- Removed@babel/plugin-transform-react-jsx-self@7.25.9(transitive)
- Removed@babel/plugin-transform-react-jsx-source@7.25.9(transitive)
- Removed@babel/preset-react@7.8.3(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.25.9(transitive)
- Removed@babel/types@7.26.0(transitive)
- Removed@jridgewell/gen-mapping@0.3.5(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removeddebug@4.3.7(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedglobals@11.12.0(transitive)
- Removedjsesc@3.0.2(transitive)
- Removedjson5@2.2.3(transitive)
- Removedms@2.1.3(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedprettier@1.19.1(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsource-map@0.5.7(transitive)
Updatedprettier@^2.0.5