Skip to content

Commit

Permalink
Merge branch 'master-local' into master-dist
Browse files Browse the repository at this point in the history
  • Loading branch information
patternfly-build committed Mar 4, 2019
2 parents 53e8a30 + b036647 commit 051156d
Show file tree
Hide file tree
Showing 71 changed files with 7,986 additions and 5,338 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
lib
.tmp
coverage
docs
dist
Expand Down
25 changes: 14 additions & 11 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = function (grunt) {
'use strict';

var nodeSass = require('node-sass');
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

function init () {
Expand All @@ -19,13 +20,13 @@ module.exports = function (grunt) {
'grunt build:buttons:notification) otherwise all available modules are built.',
'test': 'Executes the karma testsuite.',
'watch': 'Whenever js source files (from the src directory) change, the tasks executes jslint and documentation build.',
'ngdocs': 'Builds documentation into docs.',
'ngdocs:view': 'Builds documentation into docs and runs a web server. The docs can be accessed on http://localhost:8000/',
'ngdocs:publish': 'Publishes the ngdocs to the dist area. This should only be done when bumping the release version.'
'uidocs': 'Builds documentation into docs.',
'uidocs:view': 'Builds documentation into docs and runs a web server. The docs can be accessed on http://localhost:8000/',
'uidocs:publish': 'Publishes the uidocs to the dist area. This should only be done when bumping the release version.'
},
groups: {
'Basic project tasks': ['help', 'clean', 'build', 'test'],
'Documentation tasks': ['ngdocs', 'ngdocs:view', 'ngdocs:publish']
'Documentation tasks': ['uidocs', 'uidocs:view', 'uidocs:publish']
}
}
}
Expand Down Expand Up @@ -251,6 +252,7 @@ module.exports = function (grunt) {
'dist/sass/angular-patternfly.css': ['styles/build.scss']
},
options: {
implementation: nodeSass,
outputStyle: 'expanded',
includePaths: [
'dist/sass',
Expand All @@ -265,6 +267,7 @@ module.exports = function (grunt) {
'dist/styles/angular-patternfly.css': 'styles/angular-patternfly.less'
},
options: {
implementation: nodeSass,
paths: ['src/less/'],
strictMath: true
}
Expand Down Expand Up @@ -323,7 +326,7 @@ module.exports = function (grunt) {
force: true
}
},
ngdocs: {
'uidocs-generator': {
options: {
title: 'ANGULAR PATTERNFLY',
dest: 'docs',
Expand Down Expand Up @@ -354,7 +357,7 @@ module.exports = function (grunt) {
'node_modules/angular-ui-router/release/angular-ui-router.min.js',
'node_modules/angular-drag-and-drop-lists/angular-drag-and-drop-lists.js'],
html5Mode: false,
template: 'grunt-ngdocs-index.tmpl',
template: 'grunt-uidocs-index.tmpl',
styles: ['node_modules/datatables.net-dt/css/jquery.dataTables.css',
'node_modules/patternfly/dist/css/patternfly.css',
'node_modules/patternfly/dist/css/patternfly-additions.css',
Expand Down Expand Up @@ -545,24 +548,24 @@ module.exports = function (grunt) {
'cssmin',
'copymain',
'string-replace',
'ngdocs',
'uidocs-generator',
'clean:templates']);
});

// Runs all the tasks of build with the exception of tests
grunt.registerTask('deploy', 'Prepares the project for deployment. Does not run unit tests', function () {
var concatSrc = 'src/**/*.js';
grunt.task.run(['clean', 'lint', 'ngtemplates', 'concat', 'ngAnnotate', 'uglify:build', 'less', 'cssmin', 'copymain', 'string-replace', 'ngdocs', 'clean:templates']);
grunt.task.run(['clean', 'lint', 'ngtemplates', 'concat', 'ngAnnotate', 'uglify:build', 'less', 'cssmin', 'copymain', 'string-replace', 'uidocs-generator', 'clean:templates']);
});

grunt.registerTask('default', ['build']);
grunt.registerTask('ngdocs:view', ['build', 'connect:docs', 'watch']);
grunt.registerTask('uidocs:view', ['build', 'connect:docs', 'watch']);
grunt.registerTask('lint', ['eslint', 'htmlhint']);
grunt.registerTask('test', ['karma', 'coveralls']);
grunt.registerTask('check', ['lint', 'test']);
grunt.registerTask('help', ['availabletasks']);
grunt.registerTask('serve', ['ngdocs:view']);
grunt.registerTask('ngdocs:publish', ['remove:published', 'copy:publish']);
grunt.registerTask('serve', ['uidocs:view']);
grunt.registerTask('uidocs:publish', ['remove:published', 'copy:publish']);

}

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,17 +248,17 @@ plugins: [
The API documentation can be built with:
```shell
$ npm run ngdocs
$ npm run uidocs
```
If you're interested in reading the docs right away, you can use special target, which will start a web server:
```shell
$ npm run ngdocs:view
$ npm run uidocs:view
```
After executing this tasks you'll be able to access the documentation at [http://localhost:8000/](http://localhost:8000/). If a different port is desired, it may be specified on as an option:
```shell
$ npm run ngdocs:view -- --port=8002
$ npm run uidocs:view -- --port=8002
```
## Git Commit Guidelines
Expand Down
20 changes: 8 additions & 12 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@
"url": "git://github.com/patternfly/angular-patternfly.git"
},
"dependencies": {
"angular": "1.5.*",
"angular-animate": "1.5.*",
"angular-bootstrap": "2.2.x",
"angular-dragdrop": "1.0.13",
"angularjs-datatables": "^0.5.9",
"angular-drag-and-drop-lists": "2.0.0",
"angular-sanitize": "1.5.*",
"datatables.net": "^1.10.12",
"datatables.net-select": "~1.2.0",
"angular": "^1.7.7",
"angular-animate": "^1.7.7",
"angular-sanitize": "^1.7.7",
"angular-svg-base-fix": "2.0.0",
"angular-ui-bootstrap": "2.3.x",
"lodash": "4.x",
"patternfly": ">=3.36.0"
"patternfly": "^3.37.1"
},
"devDependencies": {
"angular-mocks": "1.5.*",
"angular-ui-router": "^1.0.0-beta.3"
"angular-mocks": "^1.7.7",
"angular-ui-router": "^1.0.20"
},
"overrides": {
"datatables": {
Expand Down
Loading

0 comments on commit 051156d

Please sign in to comment.