Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request salesforce-ux#161 from salesforce-ux/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
brandonferrua committed Dec 1, 2015
2 parents 09ef51b + 08b8560 commit 37c81d7
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 40 deletions.
29 changes: 15 additions & 14 deletions scripts/helpers/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,24 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND

/* eslint-disable camelcase */

var argv = require('minimist')(process.argv.slice(2));
var isProd = argv.prod === true;
var _ = require('lodash');
import _ from 'lodash';
import path from 'path';

var path = require('path');
import minimist from 'minimist';

var root = path.resolve(__dirname, '../../');
var app_modules = path.resolve(root, 'app_modules');
var git_modules = path.resolve(root, 'git_modules');
var node_modules = path.resolve(root, 'node_modules');
const argv = minimist(process.argv.slice(2));
const isProd = argv.prod === true;

var paths = {
root: root,
const root = path.resolve(__dirname, '../../');
const app_modules = path.resolve(root, 'app_modules');
const git_modules = path.resolve(root, 'git_modules');
const node_modules = path.resolve(root, 'node_modules');

app_modules: app_modules,
git_modules: git_modules,
node_modules: node_modules,
const paths = {
root,
app_modules,
git_modules,
node_modules,

scripts: path.resolve(root, 'scripts'),
site: path.resolve(root, 'site'),
Expand All @@ -43,7 +44,7 @@ var paths = {
www: path.resolve(root, '.www')
};

module.exports = {
export default {

/**
* Make __PATHS__ available in all modules
Expand Down
16 changes: 0 additions & 16 deletions scripts/helpers/version.js

This file was deleted.

8 changes: 5 additions & 3 deletions scripts/tasks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ Neither the name of salesforce.com, inc. nor the names of its contributors may b
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

const argv = require('minimist')(process.argv.slice(2));
const isProd = argv.prod === true;

import path from 'path';
import async from 'async';
import _ from 'lodash';
Expand All @@ -33,6 +30,11 @@ import generateWhitelist from './generate/whitelist';
import generateWhitelistUtilities from './generate/whitelist-utilities';
import generateTokensZip from './generate/zip-tokens';

import minimist from 'minimist';

const argv = minimist(process.argv.slice(2));
const isProd = argv.prod === true;

export default {

build: function() {
Expand Down
2 changes: 1 addition & 1 deletion ui/components/lib/control/dom-align/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* @author yiminghe@gmail.com
*/

var utils = require('./utils');
import utils from './utils';

// http://yiminghe.iteye.com/blog/1124720

Expand Down
4 changes: 2 additions & 2 deletions ui/components/process/flavors/wizard/index.react.example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Neither the name of salesforce.com, inc. nor the names of its contributors may b
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

const React = require('react');
import React from 'react';
import { prefix as pf } from 'app_modules/ui/util/component';

module.exports = (
export default (
<div className="demo-only">
<div className={pf('wizard')} role="navigation">
<ol className={pf('wizard__list')}>
Expand Down
8 changes: 4 additions & 4 deletions ui/components/process/index.docs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Neither the name of salesforce.com, inc. nor the names of its contributors may b
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

const React = require('react');
const ComponentDocs = require('app_modules/site/components/page/component/docs');
const CodeClass = require('app_modules/site/components/code-class');
import React from 'react';
import ComponentDocs from 'app_modules/site/components/page/component/docs';
import CodeClass from 'app_modules/site/components/code-class';
import { prefix as pf } from 'app_modules/ui/util/component';

module.exports = (
export default (
<ComponentDocs>
<p className="site-text-introduction">A process component communicates to the user the progress of a particular process.</p>
</ComponentDocs>
Expand Down

0 comments on commit 37c81d7

Please sign in to comment.