Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cici

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cici - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

lib/builder/page.tpl.js

@@ -6,4 +6,4 @@ "use strict";

});
var tpl = "\n<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width,user-scalable=no\">\n <meta name=\"renderer\" content=\"webkit\">\n <meta name=\"theme-color\" content=\"#ffffff\">\n <link href=\"/css/build.HomePage.css\" rel=\"stylesheet\">\n <link href=\"/css/build.PostPage.css\" rel=\"stylesheet\">\n <title> <%= title %></title>\n <script>\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n\n ga('create', '<%= ga %>', 'auto');\n ga('send', 'pageview');\n </script>\n</head>\n<body>\n <%- pageBody %>\n <footer class=\"footer\">\n Copyright \xA9<%= copyRightYear %> <a href=\"http://<%= %>\"> <%= domain %></a> | Powered by <a href=\"https://github.com/metrue/Cici\">Cici</a> on top of <a href=\"https://vuejs.org\" target=\"_blank\">Vue.js</a>\n </footer>\n<body>\n</html>\n";
var tpl = "\n<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width,user-scalable=no\">\n <meta name=\"renderer\" content=\"webkit\">\n <meta name=\"theme-color\" content=\"#ffffff\">\n <link href=\"/css/build.HomePage.css\" rel=\"stylesheet\">\n <link href=\"/css/build.PostPage.css\" rel=\"stylesheet\">\n <title> <%= title %></title>\n <script>\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n\n ga('create', '<%= ga %>', 'auto');\n ga('send', 'pageview');\n </script>\n</head>\n<body>\n <%- pageBody %>\n <div id=\"YoYo\"></div>\n <script src=\"https://cdn.rawgit.com/metrue/Yo/master/dist/index.js\"></script>\n <footer class=\"footer\">\n Copyright \xA9<%= copyRightYear %> <a href=\"http://<%= %>\"> <%= domain %></a> | Powered by <a href=\"https://github.com/metrue/Cici\">Cici</a> on top of <a href=\"https://vuejs.org\" target=\"_blank\">Vue.js</a>\n </footer>\n<body>\n</html>\n";
exports.default = tpl;
{
"name": "cici",
"version": "0.0.8",
"description": "Yet another static website generator built on top of Vue 2 and Webpack",
"version": "0.0.9",
"description": "Yet another static website generator built on top of Vue 2 and Webpack, with a nice comment system",
"bin": "./bin/cici.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -6,40 +6,28 @@ <img src="https://raw.githubusercontent.com/metrue/Seal/master/screenshots/home.png" alt="home" style="width: 300px;"/>

Yet another static website generator built on top of Vue 2 and Webpack
Yet another static website generator built on top of Vue 2 and Webpack, with a nice comment system
### Usage
* update the config.json with your personal information
* start write something in markdown
* then build your site
```
npm run build # to generate your site in your defined directory
npm run serve # to watch your site live
```
$ cici -h
and you can also build and run it with docker like this.
Usage: cici [options]
Options:
-h, --help output usage information
-V, --version output the version number
-i, --inputDir <path> Your posts directory, "./posts" by default
-o, --ouputDir <path> Specify the output directory, "./public" by default
-t, --title <website name> Your website name
```
docker build -f devops/dockerfile.nginx -t seal .
docker run -d -p 80:80 seal
```
then you can check your site at http://localhost now, normally I would like to deploy it to VPS use a small script.
it's easy, right?
```
## deploy.sh
ssh <$user>@<$host> <<END
docker rmi \$(docker images --filter "dangling=true" -q --no-trunc)
rm -rf /tmp/
git clone git@github.com:metrue/Sira.git /tmp/seal
git clone https://github.com/metrue/Seal /tmp/seal
cd /tmp/seal
docker build -f devops/dockerfile.nginx -t seal .
docker run -d -p 80:80 seal
END
npm install -g cici # install cici
cici -i posts -o public -t minghe -g 'UA-527xxx-x' -d minghe.me" # build your markdown posts to a static website
cici -h # show help
```
then put it into npm script, hit <code> npm run deploy </code> to do the deployment. That's it, have fun.
## Showcase

@@ -46,0 +34,0 @@

@@ -24,2 +24,4 @@ const tpl = `

<%- pageBody %>
<div id="YoYo"></div>
<script src="https://cdn.rawgit.com/metrue/Yo/master/dist/index.js"></script>
<footer class="footer">

@@ -26,0 +28,0 @@ Copyright ©<%= copyRightYear %> <a href="http://<%= %>"> <%= domain %></a> | Powered by <a href="https://github.com/metrue/Cici">Cici</a> on top of <a href="https://vuejs.org" target="_blank">Vue.js</a>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc