Permalink
Browse files

SCSS Bootstrap compiler

  • Loading branch information...
dsamarin committed May 21, 2018
1 parent 7e7528f commit b7aced93f31ebdc041867446056c1724e738a6d2
Showing with 333 additions and 14 deletions.
  1. +1 −0 INSTALL.md
  2. +2 −6 package.json
  3. +1 −0 scss/zerodrop.scss
  4. +1 −0 static/.gitignore
  5. +1 −2 templates/header.tmpl
  6. 0 typescript/Zerodrop.ts → ts/zerodrop.ts
  7. +1 −1 webpack.config.js
  8. +326 −5 yarn.lock
@@ -12,6 +12,7 @@ go get github.com/oftn-oswg/zerodrop
cd $GOPATH/src/oftn-oswg/zerodrop
yarn install # or npm install
yarn run css # or npm run css
yarn run dist # or npm run dist
# EDIT config.yml to your liking.
@@ -9,15 +9,10 @@
"private": true,
"devDependencies": {
"@types/jquery": "^3.3.2",
"autoprefixer": "^8.5.0",
"bootstrap": "^4.1.1",
"css-loader": "^0.28.11",
"jquery": "^3.3.1",
"node-sass": "^4.9.0",
"popper.js": "^1.14.3",
"postcss-loader": "^2.1.5",
"sass-loader": "^7.0.1",
"style-loader": "^0.21.0",
"ts-loader": "^4.3.0",
"typescript": "^2.8.3",
"uglifyjs-webpack-plugin": "^1.2.5",
@@ -26,6 +21,7 @@
},
"scripts": {
"build": "webpack --mode development",
"dist": "webpack --mode production"
"dist": "webpack --mode production",
"css": "node-sass --output-style compressed ./scss/zerodrop.scss ./static/zerodrop.css"
}
}
@@ -0,0 +1 @@
@import "node_modules/bootstrap/scss/bootstrap";
@@ -1,3 +1,4 @@
# These files are generated with webpack
/zerodrop.js
/zerodrop.js.map
/zerodrop.css
@@ -6,8 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{$.Title}}</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4"
crossorigin="anonymous" />
<link rel="stylesheet" href="{{$.Config.Base}}admin/static/zerodrop.css" type="text/css" />
</head>
<body>
File renamed without changes.
@@ -3,7 +3,7 @@ const webpack = require('webpack');
const uglify = require('uglifyjs-webpack-plugin');
module.exports = {
entry: path.join(__dirname, 'typescript/Zerodrop.ts'),
entry: path.join(__dirname, 'ts/zerodrop.ts'),
output: {
filename: 'zerodrop.js',
path: path.join(__dirname, 'static')
Oops, something went wrong.

0 comments on commit b7aced9

Please sign in to comment.