Skip to content

Commit

Permalink
feat: build process
Browse files Browse the repository at this point in the history
  • Loading branch information
GarthDB committed Dec 11, 2016
1 parent 710f7ad commit dd82dd8
Show file tree
Hide file tree
Showing 17 changed files with 96 additions and 243 deletions.
20 changes: 20 additions & 0 deletions .cz-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use strict';

module.exports = {

types: [
{value: 'feat', name: 'feat: A new feature'},
{value: 'fix', name: 'fix: A bug fix'},
{value: 'docs', name: 'docs: Documentation only changes'},
{value: 'style', name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)'},
{value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature'},
{value: 'perf', name: 'perf: A code change that improves performance'},
{value: 'test', name: 'test: Adding missing tests'},
{value: 'chore', name: 'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation'},
{value: 'revert', name: 'revert: Revert to a commit'},
{value: 'WIP', name: 'WIP: Work in progress'}
],

allowBreakingChanges: ['feat', 'fix', 'perf']

};
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
tmp
lib-cov
*.seed
*.log
Expand All @@ -14,4 +15,3 @@ results

node_modules
npm-debug.log
tmp/
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test
.*
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
language: node_js
node_js:
- "0.8.23"
before_install:
- "npm install -g mocha"
- "npm install -g grunt-cli"
node_js: "6"
after_success:
- npm run semantic-release
72 changes: 0 additions & 72 deletions Gruntfile.js

This file was deleted.

3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.

Apache License
Version 2.0, January 2004
Expand Down Expand Up @@ -200,4 +199,4 @@ Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
Topcoat Navigation Bar Base
===========================

### Topcoat navigation bar base
# Topcoat Button Base

This is the reset base for all Topcoat navigation bars.

Expand Down
20 changes: 1 addition & 19 deletions css/navigation-bar.css → css/navigation-bar-base.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
/**
*
* Copyright 2012 Adobe Systems Inc.;
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
.navigation-bar,
.navigation-bar__item,
.navigation-bar__title {
Expand All @@ -36,7 +19,6 @@

.navigation-bar,
.navigation-bar__item {
-moz-box-sizing: border-box;
box-sizing: border-box;
background-clip: padding-box;
}
Expand All @@ -59,4 +41,4 @@

.navigation-bar__title {
text-overflow: ellipsis;
}
}
1 change: 0 additions & 1 deletion css/navigation-bar.min.css

This file was deleted.

47 changes: 31 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@
"name": "topcoat-navigation-bar-base",
"version": "0.6.0",
"description": "Topcoat navigation bar base",
"main": "index.html",
"style": "src/navigation-bar.css",
"directories": {
"test": "test",
"lib": "src",
"bin": "css"
"test": "test"
},
"scripts": {
"test": "grunt test",
"prepublish": "grunt"
"test": "ava test",
"prepublish": "rsn -p './' -o ./css/navigation-bar-base.css ./test/navigation-bar-base.fixture.css",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
"url": "git://github.com/topcoat/navigation-bar-base.git"
"url": "https://github.com/topcoat/navigation-bar-base.git"
},
"keywords": [
"navigation",
Expand All @@ -25,16 +23,33 @@
"base",
"adobe"
],
"author": "@dam",
"license": "Apache2",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-cssmin": "~0.6.1",
"grunt-contrib-clean": "~0.5.0",
"grunt-simple-mocha": "~0.4.0",
"grunt-topcoat": "~0.1.0"
"author": "Kristofer Joseph <[email protected]> (http://kristoferjoseph.com/)",
"contributors": [
"Garth Braithwaite <[email protected]> (http://garthdb.com)"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/topcoat/topcoat/issues"
},
"homepage": "http://topcoat.io",
"dependencies": {
"topcoat-utils": "~0.3.0"
"topcoat-utils": "^1.0.0"
},
"devDependencies": {
"autoprefixer": "^6.5.3",
"ava": "^0.17.0",
"babel-cli": "^6.18.0",
"babel-core": "^6.20.0",
"babel-preset-es2015": "^6.18.0",
"babel-register": "^6.18.0",
"cz-customizable": "^4.0.0",
"mocha": "^3.2.0",
"resin": "^1.2.1",
"semantic-release": "^6.3.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-customizable"
}
}
}
35 changes: 9 additions & 26 deletions src/navigation-bar.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,18 @@
/**
*
* Copyright 2012 Adobe Systems Inc.;
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
@import "topcoat-utils";

%navigation-bar {
extend: %reset-container;
extend: %reset-base;
extend: %reset-cursor;
@extend: %reset-container;
@extend: %reset-base;
@extend: %reset-cursor;
}

%navigation-bar__item {
extend: %reset-box-model;
extend: %inline-block;
extend: %reset-base;
@extend: %reset-box-model;
@extend: %inline-block;
@extend: %reset-base;
}

%navigation-bar__title {
extend: %reset-base;
extend: %ellipsis;
}
@extend: %reset-base;
@extend: %ellipsis;
}
17 changes: 0 additions & 17 deletions test/fixtures/license.txt

This file was deleted.

30 changes: 0 additions & 30 deletions test/fixtures/navigation-bar.css

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
/**
*
* Copyright 2012 Adobe Systems Inc.;
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
.navigation-bar,
.navigation-bar__item,
.navigation-bar__title {
Expand All @@ -36,7 +19,6 @@

.navigation-bar,
.navigation-bar__item {
-moz-box-sizing: border-box;
box-sizing: border-box;
background-clip: padding-box;
}
Expand All @@ -59,4 +41,4 @@

.navigation-bar__title {
text-overflow: ellipsis;
}
}
11 changes: 11 additions & 0 deletions test/navigation-bar-base.fixture.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.navigation-bar {
@extend: %navigation-bar;
}

.navigation-bar__item {
@extend: %navigation-bar__item;
}

.navigation-bar__title {
@extend: %navigation-bar__title;
}
Loading

0 comments on commit dd82dd8

Please sign in to comment.