Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
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
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.log
thumbs.db
node_modules
*.log
thumbs.db
node_modules
node_modules/
6 changes: 3 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.log
thumbs.db

*.log
thumbs.db
node_modules
258 changes: 129 additions & 129 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,129 +1,129 @@
/* Grunt Task configuration */
module.exports = function(grunt) {

/* using jit-grunt for automatically loading all required plugins */
require('jit-grunt')(grunt);

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

// Compile Sass to CSS and produce SoureMaps;
sass: {
options: {
sourceMap: true,
outputStyle: 'uncompressed'
},
files: {
src: 'scss/main.scss',
dest: 'dist/css/styles.min.css',
ext: '.css'
}
},

// PostCSS for adding prefixers and setting rem to pixels;
postcss: {
dist: {
src: 'dist/css/styles.min.css'

},
options: {
// Rewrite and save sourcemap as seperate file
map: {
annotation: 'styles/'
},
processors: [
// add fallbacks for rem units
require('pixrem')({
atrules: true
}),
// add vendor prefixes
require('autoprefixer')({ browsers: 'iOS >= 7, last 2 versions, ie > 7' }),
// minify the result
require('cssnano')()
]
},
},

watch: {
scss: {
files: ['scss/**/*.scss', 'node_modules/**/*.scss' ],
tasks: ['sass', 'postcss'],
options: {
spawn: false,
},
},
nunjucks: {
files: 'views/**/*.html',
tasks: ['nunjucks'],
options: {
spawn: false,
},
}
},

nunjucks: {
render: {
options: {
paths: ['views'],
trimBlock: true,
lstripBlocks: true,
data: grunt.file.readJSON('templates-data.json')
},
files: [
{
expand: true,
cwd: "views/",
src: "*.html",
dest: "dist/",
ext: ".html"
}
]
}
},
browserSync: {
dev: {
bsFiles: {
src : [
'./dist/**/*.css',
'./dist/**/*.html',
]
},
options: {
watchTask: true,
server: './dist/'
}
}

}


});

grunt.loadNpmTasks('grunt-nunjucks-2-html');

/*
* Grunt tasks
* Run with grunt or grunt <command> in terminal
*/
grunt.registerTask('default', 'run');
grunt.registerTask('run',
[
'nunjucks',
'sass',
'postcss',
'browserSync',
'watch'
]
);
grunt.registerTask('create_css',
[
'sass',
'postcss'
]
);
grunt.registerTask('create_html',
[
'nunjucks'
]
);
};
/* Grunt Task configuration */
module.exports = function(grunt) {
/* using jit-grunt for automatically loading all required plugins */
require('jit-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Compile Sass to CSS and produce SoureMaps;
sass: {
options: {
sourceMap: true,
outputStyle: 'uncompressed'
},
files: {
src: 'scss/main.scss',
dest: 'dist/css/styles.min.css',
ext: '.css'
}
},
// PostCSS for adding prefixers and setting rem to pixels;
postcss: {
dist: {
src: 'dist/css/styles.min.css'
},
options: {
// Rewrite and save sourcemap as seperate file
map: {
annotation: 'styles/'
},
processors: [
// add fallbacks for rem units
require('pixrem')({
atrules: true
}),
// add vendor prefixes
require('autoprefixer')({ browsers: 'iOS >= 7, last 2 versions, ie > 7' }),
// minify the result
require('cssnano')()
]
},
},
watch: {
scss: {
files: ['scss/**/*.scss', 'node_modules/**/*.scss' ],
tasks: ['sass', 'postcss'],
options: {
spawn: false,
},
},
nunjucks: {
files: 'views/**/*.html',
tasks: ['nunjucks'],
options: {
spawn: false,
},
}
},
nunjucks: {
render: {
options: {
paths: ['views'],
trimBlock: true,
lstripBlocks: true,
data: grunt.file.readJSON('templates-data.json')
},
files: [
{
expand: true,
cwd: "views/",
src: "*.html",
dest: "dist/",
ext: ".html"
}
]
}
},
browserSync: {
dev: {
bsFiles: {
src : [
'./dist/**/*.css',
'./dist/**/*.html',
]
},
options: {
watchTask: true,
server: './dist/'
}
}
}
});
grunt.loadNpmTasks('grunt-nunjucks-2-html');
/*
* Grunt tasks
* Run with grunt or grunt <command> in terminal
*/
grunt.registerTask('default', 'run');
grunt.registerTask('run',
[
'nunjucks',
'sass',
'postcss',
'browserSync',
'watch'
]
);
grunt.registerTask('create_css',
[
'sass',
'postcss'
]
);
grunt.registerTask('create_html',
[
'nunjucks'
]
);
};
42 changes: 21 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License

Copyright (c) 2016 De Nieuwe Zaak

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
MIT License
Copyright (c) 2016 De Nieuwe Zaak
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# CastleCSS documentation
![CastleCSS logo @CastleCss.com](https://www.doordarius.nl/castlecss-logo-250.png)

## CastleCSS Framework
Sourcecode for www.castlecss.com and the documentation for [CastleCSS](https://github.com/CastleCSS/castlecss)

## How to install
- Download or clone this package
- Install the project: ```npm install```

## Build and run automatically
- Start the project with: ```npm run start```

This will automatically start a browserSync server.<br />
The project will watch for changes in your scss and html files in your /views and /scss folder and automatically reload

## Build and run manually
- Build the project: ```npm run create_all```

You can now see the project in dist folder, open a .html page in your browser

## Roadmap
We're currently working hard on making the CastleCSS expansions and improvements. CastleCSS is made to serve as lightweight basis for tailor made software but we do want to give you the option to install a few modules to make your life easier.

Please see the [ROADMAP.MD](https://github.com/CastleCSS/castlecss/blob/master/ROADMAP.md) for our current plans for the future.

## Contributing
Want to contribute? We'd love your help, please take a look at the roadmap or submit new suggestions.
# CastleCSS documentation
![CastleCSS logo @CastleCss.com](https://www.doordarius.nl/castlecss-logo-250.png)
## CastleCSS Framework
Sourcecode for www.castlecss.com and the documentation for [CastleCSS](https://github.com/CastleCSS/castlecss)
## How to install
- Download or clone this package
- Install the project: ```npm install```
## Build and run automatically
- Start the project with: ```npm run start```
This will automatically start a browserSync server.<br />
The project will watch for changes in your scss and html files in your /views and /scss folder and automatically reload
## Build and run manually
- Build the project: ```npm run create_all```
You can now see the project in dist folder, open a .html page in your browser
## Roadmap
We're currently working hard on making the CastleCSS expansions and improvements. CastleCSS is made to serve as lightweight basis for tailor made software but we do want to give you the option to install a few modules to make your life easier.
Please see the [ROADMAP.MD](https://github.com/CastleCSS/castlecss/blob/master/ROADMAP.md) for our current plans for the future.
## Contributing
Want to contribute? We'd love your help, please take a look at the roadmap or submit new suggestions.
13 changes: 7 additions & 6 deletions dist/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.html
**/*.html
**/*.css
**/*.map
**/scripts.dist.js
**/scripts.min.js
*.html
**/*.html
**/*.css
**/*.map
**/scripts.dist.js
**/scripts.min.js
linters
Binary file removed dist/fonts/FontAwesome.otf
Binary file not shown.
Binary file removed dist/fonts/fontawesome-webfont.eot
Binary file not shown.
Loading